/* ─── DUB / chertulova — dark editorial site ──────────────────── */

:root {
  --bg: #0c0a09;
  --bg-2: #15110f;
  --bg-3: #1d1816;
  --ink: #f1ead9;
  --ink-2: #c7bfae;
  --ink-3: #8a8175;
  --line: rgba(241, 234, 217, 0.16);
  --line-2: rgba(241, 234, 217, 0.32);

  --red: oklch(0.55 0.20 25);
  --red-2: oklch(0.42 0.18 25);
  --red-3: oklch(0.30 0.14 25);

  --baron: "Big Shoulders Display", "Anton", sans-serif;
  --serif: "Cormorant Garamond", serif;
  --sans:  "Space Grotesk", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --pad-d: clamp(32px, 5vw, 80px);
  --pad-s: 20px;

  /* motion — Emil Kowalski principles
     UI: ≤220ms, content reveals: 360–600ms */
  --d-fast: 140ms;
  --d-med:  220ms;
  --d-slow: 360ms;
  --d-content: 600ms;
  --ease-out:  cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

* { box-sizing: border-box; }

html, body { background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* sketches texture as the whole-site background, heavily darkened */
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(12,10,9,0.38), rgba(12,10,9,0.55)),
    url("assets/sketches.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* shared type utilities */
.baron {
  font-family: var(--baron);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.86;
}
.serif-i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ─── nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--pad-d);
  background: linear-gradient(to bottom, rgba(12,10,9,0.85) 0%, rgba(12,10,9,0.55) 80%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-wordmark {
  font-family: var(--baron);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-handle { color: var(--ink-3); }

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--d-fast) var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--red);
  transition: right var(--d-med) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { right: 0; }
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
}
.lang .on { color: var(--ink); }
.lang .off { color: var(--ink-3); }
.lang.en .on { color: var(--ink-3); }
.lang.en .off { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  transition:
    background var(--d-fast) var(--ease-out),
    border-color var(--d-fast) var(--ease-out),
    color var(--d-fast) var(--ease-out),
    transform var(--d-fast) var(--ease-out);
  cursor: pointer;
  user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .btn-red:hover { background: var(--red-2); border-color: var(--red-2); color: #fff; }
  .btn:hover .arrow { transform: translate(2px, -2px); }
}
.btn:active { transform: scale(0.98); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn .arrow { font-size: 14px; transition: transform var(--d-fast) var(--ease-out); }
.btn-big { padding: 22px 36px; font-size: 13px; min-height: 56px; }

.nav-burger { display: none; }

/* ─── hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 100px var(--pad-d) 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: blur(2px) saturate(1.05) brightness(0.9);
  transform: scale(1.06);
}
.hero-bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(75% 75% at 50% 46%, transparent 0%, rgba(12,10,9,0.4) 72%, rgba(12,10,9,0.82) 100%),
    linear-gradient(180deg, rgba(12,10,9,0.8) 0%, transparent 20%, transparent 74%, rgba(12,10,9,0.92) 100%);
}
.hero-bg-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(241,234,217,0.04) 1px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(241,234,217,0.03) 1px, transparent 2px);
  background-size: 3px 3px;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 3;
}
.hero-meta .mono { color: var(--ink-2); }

.hero-stack {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  position: relative;
  padding: 32px 0;
  width: 100%;
  max-width: 100%;
}
.hero-pom {
  width: clamp(380px, 42vw, 660px);
  aspect-ratio: 1;
  margin-bottom: -28%;
  filter: brightness(0.58) contrast(1.08) drop-shadow(0 16px 50px rgba(0, 0, 0, 0.72));
  z-index: 1;
}
.hero-pom img { width: 100%; height: 100%; object-fit: contain; }

.hero-title {
  font-size: clamp(54px, 10.5vw, 158px);
  position: relative;
  margin-top: -1%;
  z-index: 2;
  letter-spacing: -0.02em;
  width: 100%;
  max-width: 100%;
  line-height: 0.84;
}
.hero-title .row {
  display: block;
  white-space: nowrap;
}
.hero-title .row-1 { color: var(--ink); }
.hero-title .row-2 {
  color: var(--ink);
  font-family: var(--baron);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.hero-title .dot { color: var(--red); }

.hero-sub {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--ink-2);
  line-height: 1.3;
  max-width: 520px;
}

.scroll-cue {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-2);
}
.scroll-cue .cue-line {
  width: 40px; height: 1px; background: var(--ink-2);
  position: relative; overflow: hidden;
}
.scroll-cue .cue-line::after {
  content: ""; position: absolute; left: -40px; top: 0;
  width: 40px; height: 1px; background: var(--ink);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: translateX(0); }
  100% { transform: translateX(80px); }
}
.hero-meta-bottom .right { color: var(--ink-3); }

/* ─── marquee ─────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(21, 17, 15, 0.72);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marq 38s linear infinite;
  font-family: var(--baron);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.marquee-track span:nth-child(odd) { color: var(--red); }
@keyframes marq {
  to { transform: translateX(-50%); }
}

/* ─── manifest ────────────────────────────────────────────── */
.manifest {
  padding: clamp(80px, 12vw, 160px) var(--pad-d);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.manifest-num { padding-top: 12px; }
.manifest-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
}
.manifest-text em { color: var(--red); }
.manifest-foot {
  grid-column: 2;
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--ink-3);
}

/* ─── section heads ───────────────────────────────────────── */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.sec-head-stack { grid-template-columns: minmax(0, 1fr); }
.sec-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sec-right { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-family: var(--mono); font-size: 11px; min-width: 0; }
.dot-sep { color: var(--ink-3); }
.sec-title {
  font-size: clamp(48px, 7vw, 110px);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* ─── works ───────────────────────────────────────────────── */
.works { padding: clamp(60px, 9vw, 120px) var(--pad-d); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition:
    background var(--d-fast) var(--ease-out),
    border-color var(--d-fast) var(--ease-out),
    color var(--d-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { color: var(--ink); border-color: var(--ink); }
}
.chip:active { transform: scale(0.97); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 14px;
}
.work { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.work-tall { grid-row: span 2; }
.work-tall image-slot,
.work-tall .work-img { aspect-ratio: 3 / 5; }
.work image-slot,
.work .work-img { aspect-ratio: 3 / 4; display: block; }
.work-img {
  position: relative;
  width: 100%;
  background: var(--bg-2);
  overflow: hidden;
  border: 1px solid var(--line);
}
.work-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .4s;
}
.work-img.placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(241,234,217,0.04) 14px 15px),
    var(--bg-2);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 12px;
}
.work-img.placeholder .mono { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .work:hover .work-img img { transform: scale(1.03); }
}
.work figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 2px 2px;
}
.work figcaption .t {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}
.work figcaption .d {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.works-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.link-arr {
  font-family: var(--baron);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: color .2s;
}
.link-arr .arrow { transition: transform .25s; }
@media (hover: hover) and (pointer: fine) {
  .link-arr:hover { color: var(--red); }
  .link-arr:hover .arrow { transform: translateX(8px); }
}

/* ─── flash ───────────────────────────────────────────────── */
.flash {
  padding: clamp(60px, 9vw, 120px) var(--pad-d);
  background: rgba(21, 17, 15, 0.58);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 981px) {
  /* Clears the fixed .rail's active-item footprint (number + enlarged dot +
     visible label, up to ~110px from the viewport edge) so it can't overlap
     this section's own content. Applied to the whole section — not just
     .flash-grid — so the header and the grid stay left-aligned with each
     other (a plain .flash-grid-only offset here previously left the "flash
     sheet" title at --pad-d while the grid sat ~96px further right). */
  .flash { padding-left: calc(var(--pad-d) + 72px); }
}
.flash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.flash-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: transparent;
  border: 1px solid var(--line);
  transition:
    border-color var(--d-med) var(--ease-out),
    transform var(--d-med) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .flash-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
}
.flash-img {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(241,234,217,0.04) 14px 15px),
    var(--bg-3);
  display: flex; align-items: flex-end; padding: 12px;
  position: relative;
  overflow: hidden;
}
.flash-img .mono { color: var(--ink-3); position: relative; z-index: 1; }
.flash-img.has-asset { padding: 0; background: var(--bg-3); }
.flash-img.has-asset img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.flash-card-sold .flash-img.has-asset img { filter: grayscale(1) brightness(0.6); }
.flash-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.flash-meta .serif-i { font-size: 22px; color: var(--ink); }
.flash-meta .mono { color: var(--ink-2); }
.flash-cta {
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .flash-cta:hover { background: var(--red); color: #fff; border-color: var(--red); }
}
.flash-card-sold { opacity: 0.55; }
.flash-card-sold .flash-cta { pointer-events: none; color: var(--ink-3); }

/* ─── about ───────────────────────────────────────────────── */
.about {
  padding: clamp(80px, 12vw, 160px) var(--pad-d);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.about-img {
  position: sticky; top: 100px;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.about-img image-slot { width: 100%; height: 100%; display: block; }
.about-portrait {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05);
}
.about-tape {
  position: absolute;
  left: -8px; bottom: 24px;
  background: var(--red);
  color: #fff;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.about-text { display: flex; flex-direction: column; gap: 28px; }
.about-text .sec-title { font-size: clamp(40px, 7vw, 104px); }
.about-text .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 56ch;
}
.creds {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.creds li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.creds li .mono {
  font-size: 22px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.04em;
}
.creds li span:last-child {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}
.about-quote {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.32;
  color: var(--ink);
  padding-left: 32px;
  border-left: 2px solid var(--red);
  max-width: 600px;
}

/* ─── studio ──────────────────────────────────────────────── */
.studio {
  padding: clamp(60px, 9vw, 120px) var(--pad-d);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  background: rgba(21, 17, 15, 0.58);
  border-top: 1px solid var(--line);
}
.studio-text { display: flex; flex-direction: column; gap: 28px; }
.studio-text .sec-title { font-size: clamp(56px, 8vw, 120px); }
.addr { display: flex; flex-direction: column; gap: 4px; }
.addr-line { font-size: 19px; color: var(--ink); }
.addr-line.serif-i { font-size: 28px; color: var(--ink); }
.studio-info {
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.studio-info li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}
.studio-info li .mono { color: var(--ink-3); }
.studio-rules h4 { color: var(--ink-3); margin-bottom: 12px; }
.studio-rules ul { display: flex; flex-direction: column; gap: 6px; }
.studio-rules li {
  position: relative; padding-left: 18px; color: var(--ink);
}
.studio-rules li::before {
  content: "—"; position: absolute; left: 0; color: var(--red);
}

.studio-map { position: relative; }
.map-frame {
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 16px;
  background-image:
    linear-gradient(rgba(241,234,217,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,234,217,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.studio-stickers {
  position: absolute; inset: 0;
  pointer-events: none;
}
.sticker {
  position: absolute;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sticker-r { right: 16px; top: 32px; transform: rotate(4deg); }
.sticker-l { left: 16px; bottom: 64px; transform: rotate(-3deg); background: var(--red); color: #fff; }

/* ─── faq ─────────────────────────────────────────────────── */
.faq {
  padding: clamp(80px, 12vw, 160px) var(--pad-d);
}
.faq .sec-title { font-size: clamp(56px, 8vw, 130px); }
@media (max-width: 720px) {
  /* mobile-safe floor: "спрашивают" alone overflows the 56px floor at narrow
     widths and breaks mid-word via .sec-title's overflow-wrap:anywhere safety valve */
  .faq .sec-title { font-size: clamp(36px, 11.5vw, 130px); }
}
.faq-list {
  border-top: 1px solid var(--line-2);
}
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  /* min touch target */
  min-height: 64px;
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--d-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .faq-q:hover { color: var(--red); }
}
.faq-x {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink-3);
  transition: transform .25s, color .2s;
  font-style: normal;
}
.faq-item[data-open] .faq-x { transform: rotate(45deg); color: var(--red); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  transition:
    max-height var(--d-slow) var(--ease-soft),
    padding var(--d-med) var(--ease-soft);
  padding: 0 0 0;
}
.faq-item[data-open] .faq-a {
  max-height: 600px;
  padding: 0 0 28px;
}

/* ─── cta ─────────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: clamp(100px, 14vw, 200px) var(--pad-d);
  background: transparent;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 720px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 50%, transparent);
  opacity: 0.6;
  z-index: 0;
}
.cta > * { position: relative; z-index: 1; }
.cta-stamp {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.cta-title {
  font-size: clamp(72px, 13vw, 220px);
  letter-spacing: -0.02em;
}
.cta-title .serif-i {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--red);
  text-transform: none;
  letter-spacing: -0.01em;
}
.cta-sub { margin-top: 28px; color: var(--ink-2); }
.cta .btn-big { margin-top: 36px; }
.cta-or { margin-top: 28px; color: var(--ink-3); }
.cta-or a { color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
@media (hover: hover) and (pointer: fine) {
  .cta-or a:hover { color: var(--red); border-color: var(--red); }
}

/* ─── footer ──────────────────────────────────────────────── */
.footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px var(--pad-d) 40px;
  background: rgba(21, 17, 15, 0.72);
  border-top: 1px solid var(--line);
  align-items: start;
}
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-logo { width: 56px; height: 56px; object-fit: contain; }
.ft-name { display: flex; align-items: baseline; gap: 8px; }
.ft-name .baron { font-size: 34px; }
.ft-tag { color: var(--ink-2); font-size: 17px; margin-top: 4px; }
.ft-h { color: var(--ink-3); margin-bottom: 4px; }
.ft-col a {
  color: var(--ink-2);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .ft-col a:hover { color: var(--ink); }
}
.ft-c { color: var(--ink-3); margin-top: auto; padding-top: 24px; }

/* ─── image-slot styling ──────────────────────────────────── */
image-slot {
  --is-placeholder-bg: var(--bg-3);
  --is-placeholder-color: var(--ink-3);
  --is-border: 1px solid var(--line);
  background: var(--bg-3);
}

/* ─── responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; font-size: 11px; }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; }
  .about, .studio { grid-template-columns: 1fr; gap: 40px; }
  .about-img { position: static; max-width: 500px; }
}

@media (max-width: 720px) {
  :root { --pad-d: 20px; }
  .nav {
    grid-template-columns: 1fr auto;
    padding: 14px 20px;
    gap: 12px;
    background: rgba(12, 10, 9, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    font-size: 22px;
    transform: translateY(-110%);
    transition: transform .35s ease;
    border-bottom: 1px solid var(--line);
  }
  body.menu-open .nav-links { transform: translateY(0); }
  .nav-right { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
  }
  .nav-burger span {
    width: 22px; height: 2px; background: var(--ink);
    transition: transform .25s, opacity .25s;
  }
  body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 88px 20px 40px; min-height: 88vh; }
  .hero-meta { font-size: 10px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-meta-bottom { flex-direction: row; align-items: center; }
  .hero-pom { width: min(84vw, 380px); margin-bottom: -17%; }
  .hero-title { font-size: clamp(46px, 15vw, 96px); }
  .hero-sub { margin-top: 18px; font-size: 16px; }

  .marquee-track { font-size: 18px; gap: 36px; }

  .manifest { grid-template-columns: 1fr; gap: 24px; padding: 60px 20px; }
  .manifest-foot { grid-column: 1; flex-direction: column; gap: 8px; margin-top: 24px; }

  .sec-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .sec-title { font-size: clamp(44px, 16vw, 88px); }

  .works-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .work-tall { grid-row: span 1; }
  .work-tall image-slot,
  .work-tall .work-img,
  .work image-slot,
  .work .work-img { aspect-ratio: 3 / 4; }

  .flash-grid { grid-template-columns: 1fr; gap: 16px; }
  .flash-card { padding: 14px; }

  .about, .studio { padding: 60px 20px; gap: 32px; }
  .about-quote { font-size: 18px; padding-left: 18px; }

  .studio-info li { grid-template-columns: 110px 1fr; font-size: 14px; }

  .faq { padding: 60px 20px; }
  .faq-q { padding: 20px 0; font-size: 22px; }
  .faq-a { font-size: 15px; }

  .cta { padding: 80px 20px; }
  .cta-title { font-size: clamp(56px, 18vw, 110px); }
  .cta .btn-big { padding: 18px 24px; font-size: 12px; }

  .footer { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px 32px; }

  /* hide some chrome on mobile */
  .scroll-cue { display: none; }
}

/* ================================================================
   INTERACTIONS LAYER — custom cursor, seeds, reveals, rail, lightbox
   ================================================================ */

/* ── custom cursor ─────────────────────────────────────────── */
.has-custom-cursor,
.has-custom-cursor * { cursor: none; }
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select { cursor: none; }
.has-custom-cursor input,
.has-custom-cursor textarea { caret-color: var(--red); }

.cur-dot, .cur-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 999px;
  transition: opacity .2s;
}
.cur-dot {
  width: 22px; height: 22px;
  background: url("assets/logo1.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7));
}
.cur-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  transition: opacity .2s, border-color .2s, background .2s;
}
.cur-ring.is-hot {
  border-color: var(--red);
  background: rgba(192, 30, 30, 0.15);
}
@media (hover: none) {
  .cur-dot, .cur-ring { display: none; }
  .has-custom-cursor, .has-custom-cursor * { cursor: auto; }
}

/* ── floating pomegranate seeds in hero ────────────────────── */
.hero-seeds {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.seed {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, oklch(0.65 0.22 25) 0%, oklch(0.35 0.15 25) 70%, transparent 100%);
  border-radius: 50%;
  animation: drift 12s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1);   opacity: var(--o, 0.4); }
  25%  { transform: translate(20px, -30px) scale(1.1); }
  50%  { transform: translate(-15px, -60px) scale(0.9); opacity: 0.15; }
  75%  { transform: translate(10px, -40px) scale(1); }
  100% { transform: translate(0, 0) scale(1);   opacity: var(--o, 0.4); }
}

/* ── hero parallax containers ──────────────────────────────── */
.hero-pom,
.hero-bg-img,
.hero-title {
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* ── hero title character stagger ──────────────────────────── */
.hero-title .ch {
  display: inline-block;
  transform: translateY(110%) rotate(2deg);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .6s;
}
.hero-title .row {
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title.is-in .ch {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

/* ── scroll reveals ────────────────────────────────────────── */
.rv-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
[data-reveal="fade"].rv-init    { transform: none; }
[data-reveal="left"].rv-init    { transform: translateX(-32px); }
[data-reveal="right"].rv-init   { transform: translateX(32px); }
[data-reveal="scale"].rv-init   { transform: scale(.96); }
.rv-on {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .rv-init, .hero-title .ch { opacity: 1; transform: none; }
}

/* ── side rail ─────────────────────────────────────────────── */
.rail {
  position: fixed;
  left: 24px; top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  mix-blend-mode: difference;
  pointer-events: none;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0.7;
  transition: opacity .25s, color .25s;
  pointer-events: auto;
}
.rail-n {
  font-size: 9px;
  width: 22px;
  text-align: right;
  color: var(--ink-3);
  transition: color .25s;
}
/* Own box stays a fixed 8px — it's a normal flex child, so growing it here
   (as the pre-fix version did via a `width` transition to 20/32px) would
   widen .rail-item's real hit-box on hover/is-on the same way the label
   used to. The "growing bar" look now comes from ::after instead (below),
   which is position: absolute + pointer-events: none, so it paints on top
   without touching .rail-item's layout or its clickable area. */
.rail-dot {
  position: relative;
  width: 8px; height: 1px;
  background: var(--ink-3);
}
.rail-dot::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 8px; height: 1px;
  background: var(--ink-3);
  pointer-events: none;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform .35s ease, background .25s;
}
/* Taken out of flex flow (position: absolute) and pointer-events: none so the
   label is purely decorative — .rail-item's own clickable hit-box stays
   pinned to the number+dot columns (~40px from the viewport edge) whether
   the label is shown or not. Without this, the active/hovered item's label
   (up to ~80px wide) widened .rail-item's real hit-box past --pad-d and
   stole clicks from flush-left interactive content (confirmed: .faq-q and
   .work cards) whenever the scroll-spied active section's own content
   happened to sit at the rail's fixed vertical center. */
/* left: 74px measured to clear .rail-dot::after's grown right edge (88px from
   the rail's own left edge, in the .is-on/scaleX(4) state) with a ~10px gap —
   see the .is-on rule below. At 50px the label's text start (~74px) sat
   inside the bar's 56–88px span, running the bar under the first glyph
   (regression from fbd3222's switch to position: absolute). */
.rail-l {
  position: absolute;
  left: 74px;
  top: 50%;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity .3s ease, transform .3s ease;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .rail-item:hover { opacity: 1; }
  .rail-item:hover .rail-dot::after { transform: scaleX(2.5); background: var(--ink); }
  .rail-item:hover .rail-l   { opacity: 1; transform: translateY(-50%); }
}
.rail-item.is-on { opacity: 1; color: var(--ink); }
.rail-item.is-on .rail-n   { color: var(--red); }
.rail-item.is-on .rail-dot::after { transform: scaleX(4); background: var(--red); }
.rail-item.is-on .rail-l   { opacity: 1; transform: translateY(-50%); }
@media (max-width: 980px) { .rail { display: none; } }
/* At 981–1279px, --pad-d (clamp(32px, 5vw, 80px)) computes narrower than the
   rail's fixed 24px-left + ~40px-wide footprint (right edge would sit at
   64px), so the rail's own hit area (.rail-item, pointer-events: auto)
   overlapped flush-left content like .work/.faq-q at these widths. Pulling
   the rail in to left: 8px keeps its right edge at 48px, comfortably under
   --pad-d's minimum in this range (~49px at 981px, rising to ~64px at
   1279px). Below 981px the rail is display: none (see above); at 1280px+
   --pad-d reaches 64px, matching the rail's un-overridden 24px/40px
   footprint, so no override is needed there. */
@media (max-width: 1279px) {
  /* no lower bound: below 981px .rail is already display:none (see above),
     so this is a no-op there; using max-width alone (not min+max-width:981)
     avoids a fractional-viewport gap at ~980.5px where neither range matched */
  .rail { left: 8px; }
  /* .rail-l is absolutely positioned and mix-blend-mode: difference paints
     straight over whatever text sits behind it — at this narrower left
     offset the label lands inside the content column instead of the
     margin, overlapping section copy. It's decorative only
     (pointer-events: none), so just hide it in this band. */
  .rail-l { display: none; }
}

/* ── work hover overlay ────────────────────────────────────── */
.work {
  cursor: pointer;
  position: relative;
}
@media (hover: none) {
  .work .work-img::after,
  .work .work-img::before { display: none; }
}
.work .work-img,
.work image-slot {
  position: relative;
}
.work .work-img::after {
  content: "посмотреть →";
  position: absolute;
  inset: auto auto 12px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 5px 9px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--d-med) var(--ease-out),
    transform var(--d-med) var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .work:hover .work-img::after { opacity: 1; transform: none; }
  .work:hover .work-img::before { opacity: 1; }
}
.work .work-img::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,10,9,0.55) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--d-med) var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

/* ── lightbox ──────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0;
  background: rgba(8, 6, 5, 0.94);
  backdrop-filter: blur(10px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 80px 64px;
}
.lb.is-on {
  display: flex;
  animation: lb-in .3s ease both;
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lb-stage {
  max-width: 70%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 56px; height: 56px;
  border: 1px solid var(--line-2);
  background: rgba(20,17,15,0.7);
  color: var(--ink);
  font-family: var(--baron);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .lb-close:hover, .lb-prev:hover, .lb-next:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }
}
.lb-close { top: 24px; right: 24px; font-size: 22px; }
.lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-meta {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.lb-t { font-size: 22px; color: var(--ink); }
.lb-d, .lb-c { color: var(--ink-2); }
@media (max-width: 720px) {
  .lb { padding: 60px 16px; }
  .lb-stage { max-width: 100%; max-height: 70%; }
  .lb-close { top: 16px; right: 16px; width: 44px; height: 44px; }
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 24px; }
}

/* ── nav scrolled / hidden states ──────────────────────────── */
.nav {
  transition: transform .35s ease, background .25s;
}
.nav.is-scrolled {
  background: rgba(12,10,9,0.94);
  border-bottom: 1px solid var(--line);
}
.nav.is-up {
  transform: translateY(-100%);
}

@media (max-width: 720px) {
  /* transform on .nav establishes a new containing block for .nav-links'
     position:fixed mobile overlay (same class of bug as the backdrop-filter
     fix) — keep the header always visible on mobile instead of hiding it
     on scroll, so .nav-links stays correctly positioned against the viewport.
     (.menu-open .nav.is-up { transform: none; } is redundant with this and
     was removed — this rule already covers every case that one did, since
     .nav-burger/.menu-open only exist at this same breakpoint.) */
  .nav.is-up { transform: none; }

  /* the header no longer hides on scroll at this breakpoint (above), so it's
     permanently ~73px tall — without this, jumping to an in-page anchor
     (nav links, "scroll" hint) leaves the target's top clipped under it */
  #hero, #manifest, #works, #flash, #about, #studio, #faq, #cta {
    scroll-margin-top: 80px;
  }
}

/* ── stats block ───────────────────────────────────────────── */
.stats {
  padding: clamp(60px, 8vw, 100px) var(--pad-d);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line);
}
.stat-n {
  font-family: var(--baron);
  font-weight: 800;
  font-size: clamp(60px, 7vw, 120px);
  line-height: 0.86;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-n em {
  color: var(--red);
  font-style: normal;
}
.stat-l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-d {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.35;
  margin-top: 4px;
}
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat + .stat:nth-child(odd)::before { display: none; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid var(--line); padding-top: 24px; }
}
