/* =========================================================
   Moss Movies — homepage styles
   Brand tokens: see CLAUDE.md / brandbook
   ========================================================= */

:root {
  --mosgroen: #364F1E;   /* primary */
  --bosnacht: #1D2915;   /* dark background, body text */
  --kalkwit:  #F3EFE4;   /* light background */
  --varen:    #4F6E2C;   /* secondary green */
  --lichtmos: #A9C45E;   /* accent on dark */
  --korstmos: #D3E3A0;   /* soft accent */
  --steen:    #5E5C50;   /* neutral captions */

  --font-logo: 'Pirata One', serif;              /* logo only */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --pad-x: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, .84, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kalkwit);
  color: var(--bosnacht);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--mosgroen); }
a:hover { color: var(--bosnacht); }
p, h1, h2 { margin: 0; }

.container { max-width: 1240px; margin: 0 auto; }

/* ---------- shared type ---------- */
.label {
  font-family: var(--font-head); font-weight: 500; font-size: 13px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--varen);
}
.label--light { color: var(--lichtmos); }
.h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.01em;
  color: var(--mosgroen);
}
.h2--light { color: var(--kalkwit); }
.lead { font-size: 18px; line-height: 1.65; }
.lead--muted { color: var(--steen); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 32px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--kalkwit); color: var(--bosnacht); }
.btn--light:hover { background: var(--lichtmos); color: var(--bosnacht); }
.btn--dark { background: var(--mosgroen); color: var(--kalkwit); }
.btn--dark:hover { background: var(--bosnacht); color: var(--kalkwit); }
.btn__arrow { display: inline-block; transition: transform .3s ease; }
.btn:hover .btn__arrow, .link-arrow:hover .btn__arrow { transform: translateX(5px); }

/* ---------- nav ---------- */
.nav {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px var(--pad-x);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand svg { width: 30px; height: auto; }
.nav__word { font-family: var(--font-logo); font-size: 30px; line-height: 1; color: var(--kalkwit); }
.nav__word--sm { font-size: 26px; }
.nav__links {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px);
  font-family: var(--font-head); font-weight: 500; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase;
}
.nav__links--sm { font-size: 12px; gap: 28px; }
.nav__links a {
  color: var(--kalkwit); text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--lichtmos), var(--lichtmos)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.nav__links a:hover { color: var(--kalkwit); background-size: 100% 1px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  background: var(--mosgroen);
  display: flex; flex-direction: column;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(29,41,21,.55), rgba(29,41,21,0) 180px),
    rgba(29,41,21,.52);
}
.hero__content {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; padding: 40px 24px 120px; text-align: center;
}
.hero__logo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 44px); }
.hero__mark { width: 170px; height: auto; }
.hero__word {
  font-family: var(--font-logo); font-weight: 400;
  font-size: clamp(64px, 10vw, 150px); line-height: .95; color: var(--kalkwit);
}
.hero__tagline {
  max-width: 640px; font-family: var(--font-head); font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; color: var(--kalkwit);
}

/* breathing moss dots (hero mark + play buttons) */
.mm-dot { transform-box: fill-box; transform-origin: center; animation: mmBreathe 3.4s ease-in-out infinite; }
@keyframes mmBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.62); } }

/* scroll cue: column of moss dots lighting up top to bottom */
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 48px; height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.scroll-cue span {
  display: block; width: var(--s); height: var(--s); margin-left: var(--x);
  border-radius: 50%; background: var(--c);
  opacity: .25; transform: scale(.6);
  animation: mmCue 2.4s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes mmCue {
  0%, 100% { opacity: .25; transform: scale(.6); }
  25% { opacity: 1; transform: scale(1); }
  55% { opacity: .25; transform: scale(.6); }
}

/* ---------- about ---------- */
.about { overflow: hidden; padding: clamp(56px, 7vw, 100px) var(--pad-x); }
.about__grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 4.5vw, 72px); }
.about__photo { flex: 1 1 360px; min-width: 0; }
/* landscape crop: the photo itself is 3:2, so it no longer towers over the text */
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; border-radius: 6px; }
.about__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) {
  .about__photo img { aspect-ratio: 3 / 2; }
}
.people { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.person { flex: 1 1 180px; border-top: 2px solid var(--mosgroen); padding-top: 14px; }
.person__name { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.person__role {
  font-family: var(--font-head); font-weight: 500; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--steen); margin-top: 4px;
}

/* slide in from the left when scrolled into view (class added by js/main.js) */
.reveal-left { opacity: 0; transform: translateX(-220px); transition: opacity 1.2s ease, transform 1.5s var(--ease-out); }
.reveal-left.is-visible { opacity: 1; transform: none; }
.no-js .reveal-left { opacity: 1; transform: none; }

/* ---------- work ---------- */
.work { background: var(--bosnacht); padding: clamp(80px, 10vw, 140px) var(--pad-x); }
.work .container { display: flex; flex-direction: column; gap: 28px; }
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.work__head > div { display: flex; flex-direction: column; gap: 16px; }
.link-arrow {
  font-family: var(--font-head); font-weight: 500; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--korstmos); text-decoration: none;
}
.link-arrow:hover { color: var(--kalkwit); }
.work__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }

.card {
  all: unset; box-sizing: border-box; cursor: pointer;
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--bg);
}
.card--featured { aspect-ratio: 16 / 9; }
.card:focus-visible { outline: 3px solid var(--lichtmos); outline-offset: 4px; }
.card__still {
  position: absolute; inset: 0; background: var(--bg) center / cover no-repeat;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card__still { transform: scale(1.05); }
.card__placeholder {
  display: block; padding-top: 24px; text-align: center;
  font-family: var(--font-head); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--korstmos);
}
.card__scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, rgba(29,41,21,.9), rgba(29,41,21,0)); }
.card__play {
  position: absolute; left: 50%; top: 50%; width: 56px;
  transform: translate(-50%, -50%); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.card--featured .card__play { width: 84px; }
.card:hover .card__play { transform: translate(-50%, -50%) scale(1.18); }
.card__dur {
  position: absolute; right: 20px; top: 18px;
  font-family: var(--font-head); font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--kalkwit);
}
.card__meta {
  position: absolute; left: 24px; right: 20px; bottom: 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card__meta { transform: translateY(-6px); }
.card__tag {
  font-family: var(--font-head); font-weight: 500; font-size: 11px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--lichtmos);
}
.card__title { font-family: var(--font-head); font-weight: 600; font-size: 26px; line-height: 1.15; color: var(--kalkwit); }
.card--featured .card__meta { left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); gap: 10px; }
.card--featured .card__tag { font-size: 12px; }
.card--featured .card__title { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; }

/* ---------- CTA ---------- */
.cta { padding: clamp(90px, 11vw, 160px) var(--pad-x); }
.cta__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.cta__title {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(42px, 6.4vw, 92px); line-height: 1.1; letter-spacing: -.02em;
}
.words { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; color: var(--mosgroen); }
.words__track { display: flex; flex-direction: column; animation: mmWords 11s cubic-bezier(.7, 0, .2, 1) infinite; }
.words__track span { height: 1.1em; }
@keyframes mmWords {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-1.1em); }
  50%, 70% { transform: translateY(-2.2em); }
  75%, 95% { transform: translateY(-3.3em); }
  100% { transform: translateY(-4.4em); }
}
.cta__text { max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--steen); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.cta__mail { font-family: var(--font-head); font-weight: 500; font-size: 18px; }

/* ---------- footer ---------- */
.footer { background: var(--bosnacht); padding: 40px var(--pad-x); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer__copy { font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lichtmos); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(29,41,21,.94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: mmFade .35s ease;
}
.lightbox[hidden] { display: none; }
@keyframes mmFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__inner { width: min(1100px, 100%); display: flex; flex-direction: column; gap: 18px; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox__title { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--kalkwit); }
.lightbox__close {
  min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(243,239,228,.4); background: transparent; color: var(--kalkwit);
  font-family: var(--font-head); font-weight: 500; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.lightbox__close:hover { border-color: var(--lichtmos); color: var(--lichtmos); }
.lightbox__player {
  aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; background: var(--mosgroen);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--korstmos);
}
.lightbox__player iframe { width: 100%; height: 100%; border: 0; }
.lightbox__meta {
  font-family: var(--font-head); font-weight: 500; font-size: 12px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--lichtmos);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mm-dot, .scroll-cue span, .words__track, .lightbox { animation: none; }
  .scroll-cue span { opacity: .8; transform: none; }
  .reveal-left { opacity: 1; transform: none; transition: none; }
}
