/* ============ tokens ============ */
:root {
  --void: #050505;
  --ink: #0b0b0d;
  --panel: #141416;
  --card: #1e1e21;
  --card-line: rgba(255, 255, 255, 0.09);
  --bone: #ece7da;
  --bone-dim: #a9a49a;
  --red: #e11d2e;
  --red-deep: #6e0d16;
  --line: rgba(236, 231, 218, 0.14);

  --font-display: 'Anton', 'Bebas Neue', sans-serif;
  --font-alt: 'Bebas Neue', var(--font-display);
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: #000;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #000;
  color: var(--bone);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ page / card shell ============ */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 5vw, 64px) 16px;
}

.komi-card {
  width: 80vw;
  max-width: 1400px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: clamp(18px, 5vw, 28px);
  padding-bottom: 8px;
}

/* ============ hero photo ============ */
.card-photo {
  width: 70%;
  max-width: 640px;
  margin: clamp(20px, 6vw, 44px) auto 0;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  animation: heroFadeIn 1.4s ease-out both;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.bio {
  text-align: center;
  margin: 22px auto 0;
  padding: 0 20px;
}
.bio-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 9vw, 2.6rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--bone);
}
.bio-loc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--bone-dim);
  font-size: clamp(0.95rem, 4vw, 1.1rem);
}
.bio-loc svg { width: 20px; height: 20px; flex: 0 0 auto; }
.bio-text {
  margin: 14px 0 0;
  color: var(--bone);
  font-size: clamp(0.92rem, 3.9vw, 1.02rem);
  line-height: 1.6;
}
.bio-text a {
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.bio-text a:hover { color: var(--red); }

/* ============ icon buttons ============ */
.icon-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 22px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-dim);
  transition: border-color 0.25s, color 0.25s, transform 0.25s, background 0.25s;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(225,29,46,0.08);
  transform: translateY(-2px);
}

/* ============ tab nav ============ */
.tab-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px 26px;
}
.tab-btn {
  font-family: var(--font-alt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--bone-dim);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--bone); border-color: var(--bone-dim); }
.tab-btn.active {
  background: rgba(236,231,218,0.12);
  color: var(--bone);
  border-color: var(--card-line);
}

/* ============ rails ============ */
.rail {
  border-top: 1px solid var(--card-line);
  padding: 24px 20px;
}
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.rail-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.4rem;
  margin: 0;
  color: var(--bone);
}
.rail-arrows { display: flex; gap: 8px; }
.rail-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--bone-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.rail-arrow svg { width: 14px; height: 14px; }
.rail-arrow:hover { border-color: var(--red); color: var(--red); }

.rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track--single { overflow: visible; }

/* ============ rail cards (generic) ============ */
.r-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
a.r-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

/* platform / music cards */
.r-card--platform {
  width: 168px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.r-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(236,231,218,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--bone);
}
.r-icon svg { width: 16px; height: 16px; fill: currentColor; }
.r-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.r-sub {
  color: var(--bone-dim);
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.r-pill {
  font-family: var(--font-alt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  align-self: flex-start;
  transition: border-color 0.2s, background 0.2s;
}
.r-card--platform:hover .r-pill,
.r-card--booking:hover .r-pill {
  border-color: var(--red);
  background: rgba(225,29,46,0.12);
}

/* video / live set cards */
.r-card--video {
  width: 220px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.r-video-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #111;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  margin-bottom: 6px;
}
.r-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.r-video-thumb img.pos-bottom { object-position: center bottom; }
.r-video-thumb img.pos-top { object-position: center top; }
.r-card--video:hover .r-video-thumb img { transform: scale(1.04); }
.r-play {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(5,5,5,0.55);
  border: 1px solid rgba(236,231,218,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  transition: background 0.2s, transform 0.2s;
}
.r-play svg { width: 16px; height: 16px; fill: currentColor; }
.r-card--video:hover .r-play { background: var(--red); border-color: var(--red); transform: scale(1.08); }

.set-platform {
  font-family: var(--font-alt);
  letter-spacing: 0.15em;
  font-size: 0.68rem;
  color: var(--red-deep);
}
.r-card--video:hover .set-platform { color: var(--red); }

.r-card--featured {
  width: 240px;
  border-left: 3px solid var(--red);
  background: rgba(225,29,46,0.06);
}
.tag-red {
  display: inline-block;
  font-family: var(--font-alt);
  letter-spacing: 0.1em;
  font-size: 0.64rem;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 3px 8px;
  margin-bottom: 2px;
  width: fit-content;
}

/* booking card */
.r-card--booking {
  width: 100%;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.r-card--booking .r-icon { margin-bottom: 12px; }
.r-card--booking .r-sub { margin-bottom: 16px; }

/* ============ footer ============ */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px 26px;
  margin-top: 8px;
  border-top: 1px solid var(--card-line);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ============ reveal-on-scroll (alternating sides -> center) ============ */
.reveal {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.from-right { transform: translateX(48px); }
.reveal.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ============ small screens: full-bleed hero ============ */
@media (max-width: 1100px) {
  .page { padding-top: 0; }
  .komi-card { border-top: 0; }
  .card-photo {
    width: 100vw;
    max-width: none;
    margin: 0 0 0 calc(50% - 50vw);
    border-radius: 0;
  }
}

/* ============ mobile ============ */
@media (max-width: 480px) {
  .page { padding: 0 0 12px; }
  .komi-card { width: 100%; border: 0; border-radius: 0; }
  .rail { padding: 20px 14px; }
  .rail-head h2 { font-size: 1.25rem; }
  .tab-nav { gap: 6px; padding: 0 12px 22px; }
  .tab-btn { font-size: 0.78rem; padding: 8px 14px; }
  .icon-btn { width: 42px; height: 42px; }
  .r-card--platform { width: clamp(136px, 42vw, 168px); padding: 18px 14px; }
  .r-card--video { width: clamp(176px, 62vw, 220px); }
  .r-card--featured { width: clamp(190px, 68vw, 240px); }
  .r-card--booking { padding: 20px 18px; }
  .r-sub { word-break: break-word; }
  .card-footer { padding: 18px 16px 22px; gap: 12px; font-size: 0.66rem; }
  .reveal { transform: translateX(-28px); }
  .reveal.from-right { transform: translateX(28px); }
  .reveal.in-view { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.from-right { transition: none; opacity: 1; transform: none; }
  .card-photo { animation: none; }
}
