/* ============================================================
   SIVERT HØYEM — Cinematic Artist Site
   Dark, moody, nature-inspired, image-dominant, minimal UI.
   ============================================================ */

:root {
  --bg: #0e1411;          /* very dark green / black            */
  --bg-2: #0a0f0c;
  --ink: #eef0ec;
  --ink-soft: rgba(238,240,236,0.62);
  --line: rgba(238,240,236,0.14);
  --accent: #8a9b88;      /* muted sage                         */
  --maxw: 1200px;
  --font-head: "Oswald", sans-serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-body: "Oswald", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.kicker {
  font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 16px;
}
.head {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05;
  margin-bottom: 50px; letter-spacing: 0.01em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -8% 0; /* extra height for parallax travel */
  background: url("images/hero.jpg") center/cover no-repeat;
  will-change: transform; z-index: 1;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.6));
}

/* nav (top-right) */
.nav { position: absolute; top: 0; right: 0; z-index: 5; padding: 34px 40px; }
.nav__links { list-style: none; display: flex; gap: 30px; }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); opacity: 0.82; transition: opacity 0.3s;
}
.nav__links a:hover { opacity: 1; }
.nav__burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; }
.nav__burger span { width: 28px; height: 2px; background: var(--ink); }

/* artist name (top-left) */
.hero__name { position: absolute; top: 0; left: 0; z-index: 5; padding: 90px 40px; }
.hero__name h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.92;
  letter-spacing: 0.02em; text-transform: uppercase;
}

/* left social / listen panel */
.panel { margin-top: 40px; }
.panel__label {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft); margin: 18px 0 10px;
}
.panel__row { display: flex; gap: 16px; }
.ic { width: 22px; height: 22px; opacity: 0.85; transition: opacity 0.3s, transform 0.3s; }
.ic svg { width: 100%; height: 100%; fill: var(--ink); }
.ic:hover { opacity: 1; transform: translateY(-2px); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 5; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); animation: fade 3s ease-in-out infinite;
}
@keyframes fade { 0%,100% { opacity: 0.4; } 50% { opacity: 0.9; } }

/* ============================================================
   LATEST MUSIC
   ============================================================ */
.music { background: var(--bg); padding: 120px 0; }
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.album__art { position: relative; border-radius: 6px; overflow: hidden; }
.album__art img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 1.2s ease; /* slow cinematic zoom */
}
.album__art::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.35); transition: opacity 0.6s ease;
}
.album:hover .album__art img { transform: scale(1.07); }
.album:hover .album__art::after { opacity: 0; }
.album__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(238,240,236,0.6);
  background: rgba(0,0,0,0.3); color: var(--ink); font-size: 1.1rem; cursor: pointer;
  opacity: 0; transition: opacity 0.5s ease, background 0.3s;
}
.album:hover .album__play { opacity: 1; }
.album__play:hover { background: rgba(0,0,0,0.6); }
.album h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-top: 18px; }
.album p { color: var(--ink-soft); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   LIVE TOUR
   ============================================================ */
.live { background: var(--bg-2); padding: 120px 0; }
.tour { list-style: none; }
.tour__row {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; gap: 24px; align-items: center;
  padding: 26px 6px; border-top: 1px solid var(--line);
  transition: background 0.4s, padding-left 0.4s;
}
.tour__row:last-child { border-bottom: 1px solid var(--line); }
.tour__row:hover { background: rgba(238,240,236,0.03); padding-left: 18px; }
.tour__city { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; }
.tour__venue { color: var(--ink-soft); }
.tour__date { color: var(--ink-soft); letter-spacing: 0.08em; }
.tour__btn {
  justify-self: end; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 24px; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.tour__btn:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   VIDEO
   ============================================================ */
.video { background: var(--bg); padding: 120px 0; }
.video__frame {
  position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9;
  cursor: pointer;
}
.video__frame img { width: 100%; height: 100%; object-fit: cover; }
.video__frame iframe { width: 100%; height: 100%; border: 0; }
.video__frame::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3);
  transition: opacity 0.5s; pointer-events: none;
}
.video__frame:hover::after { opacity: 0; }
.video__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(238,240,236,0.7); background: rgba(0,0,0,0.25);
  color: var(--ink); font-size: 1.6rem; transition: transform 0.4s, background 0.3s;
}
.video__play:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(0,0,0,0.5); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--bg-2); padding: 120px 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { overflow: hidden; border-radius: 6px; position: relative; }
.shot img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform 1.2s ease;
}
.shot::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.32); transition: opacity 0.6s; }
.shot:hover img { transform: scale(1.06); }
.shot:hover::after { opacity: 0; }
.shot:nth-child(4) { grid-column: span 2; }
.shot:nth-child(4) img { aspect-ratio: 8/5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); padding: 90px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__name { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__links { list-style: none; display: flex; gap: 28px; }
.footer__links a { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s; }
.footer__links a:hover { color: var(--ink); }
.footer__back { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s; }
.footer__back:hover { color: var(--ink); }
.footer__copy { text-align: center; margin-top: 50px; color: var(--ink-soft); font-size: 0.74rem; letter-spacing: 0.12em; }

/* ============================================================
   Scroll reveal (slow fade-up)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: none; position: absolute; top: 70px; right: 24px;
    flex-direction: column; gap: 18px; background: rgba(14,20,17,0.96);
    border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px;
  }
  .nav__links.open { display: flex; }
  .hero__name { padding: 70px 28px; }
  .albums { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .shot:nth-child(4) { grid-column: span 2; }
  .tour__row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .tour__venue, .tour__date { grid-column: 1 / -1; }
  .tour__btn { grid-row: 1; grid-column: 2; }
}

@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .shot:nth-child(4) { grid-column: span 1; }
  .shot:nth-child(4) img { aspect-ratio: 4/5; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__bg { transform: none !important; }
}
