@property --shimmer {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

/* =========================================================
   Boafilm VC — base styles
   Palette:
     --blue   : approximation of HKS 41
     --gold   : approximation of Pantone 871 C (metallic gold)
   ========================================================= */

:root {
  --blue:        #003F7E;   /* HKS 41 approx. */
  --blue-deep:   #002A55;
  --gold:        #8C7032;   /* Pantone 871 C approx. */
  --gold-soft:   #B89A5C;

  --bg:          #F6F3EC;   /* warm off-white */
  --bg-alt:      #FFFFFF;
  --ink:         #141618;
  --ink-soft:    #4A4F55;
  --line:        rgba(20, 22, 24, 0.12);

  /* Primary: commercial Adobe fonts. Fallbacks (Cinzel / Barlow Condensed) ship from Google Fonts. */
  --display: "Trajan Pro", "Trajan Pro 3", "trajan-pro-3", "Cinzel", "Times New Roman", serif;
  --sans:    "Myriad Pro Condensed", "myriad-pro-condensed", "Barlow Condensed", "Helvetica Neue Condensed", "Arial Narrow", Arial, sans-serif;

  --maxw:   1200px;
  --radius: 2px;       /* keep sharp / editorial, not rounded "techbro" */
  --ease:   cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.0375rem, 3.5vw, 3.9375rem);
  background: linear-gradient(
    100deg,
    #5E4818  0%,
    #8C7032 22%,
    #C9A95F 42%,
    #F0DEA8 50%,
    #C9A95F 58%,
    #8C7032 78%,
    #5E4818 100%
  );
  background-size: 220% 100%;
  background-position: var(--shimmer) 0%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: goldShimmer 7s ease-in-out infinite;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  background: linear-gradient(
    100deg,
    #5E4818  0%,
    #8C7032 22%,
    #C9A95F 42%,
    #F0DEA8 50%,
    #C9A95F 58%,
    #8C7032 78%,
    #5E4818 100%
  );
  background-size: 220% 100%;
  background-position: var(--shimmer) 0%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: goldShimmer 7s ease-in-out infinite;
}
h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  background: linear-gradient(
    100deg,
    #5E4818  0%,
    #8C7032 22%,
    #C9A95F 42%,
    #F0DEA8 50%,
    #C9A95F 58%,
    #8C7032 78%,
    #5E4818 100%
  );
  background-size: 220% 100%;
  background-position: var(--shimmer) 0%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: goldShimmer 7s ease-in-out infinite;
}

p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.2em;
}
.eyebrow.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-full { width: 100%; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.site-header.is-scrolled .brand { color: var(--ink); }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--gold);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  border-radius: var(--radius);
}
.brand-vc { color: var(--gold); font-weight: 600; letter-spacing: 0.05em; }

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
.brand-logo--footer {
  height: 36px;
  opacity: 0.9;
}

/* Logo-Wechsel beim Scrollen */
.brand-logo--scrolled { display: none; }
.site-header.is-scrolled .brand-logo--default { display: none; }
.site-header.is-scrolled .brand-logo--scrolled { display: block; }

.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  color: #fff;
  font-family: var(--display);
  font-weight: 400;             /* Trajan Pro Regular / Book */
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-header.is-scrolled .site-nav a { color: var(--ink); }

/* mobile nav button */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.site-header.is-scrolled .nav-toggle span,
.nav-open .nav-toggle span { background: var(--ink); }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #00091C;
  background-image:
    /* gentle top→bottom blue fade for headline legibility */
    linear-gradient(180deg, rgba(0, 42, 85, 0.15) 0%, rgba(0, 9, 28, 0.5) 100%),
    /* soft vignette */
    radial-gradient(circle at 50% 50%, rgba(0, 9, 28, 0) 35%, rgba(0, 9, 28, 0.55) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Two-layer trick to soften ONLY the silhouette of the transparent PNG:
   ::before is a blurred copy (alpha is feathered along with colour, creating
   a soft halo that extends beyond the silhouette).
   ::after is the same image, sharp, on top — it covers the interior, so the
   blur never affects the subject's interior detail.
   What the eye sees: crisp interior, feathered edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/bg.png') center / 60% auto no-repeat;
  /* Halo: wider blur for a softer feathered edge, dimmed via opacity so it
     blends into the bg without needing a colour-shifting blend mode. */
  filter: blur(24px) brightness(0.6);
  opacity: 0.6;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/bg.png') center / 60% auto no-repeat;
  /* Just opacity — lets the gradient bleed through the subject without
     forcing a blue colour-shift the way luminosity did. */
  opacity: 0.8;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.45) 80%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 160px 24px 120px;
}
.hero .eyebrow { color: var(--gold-soft); margin-bottom: 1.6em; }
.hero h1 {
  max-width: 14ch;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35));
}

@keyframes goldShimmer {
  0%, 100% { --shimmer:   0%; }
  50%      { --shimmer: 100%; }
}
.hero-sub {
  max-width: 48ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-top: 1em;
  margin-bottom: 2.4em;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 2px; height: 8px;
  background: var(--gold-soft);
  margin: 6px auto 0;
  animation: scrollCue 1.8s var(--ease) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 120px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.about-text p { color: var(--ink-soft); max-width: 75ch; }
.about-list {
  margin-top: 2em;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.about-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex: 0 0 6px;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  background: var(--blue-deep);
  position: relative;
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
/* Subtle gold inset border kept from the previous placeholder treatment */
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 154, 92, 0.4);
  pointer-events: none;
}

/* =========================================================
   WORK / GALLERY
   ========================================================= */
.work {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 64px; max-width: 50ch; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.video-card { cursor: pointer; }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #0a2647 0%, #001a36 100%);
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(184,154,92,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.video-card:hover .video-thumb { transform: translateY(-4px); }
.video-card:hover .video-thumb::before { opacity: 1; }

.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease);
}
.play-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.video-card:hover .play-icon {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.05);
}

.video-meta { padding: 14px 2px 0; }
.video-meta h3 { margin: 0 0 4px; }
.video-meta p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

.gallery .gallery-group-title {
  grid-column: 1 / -1;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 24px 0 4px;
}
.gallery .gallery-group-title:first-child { margin-top: 0; }
.gallery .gallery-empty {
  grid-column: 1 / -1;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-style: italic;
  opacity: 0.75;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 120px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-intro p { color: var(--ink-soft); max-width: 65ch; }
.contact-details {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.contact-details li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  font-size: 0.95rem;
}
.contact-details span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-details a:hover { color: var(--gold); }

.contact-form {
  background: var(--bg-alt);
  padding: 40px;
  border: 1px solid var(--line);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.75);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-meta { margin: 0; font-size: 0.85rem; }
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 24px;
}
.footer-links a { font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold-soft); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  /* Layout: single column */
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about, .work, .contact { padding: 90px 0; }

  /* Nav: switch to hamburger overlay */
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 110;          /* keep toggle clickable above the open overlay */
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;        /* handle iOS toolbar */
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s var(--ease), visibility 0s linear .25s;
    z-index: 100;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 28px;
    text-align: center;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .site-nav a {
    color: var(--ink);
    font-size: 1.3rem;
    font-family: var(--display);
    font-weight: 400;            /* Trajan Pro Regular / Book */
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .25s var(--ease), visibility 0s linear 0s;
  }

  /* Lock background scroll while menu is open */
  body.nav-open { overflow: hidden; }

  /* Some browsers treat backdrop-filter as establishing a containing block
     for fixed descendants. The mobile <nav> lives inside the header — when
     the header is scrolled (and has backdrop-filter), this can trap the
     fixed menu inside the header's box instead of the viewport. Disable it
     while the menu is open. */
  body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero-content { padding: 140px 24px 100px; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }

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

  .contact-form { padding: 28px 22px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   VIDEO MODAL
   ========================================================= */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 9, 28, 0.92);
  cursor: pointer;
}
.video-modal-inner {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 960px;
}
.video-modal-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 8px;
  opacity: 0.75;
  transition: opacity .2s var(--ease);
}
.video-modal-close:hover { opacity: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   CONTACT FORM — spam trap, privacy line, status messages
   ========================================================= */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact-form { position: relative; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-privacy {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.form-privacy a { text-decoration: underline; }
.form-privacy a:hover { color: var(--gold); }
.form-note.is-ok    { color: #2E6B3A; font-weight: 500; }
.form-note.is-error { color: #A3302A; font-weight: 500; }

/* =========================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ========================================================= */
.legal { padding: 150px 0 100px; }
.legal-inner { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1em; overflow-wrap: anywhere; }
.legal h3 { margin-top: 2.2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--blue); }
.legal a:hover { color: var(--gold); }
.legal-list { padding-left: 1.2em; margin: 0 0 1em; }
.legal-meta { margin-top: 2.5em; font-size: 0.85rem; }
.legal-back { margin-top: 2em; }
.footer-links a[aria-current="page"] { color: var(--gold-soft); }
@media (max-width: 640px) {
  .legal { padding: 120px 0 70px; }
}

/* =========================================================
   HERO on phones: portrait at the top, headline below it
   (on narrow screens the centred portrait sat behind the text)
   ========================================================= */
@media (max-width: 768px) {
  .hero {
    --hero-photo: min(56svh, 112vw, 600px);   /* height of the portrait area */
    display: block;
    min-height: 0;
  }
  .hero::before,
  .hero::after {
    z-index: 0;
    bottom: auto;
    height: calc(var(--hero-photo) + 70px);
    background-position: center 70px;        /* just below the header */
    background-size: auto var(--hero-photo);
  }
  .hero-overlay {
    z-index: 1;
    bottom: auto;
    height: calc(var(--hero-photo) + 72px);
    /* soft fade of the photo's lower edge into the dark background */
    background: linear-gradient(180deg,
      rgba(0, 9, 28, 0) 0%,
      rgba(0, 9, 28, 0) 72%,
      #00091C 100%);
  }
  .hero-content {
    padding: calc(var(--hero-photo) + 70px - 28px) 24px 64px;
  }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .scroll-cue { display: none; }
}
