/* ===== Phenomen Berlin — light, Manrope, editorial ===== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --paper:      #FFFFFF;   /* page background */
  --surface:    #FAFAF8;   /* faint elevated fill: posters, video, carousel buttons */
  --ink:        #14141A;   /* primary text — 18.4:1 on paper */
  --mute:       #5E5E66;   /* secondary text — 6.4:1 AA on paper */
  --red:        #E2231A;   /* brand accent: display, underlines, buttons, focus */
  --red-link:   #C81A12;   /* body link text — 5.8:1 AA on paper */
  --on-red:     #FFFFFF;   /* text on red surfaces */
  --hairline:   rgba(20,20,26,.14);
  --hairline-2: rgba(20,20,26,.08);
  --shadow:     0 8px 28px rgba(20,20,26,.07);

  --display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --navh: 66px;
}

body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: var(--on-red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

/* Recolor the white brand mark (designed for dark bg) to ink for the light theme.
   PNGs are transparent, so brightness(0) yields a clean black mark — no new assets. */
.nav__emblem, .hero__emblem, .footer__emblem { filter: brightness(0); }

/* --- Utilities --- */
.frame { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
:where([id]) { scroll-margin-top: calc(var(--navh) + 16px); }

/* --- Shared type --- */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 16px;
}
.section-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 3vw, 4rem);
  line-height: 1.04; letter-spacing: -.02em;
  max-width: 20ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  line-height: 1.65; color: color-mix(in srgb, var(--ink) 88%, var(--paper));
  max-width: 64ch;
}
.lead a {
  color: var(--red-link); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--red-link) 45%, transparent);
  transition: border-color .15s;
}
.lead a:hover { border-bottom-color: var(--red-link); }

/* --- Skip link --- */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px;
  font-weight: 600; text-decoration: none; transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ====== Nav ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700; height: var(--navh);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.is-solid {
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 var(--hairline), 0 6px 24px rgba(20,20,26,.06);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav__emblem { width: 32px; }
.nav__wordmark { font-family: var(--display); font-weight: 700; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .02em; }

.nav__menu ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); list-style: none; }
.nav__menu a {
  position: relative; font-size: .9rem; font-weight: 600; color: var(--mute);
  text-decoration: none; padding: 6px 0; transition: color .15s;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); opacity: 0;
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a.is-active { color: var(--ink); }
.nav__menu a.is-active::after { opacity: 1; }

.nav__toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

/* ====== Hero: title on top, photo band below ====== */
.hero__inner {
  padding-top: calc(var(--navh) + clamp(2.5rem, 8vh, 5.5rem));
  padding-bottom: clamp(2rem, 5vh, 4rem);
}
.hero__emblem { width: clamp(54px, 7vw, 84px); margin-bottom: 24px; }
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 8.5vw, 6rem); line-height: .92; letter-spacing: -.03em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__eyebrow {
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute);
}
.link-label { color: var(--mute); }
.hero__lead {
  margin-top: 22px; max-width: 52ch;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  color: color-mix(in srgb, var(--ink) 88%, var(--paper));
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-weight: 700; letter-spacing: .02em; color: var(--on-red); text-decoration: none;
  padding: 14px 26px; background: var(--red); border-radius: 2px; transition: background .15s;
}
.hero__cta:hover { background: #C81A12; }

/* "Est. 2010" accent in the hero eyebrow — founding year emphasized, no new copy */
.hero__since { color: var(--red); font-weight: 700; }

/* Whole photo, never cropped — natural aspect ratio inside the content frame. */
.hero__figure { margin-top: clamp(1.5rem, 4vh, 3rem); }
.hero__figure img { width: 100%; height: auto; border-radius: 2px; }
.hero__figure figcaption {
  margin-top: 10px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}

/* ====== DAU ====== */
.dau { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.dau__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 10rem); line-height: .85; letter-spacing: -.04em; margin-bottom: 14px;
}
.dau__lead { max-width: 58ch; }
.dau__history {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 960px;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden;
  box-shadow: var(--shadow);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.btn-line {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink);
  text-decoration: none; padding-bottom: 6px; border-bottom: 2px solid var(--red); transition: color .15s;
}
.btn-line:hover { color: var(--red-link); }

/* ====== Work / poster carousel ====== */
.carousel { position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.carousel__track {
  display: flex; gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  list-style: none; padding-bottom: 10px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.poster { flex: 0 0 calc(33.333% - 16px); scroll-snap-align: start; }
.poster__link {
  display: block; text-decoration: none; border-radius: 3px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline-2); box-shadow: var(--shadow);
}
.poster__link img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: opacity .15s; }
.poster__link:hover img { opacity: .9; }

.poster__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; }
.poster__title { font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.poster__year { font-size: .8rem; color: var(--mute); }
.poster__note { margin-top: 4px; font-size: .78rem; color: var(--mute); }
.watch {
  display: inline-block; margin-top: 8px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-link); text-decoration: none;
}
.watch::before { content: "▶ "; font-size: .6em; vertical-align: middle; }
.watch:hover { color: var(--red); }

.carousel__btn {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--hairline); color: var(--ink);
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background .15s, border-color .15s;
}
.carousel__btn:hover { background: var(--surface); border-color: var(--ink); }
.carousel__btn.prev { left: -14px; }
.carousel__btn.next { right: -14px; }

/* ====== News ====== */
.news { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.news__item {
  display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface); border: 1px solid var(--hairline-2); border-radius: 3px;
  box-shadow: var(--shadow); border-top: 3px solid var(--red);
}
.news__date { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.news__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.2; margin-bottom: 10px; }
.news__note { color: var(--mute); font-size: .96rem; line-height: 1.55; }
.news__link { margin-top: auto; padding-top: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red-link); text-decoration: none; }
.news__link:hover { color: var(--red); }
@media (max-width: 860px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; } }

/* ====== Selected Productions (plain text blocks) ====== */
.productions { list-style: none; }
.productions li { padding: clamp(20px, 3vw, 30px) 0; border-bottom: 1px solid var(--hairline-2); }
.productions li:first-child { border-top: 1px solid var(--hairline-2); }
.prod__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); line-height: 1.15; }
.prod__title a { text-decoration: none; transition: color .15s; }
.prod__title a:hover { color: var(--red-link); }
.prod__meta { color: var(--mute); font-size: .9rem; margin: 4px 0 8px; }
.prod__note { color: var(--mute); font-size: .98rem; line-height: 1.6; max-width: 72ch; }
.prod__note a { color: var(--red-link); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.prod__note a:hover { border-bottom-color: var(--red-link); }
.prod__synopsis { font-size: 1rem; line-height: 1.65; max-width: 72ch; margin-top: 10px; }

/* ====== Awards & Festivals ====== */
.awards { list-style: none; }
.awards > li { padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--hairline-2); }
.awards > li:first-child { border-top: 1px solid var(--hairline-2); }
.aw__film { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.15; margin-bottom: 4px; }
.aw__film a { text-decoration: none; transition: color .15s; }
.aw__film a:hover { color: var(--red-link); }
.aw__sub { color: var(--mute); font-size: .9rem; margin-bottom: 16px; }
.aw__list { list-style: none; display: grid; gap: 10px; max-width: 76ch; }
.aw__list li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 14px; align-items: baseline; font-size: .98rem; line-height: 1.55; }
.aw__year { color: var(--mute); font-variant-numeric: tabular-nums; font-size: .85rem; letter-spacing: .04em; }
.aw__list a { color: var(--red-link); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.aw__list a:hover { border-bottom-color: var(--red-link); }
.aw__tag { display: inline-block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 2px 7px; margin-right: 8px; border-radius: 2px; vertical-align: 2px; }
.aw__tag--win { background: var(--red-link); color: #fff; }
.aw__tag--nom { border: 1px solid var(--hairline-2); color: var(--mute); }
@media (max-width: 560px) {
  .aw__list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ====== Links ====== */
.links { list-style: none; max-width: 640px; }
.links li { border-bottom: 1px solid var(--hairline-2); }
.links a { display: block; padding: 14px 0; text-decoration: none; color: var(--ink); font-size: 1.05rem; transition: color .15s; }
.links a:hover { color: var(--red-link); }

/* ====== Company (plain text) ====== */
.company p { color: var(--mute); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.9; }
.company .est { color: var(--ink); font-weight: 700; }

/* ====== Contact (plain text) ====== */
.contact p { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); margin-bottom: 12px; }
.contact a { color: var(--red-link); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.contact a:hover { border-bottom-color: var(--red-link); }
.contact__place { margin-top: clamp(1.75rem, 4vw, 2.75rem); color: var(--mute); font-size: 1rem; letter-spacing: .22em; text-transform: uppercase; }

/* ====== Footer ====== */
.footer { border-top: 1px solid var(--hairline); padding-block: 32px; }
.footer__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__emblem { width: 26px; opacity: .9; }
.footer__copy { font-size: .8rem; letter-spacing: .06em; color: var(--mute); }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { font-size: .8rem; letter-spacing: .06em; color: var(--mute); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.footer__links a:hover { color: var(--red-link); border-bottom-color: var(--red-link); }
.footer__top { margin-left: auto; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-decoration: none; transition: color .15s; }
.footer__top:hover { color: var(--ink); }

/* ====== Responsive ====== */
@media (max-width: 860px) {
  :root { --navh: 58px; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 690; background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .nav__menu ul { flex-direction: column; gap: 26px; text-align: center; }
  .nav__menu a { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--ink); }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .poster { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 560px) {
  .carousel__btn { display: none; }
  .poster { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
