/* ============================================================
   DMITRY KUPTSOV TRIO
   Editorial · luxe-dark · high-contrast serif
   ============================================================ */

:root {
  --bg:        #161210;   /* warm near-black */
  --bg-2:      #1e1815;
  --surface:   #251e19;
  --ink:       #f3ece1;   /* warm ivory */
  --muted:     #b5a797;
  --faint:     #7c7064;
  --line:      rgba(243,236,225,0.13);
  --line-2:    rgba(243,236,225,0.26);
  --accent:    #c9a24b;   /* brass / gold */
  --accent-2:  #e0c074;
  --wine:      #6e2420;   /* oxblood */
  --accent-ink:#1b1306;

  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1340px;
  --gutter: clamp(22px, 5.2vw, 96px);
  --nav-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 168px); position: relative; }
.section--alt { background: var(--bg-2); }
.hr { height: 1px; background: var(--line); border: 0; }

/* ---- shared type ---- */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.label::before {
  content: ""; width: 34px; height: 1px; background: var(--accent); display: inline-block;
}
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
}
.display em, .ital { font-style: italic; font-weight: 500; }
.section-title { font-family: var(--serif); font-weight: 600; line-height: 0.98; letter-spacing: -0.012em; font-size: clamp(44px, 7.5vw, 104px); margin-top: 26px; }

/* ---- reveal (blocks rise from below, with soft de-blur) ---- */
.reveal { opacity: 0; transform: translateY(56px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: .14s; }
.reveal[data-d="2"] { transition-delay: .28s; }
.reveal[data-d="3"] { transition-delay: .42s; }
.reveal[data-d="4"] { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* clip-reveal for images */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal img { transform: scale(1.12); transition: transform 1.5s var(--ease); }
.img-reveal.in img { transform: scale(1); }
.img-reveal::after {
  content: ""; position: absolute; inset: 0; background: var(--bg);
  transform-origin: right; transition: transform 1.1s var(--ease);
}
.img-reveal.in::after { transform: scaleX(0); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .45s var(--ease), height .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); border-bottom-color: var(--line); height: 70px; }
.nav__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.nav__group { display: flex; gap: clamp(20px, 3vw, 50px); }
.nav__group--l { justify-content: flex-end; }
.nav__group--r { justify-content: flex-start; }
.nav__link { font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); position: relative; padding: 8px 0; transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__logo { justify-self: center; display: block; transition: transform .5s var(--ease); }
.nav__logo:hover { transform: rotate(-4deg); }
.nav__logo svg { display: block; width: 58px; height: 58px; }

.burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; width: 42px; height: 42px; justify-content: center; align-items: center; }
.burger span { display: block; width: 24px; height: 1.6px; background: var(--ink); transition: transform .3s, opacity .3s; }

.mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; flex-direction: column; padding: 8px var(--gutter) 28px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--serif); font-size: 30px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 60% 32%; will-change: transform; }
.hero__scrim { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22,18,16,0.62) 0%, rgba(22,18,16,0.18) 26%, rgba(22,18,16,0.55) 66%, var(--bg) 100%),
    linear-gradient(90deg, rgba(22,18,16,0.7) 0%, transparent 55%);
}
.hero__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 9vh, 116px); }
.hero__kicker { margin-bottom: 30px; }
.hero__title { font-family: var(--serif); font-weight: 600; line-height: 0.86; letter-spacing: -0.02em; font-size: clamp(58px, 13.5vw, 215px); }
.hero__title .l1, .hero__title .l2 { display: block; }
.hero__title .l2 { padding-left: 0.06em; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--accent-2); }
.hero__sub { margin-top: 34px; display: flex; gap: 38px; flex-wrap: wrap; align-items: flex-start; }
.hero__desc { max-width: 46ch; font-size: clamp(16px, 1.55vw, 20px); color: var(--muted); line-height: 1.55; }
.hero__desc b { color: var(--ink); font-weight: 600; }
.hero__meta { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line-2); }
.hero__meta span { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.hero__meta strong { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--ink); letter-spacing: 0.01em; }
.scrollcue { position: absolute; right: var(--gutter); bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); writing-mode: vertical-rl; }
.scrollcue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); }

/* ---- hero entrance animation (gated on .anim so no-JS shows content) ---- */
.hero.anim .hero__bg { transform: scale(1.16); }
.hero.anim.ready .hero__bg { transform: scale(1.08); transition: transform 2.2s var(--ease); }
.hero.anim .hero__kicker,
.hero.anim .hero__sub { opacity: 0; transform: translateY(22px); }
.hero.anim.ready .hero__kicker { opacity: 1; transform: none; transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s; }
.hero.anim.ready .hero__sub { opacity: 1; transform: none; transition: opacity .9s var(--ease) 1.7s, transform .9s var(--ease) 1.7s; }

/* shutter reveal — staircase, letter by letter, bottom→top, starting from
   the first (capital) letter. JS splits each .word into .char spans and sets --i.
   padding + negative margin enlarges each char's clip box so ascenders,
   descenders and italic swashes are never cut. */
.hero__title .line { display: block; }
.hero__title .word { display: inline-block; vertical-align: top; }
.hero__title .char { display: inline-block; vertical-align: top; padding: 0.16em 0.02em 0.22em; margin: -0.16em -0.02em -0.22em; white-space: pre; }
.hero.anim .hero__title .char { clip-path: inset(105% 0 -10% 0); }
.hero.anim.ready .hero__title .char {
  clip-path: inset(-10% 0 -10% 0);
  transition: clip-path .88s var(--ease);
  transition-delay: calc(0.2s + var(--i) * 0.075s);
}

@media (prefers-reduced-motion: reduce) {
  .hero.anim .hero__bg,
  .hero.anim .hero__kicker,
  .hero.anim .hero__sub,
  .hero.anim .hero__title .char { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ============================================================
   MAIN VIDEO
   ============================================================ */
.video__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px; margin-bottom: 46px; }
.video__head p { color: var(--muted); max-width: 36ch; }
.video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; isolation: isolate; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: brightness(0.6) saturate(1.05); transition: filter .7s var(--ease), transform 1.1s var(--ease); }
.video-frame:hover img { filter: brightness(0.72); transform: scale(1.04); }
.video-frame__play { position: absolute; inset: 0; margin: auto; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(243,236,225,0.55); background: color-mix(in srgb, var(--bg) 32%, transparent); backdrop-filter: blur(3px); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.video-frame:hover .video-frame__play { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.video-frame__play svg { width: 30px; height: 30px; margin-left: 5px; }
.video-frame__play path { fill: var(--ink); transition: fill .4s; }
.video-frame:hover .video-frame__play path { fill: var(--accent-ink); }
.video-frame__tag { position: absolute; left: 22px; bottom: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); background: color-mix(in srgb, var(--bg) 5%, transparent); backdrop-filter: blur(6px); padding: 9px 14px; border: 1px solid var(--line-2); }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about__lede { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.1vw, 42px); line-height: 1.22; letter-spacing: -0.01em; }
.about__lede em { font-style: italic; color: var(--accent-2); }
.about__body { color: var(--muted); padding-top: 8px; }
.about__body p + p { margin-top: 20px; }
.about__meta { margin-top: 40px; display: flex; gap: 48px; flex-wrap: wrap; }
.about__meta div span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.about__meta div strong { font-family: var(--serif); font-weight: 500; font-size: 25px; }

/* ---- members: alternating editorial rows ---- */
.members { margin-top: clamp(64px, 9vw, 128px); display: flex; flex-direction: column; gap: clamp(56px, 8vw, 120px); }
.member { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.member:nth-child(even) .member__media { order: 2; }
.member__media { aspect-ratio: 5/6; overflow: hidden; }
.member__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.92) contrast(1.04); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.member:hover .member__media img { filter: grayscale(0) brightness(1); transform: scale(1.045); }
.member__no { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
.member__name { font-family: var(--serif); font-weight: 600; line-height: 0.96; letter-spacing: -0.015em; font-size: clamp(40px, 5.2vw, 78px); margin: 14px 0 18px; }
.member__role { font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.member__role::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.member__bio { margin-top: 22px; color: var(--muted); max-width: 40ch; }

/* ============================================================
   AUDIO — mock player
   ============================================================ */
.audio__head { margin-bottom: 48px; }
.player { display: grid; grid-template-columns: 380px 1fr; gap: clamp(30px, 4.5vw, 70px); align-items: start; }
.player__cover { position: relative; overflow: hidden; min-height: 380px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.player__cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 120% at 26% 16%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 58%), linear-gradient(150deg, var(--wine), #2a0f0d); }
.player__disc { position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; border: 20px solid rgba(22,18,16,0.5); background: rgba(22,18,16,0.32); z-index: -1; }
.player__disc::after { content: ""; position: absolute; inset: 42%; border-radius: 50%; background: var(--accent); }
.player__album { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.player__albumname { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.4vw, 48px); line-height: 0.98; margin-top: 10px; }
.player__note { color: rgba(255,255,255,0.78); margin-top: 14px; font-size: 14.5px; max-width: 30ch; }
.tracks { border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 18px; padding: 19px 4px; cursor: pointer; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease), background .35s; }
.track:hover, .track.active { padding-left: 16px; }
.track__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .35s, border-color .35s; }
.track:hover .track__btn, .track.active .track__btn { background: var(--accent); border-color: var(--accent); }
.track__btn svg { width: 12px; height: 12px; }
.track__btn path { fill: var(--ink); transition: fill .35s; }
.track:hover .track__btn path, .track.active .track__btn path { fill: var(--accent-ink); }
.track .t-title { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: -0.005em; display: block; }
.track .t-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-top: 3px; display: block; }
.track.active .t-title { color: var(--accent-2); }
.track__time { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); }
.nowbar { margin-top: 26px; border: 1px solid var(--line); padding: 18px 22px; display: flex; align-items: center; gap: 20px; background: var(--surface); }
.nowbar__pp { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; cursor: pointer; transition: transform .25s var(--ease); }
.nowbar__pp:hover { transform: scale(1.07); }
.nowbar__pp svg { width: 17px; height: 17px; }
.nowbar__pp path { fill: var(--accent-ink); }
.nowbar__mid { flex: 1; min-width: 0; }
.nowbar__title { font-family: var(--serif); font-weight: 500; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowbar__prog { height: 3px; background: var(--line-2); margin-top: 11px; overflow: hidden; }
.nowbar__fill { height: 100%; width: 0%; background: var(--accent); }
.nowbar__t { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); flex: none; }
.streamrow { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.streamrow span { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.chip { border: 1px solid var(--line-2); border-radius: 100px; padding: 10px 20px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: border-color .3s, color .3s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   FOTO carousel
   ============================================================ */
.foto__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 44px; }
.carousel { position: relative; }
.carousel__vp { overflow: hidden; }
.carousel__track { display: flex; transition: transform .8s var(--ease); }
.slide { flex: 0 0 100%; aspect-ratio: 16/9; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__cap { position: absolute; left: 22px; bottom: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); background: color-mix(in srgb, var(--bg) 5%, transparent); backdrop-filter: blur(6px); padding: 9px 14px; border: 1px solid var(--line-2); }
.carousel__bar { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.carousel__count { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }
.carousel__count b { color: var(--ink); font-style: normal; font-weight: 600; }
.carousel__btns { display: flex; gap: 12px; }
.carousel__btn { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s, transform .25s var(--ease); }
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel__btn:active { transform: scale(0.94); }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn path { stroke: var(--ink); transition: stroke .3s; }
.carousel__btn:hover path { stroke: var(--accent-ink); }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: end; }
.contacts__intro { color: var(--muted); max-width: 34ch; margin-bottom: 26px; }
.contacts__big { font-family: var(--serif); font-weight: 600; line-height: 0.98; letter-spacing: -0.015em; font-size: clamp(34px, 4.6vw, 66px); }
.contacts__big a { transition: color .3s; }
.contacts__big a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: var(--accent-ink); background: var(--accent); padding: 17px 30px; border-radius: 100px; transition: transform .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-3px); background: var(--ink); }
.contacts__detail .row { display: flex; flex-direction: column; gap: 5px; padding-block: 20px; border-top: 1px solid var(--line); }
.contacts__detail .row:last-child { border-bottom: 1px solid var(--line); }
.contacts__detail .row span { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.contacts__detail .row a, .contacts__detail .row strong { font-family: var(--serif); font-weight: 500; font-size: 22px; transition: color .3s; }
.contacts__detail .row a:hover { color: var(--accent); }
.contacts__detail .row a.wa { display: inline-flex; align-items: center; gap: 12px; }
.contacts__detail .row a.wa svg { width: 24px; height: 24px; fill: #25d366; flex: none; }
.contacts__detail .row a.wa:hover { color: #25d366; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 54px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand svg { width: 46px; height: 46px; }
.footer__brand b { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.005em; }
.footer__social { display: flex; gap: 14px; }
.social { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.social:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; }
.social path { fill: var(--ink); transition: fill .3s; }
.social:hover path { fill: var(--accent-ink); }
.footer__copy { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .player { grid-template-columns: 1fr; }
  .player__cover { min-height: 240px; }
  .contacts__grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav__group { display: none; }
  .burger { display: flex; justify-self: start; }
  .member { grid-template-columns: 1fr; gap: 22px; }
  .member:nth-child(even) .member__media { order: 0; }
  .member__media { aspect-ratio: 4/3; }
  .hero__title { font-size: clamp(52px, 17vw, 96px); }
  .carousel__btn { width: 50px; height: 50px; }
  .scrollcue { display: none; }
}
