:root {
  --ink: #0c0b0a;
  --ink-soft: #1a1816;
  --paper: #f2efe8;
  --muted: #a39e94;
  --accent: #ffffff;
  --accent-dim: #e8e4dc;
  --line: rgba(242, 239, 232, 0.12);
  --glow: rgba(255, 255, 255, 0.12);
  --warm: rgba(214, 140, 48, 0.22);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --nav-width: min(22rem, 88vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site {
  position: relative;
  z-index: 1;
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.4rem;
  transition: background 0.25s var(--ease);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.menu-toggle__bars {
  width: 1.35rem;
  height: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transition: transform 0.35s var(--ease), opacity 0.25s;
  transform-origin: center;
}

body.nav-open .menu-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer nav */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--nav-width);
  padding: 5.5rem 1.75rem 2rem;
  background:
    linear-gradient(165deg, #161411 0%, #0c0b0a 55%, #141210 100%);
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

body.nav-open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-drawer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-drawer__list a {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 0.55rem 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  transition: color 0.2s, transform 0.25s var(--ease);
}

.nav-drawer__list a:hover,
.nav-drawer__list a:focus-visible,
.nav-drawer__list a[aria-current="page"] {
  color: var(--accent);
  outline: none;
  transform: translateX(0.35rem);
}

.nav-drawer__list a span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav-drawer__foot {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-drawer__foot a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.nav-drawer__foot a:hover {
  border-bottom-color: var(--accent);
}

/* Hero / landing */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 6.5rem 1.35rem 2.75rem;
  position: relative;
  overflow: hidden;
  background: #0c0b0a;
}

.hero__art {
  position: absolute;
  inset: 2% 0 8% 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}

.hero__art img {
  width: min(98vw, 68rem);
  max-height: min(86vh, 58rem);
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 84% at 50% 50%,
    #000 60%,
    rgba(0, 0, 0, 0.85) 80%,
    rgba(0, 0, 0, 0.4) 93%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 84% at 50% 50%,
    #000 60%,
    rgba(0, 0, 0, 0.85) 80%,
    rgba(0, 0, 0, 0.4) 93%,
    transparent 100%
  );
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.45rem); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.45) 0%, transparent 20%, transparent 62%, rgba(12, 11, 10, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 12ch;
  animation: rise 0.9s var(--ease) both;
}

.hero__brand em {
  font-style: normal;
  color: var(--accent);
}

.hero__tag {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(242, 239, 232, 0.82);
  animation: rise 0.9s 0.1s var(--ease) both;
}

.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s 0.18s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.35rem;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--accent);
  color: var(--ink);
}

.btn--solid:hover {
  background: var(--accent-dim);
}

.btn--ghost {
  border: 1px solid rgba(242, 239, 232, 0.28);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  right: 1.35rem;
  bottom: 2.5rem;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* Page shell */
.page-hero {
  padding: 7.5rem 1.35rem 2.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #161411, var(--ink));
}

.page-hero__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.page-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
}

.page-lead {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgba(242, 239, 232, 0.75);
  font-size: 1.05rem;
}

/* Channel header */
.channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem 1.75rem;
  margin-top: 2.25rem;
}

.channel__pfp {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  animation: rise 0.8s var(--ease) both;
}

.channel__meta h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.channel__handle {
  color: var(--muted);
  margin-top: 0.2rem;
}

.channel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

/* Video rail */
.section {
  padding: 1rem 0 4.5rem;
}

.section--uploads {
  padding-bottom: 5rem;
}

.section__head {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.35rem 1.35rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section__head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.section__head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.35rem 1.1rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.35rem 1.5rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  transition: transform 0.3s var(--ease);
}

.video-card:hover {
  transform: translateY(-4px);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.35rem;
  background: var(--ink-soft);
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.05);
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s;
}

.video-card:hover .video-card__play,
.video-card:focus-within .video-card__play {
  opacity: 1;
}

.video-card__play span {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.video-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Featured player */
.featured {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.35rem 2.5rem;
}

.featured__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.featured__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured__caption {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Beats page */
.beats-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.35rem 4rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .beats-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
}

.beats-panel {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 40%),
    rgba(255, 255, 255, 0.02);
}

.beats-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.beats-panel p {
  color: rgba(242, 239, 232, 0.72);
  margin-bottom: 1.25rem;
}

.beat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.beat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.beat-list li:last-child {
  border-bottom: none;
}

.beat-list strong {
  display: block;
  font-size: 0.95rem;
}

.beat-list span {
  font-size: 0.78rem;
  color: var(--muted);
}

.beat-list em {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.store-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(160deg, #1c1a14, #0c0b0a);
}

.store-cta .btn {
  align-self: flex-start;
  margin-top: 1.5rem;
}

.store-url {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  letter-spacing: -0.02em;
  word-break: break-all;
}

/* Home hub sections */
.hub {
  border-top: 1px solid var(--line);
  padding: 4.25rem 1.35rem;
}

.hub__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.hub__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hub__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 16ch;
}

.hub__lead {
  margin-top: 0.9rem;
  max-width: 34rem;
  color: rgba(242, 239, 232, 0.72);
  font-size: 1.05rem;
}

.hub-split {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .hub-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hub-path {
  display: block;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  transition: transform 0.3s var(--ease);
}

.hub-path:hover {
  transform: translateY(-3px);
}

.hub-path__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-path h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-top: 0.55rem;
}

.hub-path p {
  margin-top: 0.65rem;
  color: rgba(242, 239, 232, 0.7);
  max-width: 28rem;
}

.hub-path__go {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.15rem;
}

.hub-path:hover .hub-path__go {
  border-bottom-color: var(--accent);
}

.hub-latest {
  margin-top: 2.25rem;
}

.hub-latest__row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.hub-latest__item {
  flex: 0 0 min(16rem, 72vw);
  scroll-snap-align: start;
}

.hub-about {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .hub-about {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: end;
  }
}

.hub-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hub-links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  transition: color 0.2s;
}

.hub-links a:hover {
  color: var(--accent);
}

.hub-links span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Footer */
.footer {
  padding: 2rem 1.35rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer a:hover {
  color: var(--accent);
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
