/* =============================================
   KIRA VEX — Просто Тут
   ============================================= */

:root {
  --black: #000000;
  --ink-0: #050505;
  --ink-1: #0a0a0a;
  --ink-2: #111111;
  --fg: #f0f0f0;
  --fg-soft: #aaaaaa;
  --fg-faint: #666666;
  --amber: #c9a96e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 1.2s;
  --med: 0.8s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: #000; }
body {
  background: #000;
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

::selection { background: var(--amber); color: #000; }

/* Skip link — visible on keyboard focus only */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  background: var(--fg);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--amber); outline-offset: 2px; }

/* Keyboard focus rings */
:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 3px;
}
.streaming a:focus-visible::after,
.portrait-link:focus-visible::after { transform: scaleX(1); }

.heading {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--fg-soft);
}

/* =============================================
   ENTRANCE OVERLAY
   ============================================= */
.curtain {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.4s var(--ease);
}
body.entered .curtain { opacity: 0; }

/* =============================================
   HERO — DOORWAY PORTAL
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.portal {
  position: relative;
  width: clamp(420px, 54vw, 880px);
  height: clamp(520px, 85vh, 1040px);
  background: #000;
  overflow: hidden;
  transform: scale(0.94) translateZ(0);
  opacity: 0;
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
  will-change: transform, opacity;
  /* soft feathered edges — light falloff into black frame */
  -webkit-mask-image:
    radial-gradient(ellipse 88% 94% at 50% 50%, #000 55%, rgba(0,0,0,0.92) 75%, rgba(0,0,0,0.55) 90%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 88% 94% at 50% 50%, #000 55%, rgba(0,0,0,0.92) 75%, rgba(0,0,0,0.55) 90%, transparent 100%);
}

body.entered .portal {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

.portal video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease-in-out;
}
.portal video.b { opacity: 0; }

/* concrete edges — subtle inner shadow + grainy vignette */
.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 2;
}
.portal::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
  z-index: 3;
}

/* Hero text — sits INSIDE the portal at top and bottom */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(420px, 54vw, 880px);
  height: clamp(520px, 85vh, 1040px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(36px, 6vh, 70px) clamp(24px, 4vw, 60px);
  pointer-events: none;
  z-index: 4;
}

.hero-text .top,
.hero-text .bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 4.6vw, 64px);
  letter-spacing: 0.42em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
  transition-delay: 1.4s;
  /* nudge for trailing letterspacing */
  text-indent: 0.42em;
}

.hero-cyr {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: 0.5em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
  transition-delay: 1.9s;
  text-indent: 0.5em;
}

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--fg-faint);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
  transition-delay: 2.4s;
}

body.entered .hero-name,
body.entered .hero-cyr,
body.entered .hero-tag {
  opacity: 1;
  transform: translateY(0);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: rgba(240,240,240,0.5);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  transition-delay: 3s;
  z-index: 5;
}
body.entered .scroll-cue { opacity: 1; }
.scroll-cue .dot {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--amber), transparent);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: translateY(-8px); }
  50% { opacity: 1; transform: translateY(0); }
}

/* portal scale-up on scroll past hero */
.hero.zooming .portal {
  transform: scale(var(--zoom, 1)) translateZ(0);
  transition: none;
}
.hero.zooming .hero-text { opacity: var(--fade, 1); transition: none; }

/* =============================================
   SECTIONS — generic
   ============================================= */
section.block {
  background: var(--ink-1);
  padding: clamp(80px, 18vh, 200px) clamp(20px, 6vw, 80px);
  position: relative;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(48px, 10vh, 120px);
  text-align: center;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--amber);
  text-transform: uppercase;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.05s; }
.reveal.d2 { transition-delay: 0.15s; }
.reveal.d3 { transition-delay: 0.25s; }
.reveal.d4 { transition-delay: 0.35s; }

/* =============================================
   THE EP
   ============================================= */
.ep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5vh, 60px);
}

.ep-cover {
  width: clamp(240px, 36vw, 460px);
  aspect-ratio: 1;
  position: relative;
  transform: scale(0.95);
  transition: transform 1.6s var(--ease), opacity 1.6s var(--ease);
}
.ep-cover.in { transform: scale(1); }
.ep-cover picture { display: block; width: 100%; height: 100%; position: relative; z-index: 2; }
.ep-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ep-cover::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.ep-meta {
  text-align: center;
  margin: 0;
  font-weight: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.ep-album {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 2.8vw, 34px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-indent: 0.32em;
}
.ep-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.streaming {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.streaming a {
  color: var(--fg-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.6s var(--ease);
}
.streaming a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s var(--ease);
}
.streaming a:hover { color: var(--fg); }
.streaming a:hover::after { transform: scaleX(1); }

/* =============================================
   FOUR ROOMS (tracklist)
   ============================================= */
.rooms-sub {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--fg-faint);
  margin-top: -16px;
}
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  max-width: 1100px;
  margin: 0 auto;
}
.track {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  list-style: none;
}
.track picture { display: block; width: 100%; height: 100%; }
.track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
}
.track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.track .label {
  position: absolute;
  left: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.18em;
  color: rgba(240,240,240,0.78);
  transition: color 0.8s var(--ease);
}
.track:hover img {
  transform: scale(1.025);
  filter: brightness(1.1);
}
.track:hover .label { color: var(--fg); }

/* =============================================
   PORTRAIT (bio) — type-first
   ============================================= */
.portrait {
  background: linear-gradient(180deg, var(--ink-1) 0%, var(--ink-2) 100%);
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
  min-height: 100vh;
  position: relative;
}
.portrait-img {
  position: relative;
  order: 2;
  overflow: hidden;
  min-height: 70vh;
}
.portrait-img picture {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  display: block;
}
.portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.portrait-text {
  order: 1;
  padding: clamp(60px, 14vh, 160px) clamp(28px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  max-width: 720px;
}
.portrait-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--amber);
  text-transform: uppercase;
}
.portrait-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.portrait-loc {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.portrait-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--fg);
  text-wrap: pretty;
  margin: clamp(20px, 4vh, 40px) 0;
}
.portrait-trans {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.7;
  color: var(--fg-faint);
  max-width: 520px;
  text-wrap: pretty;
}
.portrait-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--fg-soft);
  text-transform: uppercase;
  align-self: flex-start;
  position: relative;
  padding: 4px 0;
  transition: color 0.6s var(--ease);
}
.portrait-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.portrait-link:hover { color: var(--fg); }
.portrait-link:hover::after { transform: scaleX(1); }

/* =============================================
   VISUAL WORLD — horizontal gallery
   ============================================= */
.world {
  background: var(--ink-1);
  padding-top: clamp(80px, 18vh, 200px);
  padding-bottom: clamp(80px, 18vh, 200px);
  padding-left: 0;
  padding-right: 0;
}
.world .section-head { padding: 0 clamp(20px, 6vw, 80px); }
.world-strip {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 clamp(20px, 6vw, 80px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.world-strip::-webkit-scrollbar { display: none; }

.world-strip .item {
  flex: 0 0 auto;
  width: clamp(280px, 36vw, 560px);
  height: clamp(380px, 70vh, 720px);
  scroll-snap-align: center;
  overflow: hidden;
  position: relative;
}
.world-strip .item picture { display: block; width: 100%; height: 100%; }
.world-strip .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

/* =============================================
   FOOTER
   ============================================= */
.foot {
  background: var(--ink-0);
  padding: clamp(60px, 10vh, 100px) 24px clamp(40px, 6vh, 60px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.foot-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.5em;
  color: var(--fg);
  text-indent: 0.5em;
}
.foot-rule {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(240,240,240,0.25), transparent);
  margin: 6px 0;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.foot-links a {
  color: var(--fg-soft);
  transition: color 0.6s var(--ease);
}
.foot-links a:hover { color: var(--fg); }
.foot-copy {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.foot-place {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: #333;
  text-transform: uppercase;
}

/* P2B label lockup */
.label-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  opacity: 0.55;
  transition: opacity 0.8s var(--ease);
}
.label-lockup:hover { opacity: 1; }
.label-lockup img {
  width: 92px;
  height: auto;
  filter: brightness(1.2) contrast(0.9);
}
.label-lockup .cap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* Section dividers — custom SVG hairlines */
.divider {
  display: block;
  margin: 0 auto;
  width: clamp(120px, 16vw, 220px);
  height: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.divider.in { opacity: 0.5; transform: none; }
.divider line, .divider circle { stroke: var(--amber); fill: none; }

/* Visual World scroll progress */
.world-progress-wrap {
  margin: 28px clamp(20px, 6vw, 80px) 0;
  height: 1px;
  background: rgba(240,240,240,0.08);
  position: relative;
  overflow: hidden;
}
.world-progress {
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.15s linear;
}
.world-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px clamp(20px, 6vw, 80px) 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.world-hint .arrows {
  display: inline-flex; gap: 14px; align-items: center;
}

/* Hero KV monogram in upper-left, fades in late */
.hero-monogram {
  position: absolute;
  top: clamp(18px, 3vh, 28px);
  left: clamp(20px, 3vw, 36px);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.5em;
  color: var(--fg);
  z-index: 5;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  transition-delay: 2.8s;
}
body.entered .hero-monogram { opacity: 0.7; }

/* Hero corner ticks (custom SVG) */
.corner-tick {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 5;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  transition-delay: 2.6s;
}
body.entered .corner-tick { opacity: 0.5; }
.corner-tick.tl { top: clamp(18px, 3vh, 28px); left: clamp(20px, 3vw, 36px); display: none; }
.corner-tick.tr { top: clamp(18px, 3vh, 28px); right: clamp(20px, 3vw, 36px); }
.corner-tick.bl { bottom: clamp(18px, 3vh, 28px); left: clamp(20px, 3vw, 36px); }
.corner-tick.br { bottom: clamp(18px, 3vh, 28px); right: clamp(20px, 3vw, 36px); }

/* Track number pre-decoration */
.track .label .num {
  display: inline-block;
  color: var(--amber);
  margin-right: 12px;
}

/* Section count badge */
.section-count {
  position: absolute;
  top: clamp(28px, 5vh, 50px);
  right: clamp(24px, 4vw, 60px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
  text-transform: uppercase;
  opacity: 0.6;
}

/* Streaming row arrow tick on hover */
.streaming a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.streaming a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.6s var(--ease);
}
.streaming a:hover::before { width: 14px; }

/* track image opacity on idle (more contrast on hover) */
.track img { filter: brightness(0.92); }
.track:hover img { filter: brightness(1.08); }

/* gallery item subtle dim until in view */
.world-strip .item img {
  filter: brightness(0.88);
  transition: transform 1.6s var(--ease), filter 1s var(--ease);
}
.world-strip .item:hover img {
  filter: brightness(1.05);
  transform: scale(1.02);
}

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 768px) {
  .portal {
    width: 90vw;
    height: 70vh;
    min-height: 520px;
  }
  .hero-text {
    width: 90vw;
    height: 70vh;
    min-height: 520px;
    padding: 36px 20px;
  }
  .hero-name { font-size: 26px; letter-spacing: 0.32em; }
  .hero-cyr { font-size: 13px; letter-spacing: 0.36em; }

  .rooms-grid { grid-template-columns: 1fr; gap: 16px; }

  .portrait {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .portrait-img {
    order: 1;
    height: 60vh;
    min-height: 480px;
  }
  .portrait-text {
    order: 2;
    padding: 80px 24px;
    max-width: none;
  }

  .world-strip .item {
    width: 78vw;
    height: 60vh;
    min-height: 420px;
  }
}

@media (max-width: 480px) {
  .portal {
    width: 90vw;
    height: 72vh;
    min-height: 480px;
  }
  .hero-text {
    width: 90vw;
    height: 72vh;
    min-height: 480px;
  }
  .hero-name { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
