:root {
  --bg:         #0a0a0a;
  --fg:         #e8e4de;
  --fg-dim:     rgba(199, 199, 199, 0.35);
  --fg-dimmer:  rgba(232, 228, 222, 0.10);
  --border:     rgba(232, 228, 222, 0.08);

  --serif:  'Instrument Serif', serif;
  --mono:   'DM Mono', monospace;
  --sans:   'Space Grotesk', sans-serif;
  --imp:   'Impact', fantasy;

  --pad: 48px;
}

.archivo-black-regular {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: transparent; color: var(--fg); font-family: var(--sans); overflow-x: hidden; scroll-behavior: smooth; }
body { overflow-x: hidden; cursor: none; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

/* ── CUSTOM CURSOR ── */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  mix-blend-mode: difference;
}
#cursor-circle {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(232, 228, 222, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s;
}
#cursor-circle.big { width: 64px; height: 64px; }

/* ── WORK PREVIEW ── */
.work-preview {
  position: fixed;
  width: 220px;
  aspect-ratio: 4 / 5;
  pointer-events: none;
  z-index: 400;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(232, 228, 222, 0.04);
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}
.work-preview.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.work-preview-inner { width: 100%; height: 100%; position: relative; }
.work-preview-inner img { position: absolute; inset: 0; }
.work-preview-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 7px;
  letter-spacing: 0.3em; color: rgba(232,228,222,0.2);
  text-transform: uppercase;
}

/* ── NAV ── */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--pad);
  opacity: 0;
  animation: fadeDown 0.8s ease 0.2s forwards;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-logo {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.6;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--fg-dim); cursor: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 var(--pad);
  position: relative; overflow: hidden;
  text-align: left;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('./assets/175.png');
  background-size: 55%;
  background-position: 90% center;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: 0;
  
}
#hero > * { position: relative; z-index: 1; margin-left: 200px; }
#snow-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-intro {
  font-family: "Archivo Black", sans-serif; font-size: 9px;
  letter-spacing: 0.45em; color: var(--fg-dim);
  text-transform: uppercase; margin-bottom: 28px; 
}
.hero-name {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(72px, 13vw, 160px);
  line-height: 0.88; font-weight: 400;
  color: var(--fg);
  position: relative;
}

.text-reveal {
  display: flex;
  gap: 0;
  align-items: baseline;
  margin-bottom: 52px;
}

.hero-name {
  display: inline-block;
  animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-name:nth-child(1) { animation-delay: 0.05s; }
.hero-name:nth-child(2) { animation-delay: 0.15s; }
.hero-name:nth-child(3) { animation-delay: 0.25s; }
.hero-name:nth-child(4) { animation-delay: 0.35s; }
.hero-name:nth-child(5) { animation-delay: 0.5s;  }
.hero-name:nth-child(6) { animation-delay: 0.6s;  }
.hero-name:nth-child(7) { animation-delay: 0.7s;  }

@keyframes reveal {
  from { opacity: 0; filter: blur(15px); transform: translateY(20px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

.hero-name-blur {
  position: absolute;
  top: 50px; bottom: -30px; right: -30px; left: -500px;
  filter: blur(10px);
  opacity: 30%;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 30%, black 70%),
    linear-gradient(to bottom, transparent 5%, black 20%, black 80%, transparent 95%);
  mask-image:
    linear-gradient(to right,  transparent 30%, black 70%),
    linear-gradient(to bottom, transparent 5%, black 20%, black 80%, transparent 95%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
  user-select: none;
}
.hero-name { overflow: visible; }
.hero-name em { font-style: italic; color: var(--fg-dim); }

/* ── SHARED SECTION ── */
section {
  padding: 80px var(--pad) 100px;
  border-top: 1px solid var(--border);
}
.section-header {
  display: flex; justify-content: center; align-items: baseline;
  margin-bottom: 56px;
  text-align: center;
}
.section-eyebrow {
  font-size: 8px;
  letter-spacing: 0.5em; color: rgba(232,228,222,0.2);
  text-transform: uppercase; margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 400; line-height: 1;
  text-align: center;
}
.section-title em { font-style: italic; color: var(--fg-dim); }
.section-count {
  font-size: 9px;
  letter-spacing: 0.3em; color: rgba(232,228,222,0.2);
  text-transform: uppercase;
  text-align: center;
}

#glock-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ── TIMELINE ── */
#timeline .section-title {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

#timeline {
  position: relative;
  overflow: visible;
  border-top: none;
  padding: 100px clamp(120px, 20vw, 320px);
}
.tl-center-line {
  position: absolute;
  left: 50%; top: 80px; bottom: auto;
  height: 80%;
  width: 1px;
  background: transparent;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.tl-line-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: rgba(204, 204, 204, 0.18);
}
.tl-glow-dot {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 90px 23px rgba(253, 253, 253, 0.62), 0 0 70px 28px rgba(232,228,222,0.08);
}
.tl-items { position: relative; z-index: 1; }
.tl-item {
  display: grid;
  grid-template-columns: 35% 15% 50%;
  align-items: center;
  padding: 32px 0;
  opacity: 0;
}
.tl-text { padding-right: 24px; }
.tl-title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 2vw, 38px);
  margin-bottom: 1px;
  color: var(--fg);
}
.tl-sub {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 20px);
  color: var(--fg);
}
.tl-year {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(32px, 2vw, 52px);
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
  text-align: right;
  padding-right: 220px;
}
.tl-desc {
  font-family: "Roboto", sans-serif;
  font-size: 13px; line-height: 1;
  color: var(--fg); font-weight: 400;
  padding-left: 100px;
}

.tl-descr {
  font-family: "Roboto", sans-serif;
  font-size: 15px; line-height: 1;
  color: var(--fg); font-weight: 400;
  font-size: clamp(36px, 6vw, 40px);
  font-weight: 400;
  text-align: center;
  padding-left: 100px;
  margin-bottom: 20px;
}

/* ── WORKS ── */
#works .section-header { padding-top: 0; border-top: none; }

.work-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 0; border-top: 1px solid var(--border);
  padding: 32px 0; cursor: none; position: relative;
  transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-item:last-child { border-bottom: 1px solid var(--border); }
.work-item:hover { padding-left: 20px; }

.work-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--fg-dim);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-item:hover::before { transform: scaleY(1); }

.work-l { display: flex; flex-direction: column; gap: 12px; }
.work-num {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.3em; color: rgba(232,228,222,0.2);
}
.work-name img {
  width: 700px;
  height: auto;
  margin: 0 auto;
}
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: center; }

.work-tag {
  font-family: var(--mono); font-size: 7.5px;
  letter-spacing: 0.2em; color: rgba(232,228,222,0.2);
  border: 1px solid var(--border); padding: 3px 10px;
  text-transform: uppercase;
  text-align: center;
}
.work-r {
  display: flex; align-items: center;
  justify-content: flex-end; gap: 32px;
}
.work-year {
  font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.3em; color: rgba(232,228,222,0.2);
  text-transform: uppercase;
}
.work-arrow {
  font-size: 16px; color: var(--fg-dim);
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.25s, transform 0.25s;
}
.work-item:hover .work-arrow { opacity: 1; transform: translateX(0); }

/* ── SOCIALS ── */
.soc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.soc-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  cursor: none; position: relative; overflow: hidden;
  transition: padding-left 0.35s cubic-bezier(0.16,1,0.3,1);
}
.soc-item:nth-child(odd) {
  border-right: 1px solid var(--border);
  padding-right: 40px;
}
.soc-item:nth-child(even) { padding-left: 40px; }
.soc-item:nth-child(odd):hover  { padding-left: 16px; }
.soc-item:nth-child(even):hover { padding-left: 52px; }

.soc-l { display: flex; align-items: baseline; gap: 16px; }
.soc-num {
  font-family: var(--mono); font-size: 7.5px;
  letter-spacing: 0.3em; color: rgba(232,228,222,0.2); width: 20px;
}
.soc-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 400; line-height: 1;
}
.soc-r { display: flex; align-items: center; gap: 16px; }
.soc-handle {
  font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.2em; color: var(--fg-dim);
}
.soc-arr {
  font-size: 13px; color: var(--fg-dim);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.soc-item:hover .soc-arr { opacity: 1; transform: translateX(0); }

.soc-icons {
  position: fixed;
  left: 70px;
  top: 22%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 490;
}
.soc-icons a {
  opacity: 0.3;
  transition: opacity 0.2s;
  cursor: none;
}
.soc-icons a:hover { opacity: 1; }
.soc-icons img {
  width: 30px; height: 30px;
  object-fit: contain;
}

/* ── COMMISSION ── */
.comm-intro {
  font-size: 13px; font-weight: 300;
  color: var(--fg-dim); line-height: 1.9;
  max-width: 440px; margin-bottom: 52px;
}

.comm-list { border-top: 1px solid var(--border); }
.comm-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 0; padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start; cursor: none;
  transition: padding-left 0.35s cubic-bezier(0.16,1,0.3,1);
}
.comm-row:hover { padding-left: 16px; }

.comm-row-type {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.3em; color: rgba(232,228,222,0.2);
  text-transform: uppercase; padding-top: 6px;
}
.comm-row-name {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 400; line-height: 1; margin-bottom: 10px;
}
.comm-row-items {
  display: flex; flex-wrap: wrap; gap: 0;
}
.comm-row-items span {
  font-family: var(--mono); font-size: 8px;
  color: rgba(232,228,222,0.25); letter-spacing: 0.12em;
}
.comm-row-items span::after {
  content: ' · '; color: rgba(232,228,222,0.12); margin: 0 4px;
}
.comm-row-items span:last-child::after { display: none; }

.comm-row-price {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--fg-dim);
  padding-top: 6px; white-space: nowrap;
}

.comm-terms {
  margin-top: 48px;
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.comm-terms-text {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.2em; color: rgba(232,228,222,0.2);
  line-height: 2.4; text-transform: uppercase;
}
.comm-terms-text b { color: var(--fg-dim); font-weight: 400; }
.comm-status-label {
  font-family: var(--mono); font-size: 7px;
  letter-spacing: 0.45em; color: rgba(232,228,222,0.2);
  text-transform: uppercase; margin-bottom: 4px;
}
.comm-status-val {
  font-family: var(--serif); font-size: 56px;
  font-style: italic; color: var(--fg); line-height: 0.9;
}

/* ── FOOTER ── */
footer {
  padding: 28px var(--pad);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
footer span {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.28em; color: rgba(232,228,222,0.18);
  text-transform: uppercase;
}

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

.glock-section {
  position: relative;
  width: 100%;
  height: 300vh; /* Это длина скролла анимации. 300vh = 3 экрана. Чем больше, тем медленнее разборка */
  background-color: #111; /* Можно убрать или поменять под стиль сайта */
}

.blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.7s ease, filter 0.7s ease;
}
.blur-word.visible {
  opacity: 1;
  filter: blur(0);
}
.scroll-blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  will-change: opacity, filter;
}

.section-hd-about {
  display: flex; justify-content: right; align-items: baseline;
  margin-bottom: 56px;
  text-align: right;
  padding-right: 130px;
}

.section-about {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 400; line-height: 1;
  text-align: right;
}

.text-about {
  font-family: "Roboto", sans-serif;
  font-size: clamp(32px, 2vw, 52px);
  line-height: 1;
  font-weight: 400;
  padding-left: 1240px;
}
/* ── FLUID BG ── */
#bg-glow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* ── прозрачность для fluid bg ── */
body { background: transparent; }
section { background: transparent; }
footer  { background: transparent; }
nav#nav { background: transparent; }
#about-me { background: transparent; }
#hero { background: transparent; }
#timeline { background: transparent; }
#works { background: transparent; }