/* ───────────────────────────────────────────
   Anders Lund Music — Stylesheet
   Minimalist, monochromatic design
   ─────────────────────────────────────────── */

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

:root {
  --c-bg: #0e0e0e;
  --c-surface: #161616;
  --c-border: #252525;
  --c-text: #e8e8e8;
  --c-text-muted: #888;
  --c-accent: #fff;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1200px;
  --space: clamp(1.25rem, 4vw, 2.5rem);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--c-accent);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ── Header ─────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-accent);
  z-index: 110;
}

.logo:hover {
  color: var(--c-accent);
}

/* ── Language Switch ─────────────────────── */

.lang-switch {
  display: flex;
  gap: 0.15rem;
  z-index: 110;
}

.lang-switch__link {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.lang-switch__link:hover {
  color: var(--c-accent);
}

.lang-switch__link--active {
  color: var(--c-accent);
  border-color: var(--c-border);
}

/* ── Hamburger ──────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--c-accent);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.hamburger.is-active span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ── Nav ────────────────────────────────── */

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* ── Hero Section ────────────────────────── */

.section--hero {
  padding-top: clamp(5rem, 15vh, 10rem);
}

.section__heading--hero {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  color: var(--c-accent);
  margin-bottom: 2.5rem;
}

/* ── Sections ────────────────────────────── */

.section {
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.section__heading {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 2.5rem;
}

/* ── Portfolio Grid ──────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s;
  cursor: pointer;
}

.card:hover {
  border-color: #333;
}

.card__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.card__info {
  padding: 1.25rem 1.5rem;
}

.card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-accent);
  margin-bottom: 0.35rem;
}

.card__details {
  font-size: 0.85rem;
  font-weight: 300;
  color: #aaa;
}

/* ── Video Facade ───────────────────────── */

.yt-facade,
.video-facade {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  position: relative;
}

.yt-facade img,
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.card:hover .yt-facade img,
.card:hover .video-facade img {
  opacity: 0.95;
}

.yt-facade__play {
  position: absolute;
  bottom: 12px;
  right: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.yt-facade__play svg {
  width: 36px;
  height: 26px;
}

.card:hover .yt-facade__play {
  opacity: 0.9;
}

/* ── Lightbox ────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: var(--c-accent);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 210;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__content {
  width: 90vw;
  max-width: 960px;
}

.lightbox__content--portrait {
  max-width: min(420px, 90vw);
}

.lightbox__video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.lightbox__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── About / Contact ─────────────────────── */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.about__text p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  max-width: 42ch;
}

.about__email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--c-accent);
  font-weight: 400;
}

.about__email:hover {
  color: var(--c-text);
}

.about__social {
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--c-accent);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

/* ── Footer ──────────────────────────────── */

.footer {
  border-top: 1px solid var(--c-border);
  padding: clamp(2rem, 4vh, 3rem) 0;
  margin-top: clamp(3rem, 8vh, 6rem);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* ── Scroll Reveal ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Teaching Page ───────────────────────── */

.teaching__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.teaching__subheadline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--c-text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.teaching__hero {
  padding-top: clamp(5rem, 15vh, 10rem);
  padding-bottom: 0;
}

/* ── 3-column Grid (teaching) ──────────── */

.teaching__videos {
  padding-bottom: clamp(1rem, 3vh, 2rem);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card__caption {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.teaching__subhead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  color: var(--c-accent);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.teaching__prose {
  max-width: 54ch;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
}

.teaching__prose ul {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.teaching__prose li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.teaching__prose li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--c-text-muted);
}

.teaching__prose strong {
  font-weight: 500;
  color: var(--c-accent);
}

.teaching__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.teaching__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--c-accent);
  transition: border-color 0.2s, background 0.2s;
}

.teaching__cta:hover {
  border-color: #444;
  background: var(--c-surface);
  color: var(--c-accent);
}

.teaching__contact {
  padding-bottom: clamp(4rem, 10vh, 8rem);
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav {
    gap: 1.5rem;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__img {
    max-width: 320px;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about__img {
    max-width: 260px;
  }
}
