/* ==========================================================================
   DEWNAPAT — Artist Landing Page
   ========================================================================== */

:root {
  --black: #000000;
  --white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-dimmer: rgba(255, 255, 255, 0.38);
  --pill-radius: 999px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
a { text-decoration: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Fixed cinematic background
   ========================================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  background: var(--black);
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/artist.jpg');
  background-size: cover;
  background-position: 50% 22%;
  background-repeat: no-repeat;
  transform: scale(1.12);
  animation: introZoom 2.6s var(--ease-out) forwards,
             breathe 10s ease-in-out 2.6s infinite;
  will-change: transform;
}

@keyframes introZoom {
  from { transform: scale(1.16); opacity: 0.65; }
  to   { transform: scale(1.05); opacity: 1; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1.05); }
  50%      { transform: scale(1.09); }
}

.bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* cinematic fade: transparent near top, solid black at bottom, always visible */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 16%,
    rgba(0, 0, 0, 0.05) 32%,
    rgba(0, 0, 0, 0.25) 52%,
    rgba(0, 0, 0, 0.72) 70%,
    rgba(0, 0, 0, 0.94) 85%,
    #000 100%
  );
}

.bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

/* ==========================================================================
   Top-right menu
   ========================================================================== */

.menu-wrap {
  position: fixed;
  top: calc(20px + var(--safe-top));
  right: calc(20px + var(--safe-right));
  z-index: 50;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  transition: background 0.25s var(--ease-out), transform 0.15s var(--ease-out);
}

.menu-btn:hover { background: rgba(255, 255, 255, 0.2); }
.menu-btn:active { transform: scale(0.92); }

.menu-btn .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  display: block;
}

.menu-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 6px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.menu-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white);
  transition: background 0.15s ease;
}

.menu-item:hover { background: rgba(255, 255, 255, 0.1); }
.menu-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px;
  padding-bottom: clamp(48px, 12vh, 120px);
}

.hero-content {
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.8vh, 8px);
}

.eyebrow {
  font-size: clamp(11px, 2.6vw, 13px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(2px, 1vh, 8px);
}

.artist-name {
  font-size: clamp(2.6rem, 12vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.role {
  font-size: clamp(11px, 2.6vw, 13px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: clamp(6px, 1.4vh, 14px);
}

.scroll-cue {
  margin-top: clamp(28px, 6vh, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  padding: 12px 20px;
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.15);

  color: rgba(255,255,255,0.9);

  box-shadow:
    0 0 25px rgba(255,255,255,0.08),
    0 8px 30px rgba(0,0,0,0.35);

  animation: bob 2s ease-in-out infinite;
}

.scroll-cue svg { width: 16px; height: 16px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* Reveal-fade base state (JS toggles .visible) */
.reveal-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 0.15s);
}

.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Links section
   ========================================================================== */

.links-section {
  position: relative;
  z-index: 5;
  background: #000;
  padding: clamp(28px, 6vh, 56px) clamp(18px, 5vw, 28px) calc(clamp(40px, 8vh, 72px) + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(20px, 4vh, 32px);
  text-align: center;
}

.links-list {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: var(--white);
  color: #111;
  border-radius: var(--pill-radius);
  padding: clamp(14px, 3.2vw, 18px) clamp(18px, 4vw, 26px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);

  opacity: 0;
  transform: translateY(24px);
}

.link-btn.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}

.link-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg { width: 100%; height: 100%; }

.link-label {
  flex: 1;
  font-size: clamp(15px, 3.6vw, 17px);
  font-weight: 700;
}

.link-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.25s var(--ease-out);
}

.link-arrow svg { width: 100%; height: 100%; }

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
  .link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
  .link-btn:hover .link-arrow { transform: translateX(4px); }
}

/* Mobile press */
.link-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.footer-note {
  margin-top: clamp(28px, 5vh, 44px);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  text-align: center;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  transform: translate(-50%, 16px);
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--pill-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 100;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive tuning
   ========================================================================== */

@media (min-width: 900px) {
  .hero { padding-bottom: 96px; }
  .links-section { padding-top: 72px; }
}

@media (max-width: 380px) {
  .link-label { font-size: 14.5px; }
}

@media (min-width: 900px) {
  .bg-image {
    background-position: center 8%;
  }
}

@media (hover:hover) {
  .scroll-cue:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
  }
}
