/* talipov.bz — главная. Тёмная, графитовая палитра, Geist, тонкие линии. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink-0: #0b0c0e;
  --ink-1: #121316;
  --ink-2: #1a1c20;
  --paper-0: #fafbfd;
  --paper-1: #ccd1d8;
  --paper-2: #8a919b;
  --chrome-hi: #e9ebef;
  --chrome-mid: #aeb4bd;
  --chrome-lo: #6e747d;
  --hair: rgba(244, 245, 247, 0.1);
  --hair-strong: rgba(244, 245, 247, 0.18);
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--paper-0);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.chrome {
  background: linear-gradient(170deg, var(--chrome-hi) 8%, var(--chrome-mid) 46%, var(--chrome-lo) 72%, var(--chrome-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--paper-0); color: var(--ink-0); padding: 8px 14px; font-size: 13px;
}
.skip:focus { left: 16px; }

.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  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='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, .bar, .foot { position: relative; z-index: 1; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--hair);
  background: rgba(11, 12, 14, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.bar__in {
  max-width: 1440px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand__name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand__tag { font-size: 12px; color: var(--paper-2); transition: color 0.2s; }
.brand:hover .brand__tag { color: var(--paper-1); }
.nav { display: flex; align-items: baseline; gap: 28px; white-space: nowrap; }
.nav a {
  position: relative; font-size: 13.5px; font-weight: 500; color: var(--paper-1);
  transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--chrome-lo), var(--chrome-hi), var(--chrome-lo));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--paper-0); }
.nav a:hover::after { transform: scaleX(1); }
.kbd {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-2); border: 1px solid var(--hair); padding: 4px 8px;
  transition: color 0.2s, border-color 0.2s;
}
.kbd:hover { color: var(--paper-0); border-color: var(--chrome-mid); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - 58px); border-bottom: 1px solid var(--hair); overflow: hidden; }
.site-field {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 1.8s ease 0.4s;
}
.is-ready .site-field { opacity: 1; }
.hero__grid {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto; min-height: calc(100svh - 58px);
  padding: clamp(38px, 5vh, 80px) 40px 0;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center; gap: 26px clamp(32px, 4vw, 72px);
}
.hero__copy { padding-bottom: 16px; }
.hero__kicker { color: var(--paper-1); font-size: 13px; letter-spacing: 0.015em; margin-bottom: 31px; }
.hero__title {
  font-size: clamp(46px, 6.2vw, 92px);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.058em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }
.echo-word { position: relative; display: inline-block; white-space: nowrap; cursor: default; }
.echo-word em { font-style: normal; position: relative; }
.echo {
  position: absolute; left: 0; top: 0; pointer-events: none; user-select: none;
  opacity: 0; transform: translate(var(--ex, 0px), var(--ey, 0px));
  will-change: transform, opacity;
}
.echo:nth-child(1) { --k: 1; }
.echo:nth-child(2) { --k: 2; }
.echo:nth-child(3) { --k: 3; }
.echo:nth-child(4) { --k: 4; }
.echo-word.is-live .echo { opacity: calc(0.34 - var(--k) * 0.065); }

.hero__lede { max-width: 43ch; color: var(--paper-1); margin-top: 33px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero__actions--center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 48px; padding: 12px 23px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--paper-0); transition: background 0.18s, border-color 0.18s, transform 0.35s var(--ease);
}
.btn--solid { background: var(--paper-0); color: var(--ink-0); }
.btn--solid:hover { background: #dfe3e9; border-color: #dfe3e9; }
.btn--line { border-color: var(--chrome-lo); color: var(--paper-0); }
.btn--line:hover { border-color: var(--paper-0); background: rgba(250, 251, 253, 0.04); }
.link {
  min-height: 48px; display: inline-flex; align-items: center; padding-inline: 10px; font-size: 13px; font-weight: 500;
  color: var(--paper-1); text-decoration: underline; text-decoration-color: var(--chrome-lo); text-underline-offset: 5px;
}
.link:hover { color: var(--paper-0); text-decoration-color: var(--paper-0); }

.hero__stage { padding: 0 10px; }
.hero__foot {
  grid-column: 1 / -1; align-self: end;
  border-top: 1px solid var(--hair-strong); color: var(--paper-2);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 21px; font-size: 11px;
}
.hero__foot i { font-style: normal; color: var(--chrome-lo); margin-inline: 4px; }
.hero__foot a { color: var(--paper-1); padding-block: 8px; white-space: nowrap; }
.hero__foot a:hover { color: var(--paper-0); }

/* ---------- prism ---------- */
.prism { isolation: isolate; width: 100%; max-width: 490px; margin-inline: auto; position: relative; }
.prism__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--paper-1); letter-spacing: 0.015em; }
.prism__icon { width: 21px; height: 21px; stroke: var(--chrome-mid); stroke-width: 1px; }
.prism__stage { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; height: 308px; perspective: 1200px; touch-action: pan-y; }
.prism__orbit {
  position: absolute; width: 85%; height: 72%; top: 18%; left: 7%;
  border: 1px solid rgba(233, 235, 239, 0.1); border-radius: 50%; transform: rotate(-28deg);
}
.prism__orbit::after { content: ""; position: absolute; inset: -15%; border-radius: inherit; border: 1px solid rgba(233, 235, 239, 0.045); }
.prism__stack {
  position: absolute; top: 35px; left: 9%; width: 76%; height: 234px; transform-style: preserve-3d;
  transform: rotateX(calc(12deg + var(--tilt-x))) rotateY(calc(-19deg + var(--tilt-y))) rotateZ(-7deg);
  transition: transform 0.65s var(--ease);
}
.sheet {
  position: absolute; inset: 0; overflow: hidden; padding: 18px 22px;
  border: 1px solid rgba(233, 235, 239, 0.48); border-radius: 3px; backface-visibility: hidden;
  transition: transform 0.85s var(--ease), opacity 0.65s, border-color 0.65s;
}
.sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,0.2), transparent 36%, rgba(255,255,255,0.035) 65%, transparent); }
.sheet--client { color: #151619; background: linear-gradient(140deg, #fafbfd 0%, #d7dbe1 66%, #aeb4bd 100%); }
.sheet--code { background: linear-gradient(135deg, #30353d, #121316 75%); }
.sheet--result { background: linear-gradient(145deg, #25292f, #101114 70%); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 9px; border-bottom: 1px solid rgba(21, 22, 25, 0.2); font-size: 10px; font-weight: 600; }
.sheet__head--mono { font-family: var(--mono); font-weight: 400; color: var(--paper-1); border-bottom-color: rgba(255, 255, 255, 0.19); padding-bottom: 10px; font-size: 9px; }
.sheet__title { position: relative; z-index: 1; margin-top: 15px; font-size: 34px; font-weight: 650; line-height: 0.99; letter-spacing: -0.055em; }
.sheet__title span { color: #565d66; }
.sheet__waves { position: absolute; width: 100%; right: -36px; bottom: 36px; opacity: 0.48; }
.sheet__waves path { stroke: #515b6a; stroke-width: 0.65px; }
.sheet__foot { position: absolute; left: 22px; right: 22px; bottom: 15px; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid rgba(21, 22, 25, 0.2); font-size: 8px; }
.sheet__foot > span:last-child { font-size: 10px; font-weight: 700; }
.sheet__foot--mono { color: var(--chrome-mid); border-top-color: rgba(255, 255, 255, 0.19); font-size: 9px; bottom: 14px; padding-top: 9px; }
.sheet pre { margin: 15px 0 0; font-family: var(--mono); font-size: 10px; line-height: 1.6; color: var(--chrome-hi); white-space: pre-wrap; overflow-wrap: anywhere; }

/* reader state: which sheet is in front */
.prism[data-reader="0"] .sheet--client,
.prism[data-reader="1"] .sheet--code,
.prism[data-reader="2"] .sheet--result { opacity: 1; border-color: var(--chrome-hi); transform: translate3d(-2%, 1%, 65px); }
.prism[data-reader="0"] .sheet--code,
.prism[data-reader="1"] .sheet--result,
.prism[data-reader="2"] .sheet--client { opacity: 0.75; transform: translate3d(9%, -7%, -5px); }
.prism[data-reader="0"] .sheet--result,
.prism[data-reader="1"] .sheet--client,
.prism[data-reader="2"] .sheet--code { opacity: 0.46; transform: translate3d(20%, -15%, -75px); }
.prism[data-reader="1"] .prism__stack { transform: rotateX(calc(3deg + var(--tilt-x))) rotateY(calc(-9deg + var(--tilt-y))) rotateZ(-3deg); }
.prism[data-reader="2"] .prism__stack { transform: rotateX(calc(-4deg + var(--tilt-x))) rotateY(calc(10deg + var(--tilt-y))) rotateZ(4deg); }

.prism__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--hair-strong); }
.prism__tabs button {
  min-height: 48px; margin-bottom: -1px; font-size: 13px; color: var(--paper-2);
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.prism__tabs button:hover { color: var(--paper-0); background: rgba(250, 251, 253, 0.03); }
.prism__tabs button[aria-pressed="true"] { color: var(--paper-0); border-color: var(--paper-0); }
.prism__desc { min-height: 163px; padding-top: 23px; }
.prism__surface { font-family: var(--mono); font-size: 10px; letter-spacing: 0.025em; color: var(--paper-2); }
.prism__desc h2 { margin-top: 6px; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -0.025em; }
.prism__text { max-width: 42ch; min-height: 42px; margin-top: 7px; font-size: 13px; line-height: 1.6; color: var(--paper-1); }
.prism__desc a {
  display: inline-flex; align-items: center; gap: 18px; padding-block: 10px; font-size: 12px;
  text-decoration: underline; text-decoration-color: var(--chrome-lo); text-underline-offset: 5px;
}
.prism__desc a:hover { text-decoration-color: var(--paper-0); }

/* ---------- blocks ---------- */
.block { padding: clamp(72px, 11vw, 140px) 0; border-bottom: 1px solid var(--hair); }
.block--tint { background: rgba(18, 19, 22, 0.3); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.wrap--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 120px); align-items: start; }
.wrap--center { text-align: center; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-2); margin-bottom: 22px; }
.h2 { font-size: clamp(32px, 4.4vw, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; }
.h2--xl { font-size: clamp(38px, 6vw, 88px); }

.index { margin-top: 64px; border-top: 1px solid var(--hair-strong); }
.index__row {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) 220px; gap: 24px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--hair);
  transition: background 0.3s;
}
.index__row:hover { background: rgba(250, 251, 253, 0.02); }
.index__num { font-family: var(--mono); font-size: 13px; color: var(--paper-2); }
.index__main h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.index__main p { max-width: 58ch; margin-top: 10px; font-size: 15px; color: var(--paper-1); }

/* looping mini-visuals */
.mini { height: 28px; position: relative; font-family: var(--mono); font-size: 12px; color: var(--paper-1); display: flex; align-items: center; }
.mini--type .mini__line { display: inline-block; border-right: 1px solid var(--paper-0); }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; vertical-align: bottom; animation: type 7.4s steps(23, end) infinite; }
.mini--bar { background: linear-gradient(var(--hair), var(--hair)) center/100% 1px no-repeat; }
.bar-fill { display: block; height: 3px; width: 100%; background: var(--chrome-hi); transform-origin: left; transform: scaleX(0); animation: fill 4.6s var(--ease) infinite; }
.mini--commit { gap: 14px; }
.dot { width: 8px; height: 8px; border: 1px solid var(--chrome-mid); opacity: 0.25; animation: commit 5.4s linear infinite; }
.dot:nth-child(2) { animation-delay: 0.5s; }
.dot:nth-child(3) { animation-delay: 1s; }
.dot:nth-child(4) { animation-delay: 1.5s; }
.mini--strike { white-space: nowrap; }
.strike-text { animation: dim 6.2s linear infinite; }
.strike-line { position: absolute; left: -2%; right: 40%; top: 52%; height: 1px; background: #e3908f; transform-origin: left; transform: scaleX(0); animation: strike 6.2s var(--ease) infinite; }

@keyframes type { 0% { width: 0; } 38% { width: 100%; } 86% { width: 100%; } 94% { width: 0; } 100% { width: 0; } }
@keyframes fill { 0% { transform: scaleX(0); } 46% { transform: scaleX(1); } 82% { transform: scaleX(1); } 92% { transform: scaleX(0); } 100% { transform: scaleX(0); } }
@keyframes commit { 0%, 6% { opacity: 0.25; } 12%, 58% { opacity: 1; background: var(--chrome-hi); } 70%, 100% { opacity: 0.25; } }
@keyframes dim { 0%, 22% { opacity: 1; } 34%, 72% { opacity: 0.38; } 86%, 100% { opacity: 1; } }
@keyframes strike { 0%, 18% { transform: scaleX(0); } 30%, 72% { transform: scaleX(1); } 84%, 100% { transform: scaleX(0); } }

/* doors */
.doors { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--hair-strong); }
.door { padding: 34px 30px 30px; display: flex; flex-direction: column; min-height: 320px; border-right: 1px solid var(--hair); transition: background 0.3s; position: relative; }
.door:last-child { border-right: 0; }
.door:hover { background: rgba(250, 251, 253, 0.035); }
.door__num { font-family: var(--mono); font-size: 13px; color: var(--paper-2); margin-bottom: auto; }
.door h3 { font-size: 30px; font-weight: 500; letter-spacing: -0.035em; margin-top: 56px; }
.door p { margin-top: 12px; font-size: 15px; color: var(--paper-1); max-width: 34ch; }
.door__go { margin-top: 26px; font-size: 12px; color: var(--paper-1); text-decoration: underline; text-decoration-color: var(--chrome-lo); text-underline-offset: 5px; }
.door__go i { font-style: normal; display: inline-block; margin-left: 10px; transition: transform 0.35s var(--ease); }
.door:hover .door__go i { transform: translateX(6px); }
.door:hover .door__go { color: var(--paper-0); text-decoration-color: var(--paper-0); }

/* notes */
.notes { margin-top: 64px; border-top: 1px solid var(--hair-strong); }
.note { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--hair); }
.note time { font-family: var(--mono); font-size: 12px; color: var(--paper-2); padding-top: 6px; }
.note h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; }
.note p { margin-top: 8px; max-width: 62ch; font-size: 15px; color: var(--paper-1); }

/* about */
.about { display: grid; gap: 20px; color: var(--paper-1); font-size: 18px; max-width: 54ch; }
.meta { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--hair-strong); }
.meta > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-2); padding-top: 2px; }
.meta dd { color: var(--paper-0); text-align: right; }

.foot { border-top: 1px solid var(--hair); }
.foot__in { max-width: 1440px; margin: 0 auto; padding: 28px 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--paper-2); }
.foot__links { display: flex; gap: 22px; }
.foot__links a:hover { color: var(--paper-0); }

/* console overlay */
.console { position: fixed; inset: 0; z-index: 200; background: rgba(5, 6, 7, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: start center; padding-top: 16vh; }
.console[hidden] { display: none; }
.console__box { width: min(420px, 90vw); background: var(--ink-1); border: 1px solid var(--hair-strong); padding: 10px; display: grid; }
.console__title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-2); padding: 12px 14px; }
.console__box a, .console__box button { text-align: left; padding: 13px 14px; font-size: 14px; color: var(--paper-1); }
.console__box a:hover, .console__box button:hover { background: rgba(250, 251, 253, 0.05); color: var(--paper-0); }
.console__box button { font-family: var(--mono); font-size: 11px; color: var(--paper-2); }

/* ---------- motion in / reveal ---------- */
.js [data-intro] { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .line[data-intro] { opacity: 1; transform: none; }
.js .line[data-intro] > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js.is-ready [data-intro] { opacity: 1; transform: none; }
.js.is-ready .line[data-intro] > span { transform: none; }
.js.is-ready [data-intro="1"] { transition-delay: 0.05s; }
.js.is-ready [data-intro="2"] > span { transition-delay: 0.12s; }
.js.is-ready [data-intro="3"] > span { transition-delay: 0.22s; }
.js.is-ready [data-intro="4"] > span { transition-delay: 0.32s; }
.js.is-ready [data-intro="5"] { transition-delay: 0.5s; }
.js.is-ready [data-intro="6"] { transition-delay: 0.65s; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .hero__grid { grid-template-columns: 1fr; padding-inline: 24px; }
  .hero__stage { padding-top: 24px; }
  .brand__tag { display: none; }
  .index__row { grid-template-columns: 56px minmax(0, 1fr); }
  .index__row .mini { display: none; }
  .wrap--split { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
  .bar__in { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 24px; }
  .nav { flex-wrap: wrap; gap: 6px 18px; white-space: normal; }
  .nav__k { display: none; }
  .wrap, .foot__in { padding-inline: 24px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; border-right: 0; border-bottom: 1px solid var(--hair); }
  .door:last-child { border-bottom: 0; }
  .door h3 { margin-top: 36px; }
  .note { grid-template-columns: 1fr; gap: 6px; }
  .prism__stage { height: 310px; }
  .sheet__title { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-intro], .js .line[data-intro] > span, .js .reveal { opacity: 1; transform: none; transition: none; }
  .typed, .bar-fill, .dot, .strike-text, .strike-line { animation: none; }
  .typed { width: 100%; }
  .bar-fill { transform: scaleX(1); }
  .prism__stack, .sheet { transition: none; }
}

/* Original Jamie McKaye particle component and its static fallback. */
.original-field__plate, .original-field__live, .original-field__canvas { position: absolute; inset: 0; }
.original-field__live { transition: opacity 0.7s ease; }
.original-field__canvas canvas { display: block; }
