/* ==========================================================================
   TaradomeFilms — site-wide brand system
   Shared across all pages (homepage, about, projects, press, contact).
   Import this FIRST, then any page-specific CSS.
   Brand: dark cinematic, Playfair Display + Didact Gothic,
          #050508 / #6B3FA0 / #8B5CF6 / #C9A84C
   ========================================================================== */

:root {
  /* Palette */
  --black: #050508;
  --ink-2: #0b0b11;          /* raised surface */
  --ink-3: #14131c;          /* cards / inputs */
  --purple: #6B3FA0;
  --purple-bright: #8B5CF6;
  --gold: #C9A84C;
  --white: #F5F0FF;
  --muted: rgba(245, 240, 255, 0.55);
  --muted-2: rgba(245, 240, 255, 0.32);
  --line: rgba(245, 240, 255, 0.10);
  --line-strong: rgba(139, 92, 246, 0.35);

  /* Type */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Didact Gothic", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  /* The sprocket glow is a gentle light pulse, not vestibular-triggering motion.
     Keep it running even under reduced-motion (scroll stays disabled below). */
  .filmstrip__track span {
    animation-duration: 2.4s !important;
    animation-iteration-count: infinite !important;
  }
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--purple-bright); font-weight: 400;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--purple); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.accent-italic { font-style: italic; color: var(--purple-bright); }
.accent-dot { color: var(--gold); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--purple); color: var(--white);
  padding: 0.75rem 1.25rem; font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Film sprocket strip (brand motif, top + bottom of every page) ----
   Sprockets scroll horizontally like film running through a projector gate.
   The track is duplicated so the loop is seamless. Respects reduced-motion. */
.filmstrip {
  height: 30px; display: flex; align-items: center;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.filmstrip--bottom { border-bottom: none; border-top: 1px solid var(--line); }
.filmstrip__track {
  display: flex; align-items: center; flex: none;
  animation: filmroll 24s linear infinite;
  will-change: transform;
}
.filmstrip--bottom .filmstrip__track { animation-direction: reverse; }
.filmstrip__track span {
  flex: none; width: 20px; height: 16px; margin: 0 6px;
  border: 2px solid rgba(255,255,255,0.10); border-radius: 3px;
  /* base sprocket; the glow animation lights each in sequence */
  animation: sprocket-glow 2.4s ease-in-out infinite;
  will-change: box-shadow, border-color, background;
}
/* Stagger the glow across a repeating run of sprockets so the light
   appears to travel through the film like a projector bulb. 12-step cycle. */
.filmstrip__track span:nth-child(12n+1)  { animation-delay: 0s; }
.filmstrip__track span:nth-child(12n+2)  { animation-delay: 0.2s; }
.filmstrip__track span:nth-child(12n+3)  { animation-delay: 0.4s; }
.filmstrip__track span:nth-child(12n+4)  { animation-delay: 0.6s; }
.filmstrip__track span:nth-child(12n+5)  { animation-delay: 0.8s; }
.filmstrip__track span:nth-child(12n+6)  { animation-delay: 1.0s; }
.filmstrip__track span:nth-child(12n+7)  { animation-delay: 1.2s; }
.filmstrip__track span:nth-child(12n+8)  { animation-delay: 1.4s; }
.filmstrip__track span:nth-child(12n+9)  { animation-delay: 1.6s; }
.filmstrip__track span:nth-child(12n+10) { animation-delay: 1.8s; }
.filmstrip__track span:nth-child(12n+11) { animation-delay: 2.0s; }
.filmstrip__track span:nth-child(12n+12) { animation-delay: 2.2s; }
/* bottom strip runs the light the opposite way for symmetry */
.filmstrip--bottom .filmstrip__track span:nth-child(12n+1)  { animation-delay: 2.2s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+2)  { animation-delay: 2.0s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+3)  { animation-delay: 1.8s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+4)  { animation-delay: 1.6s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+5)  { animation-delay: 1.4s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+6)  { animation-delay: 1.2s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+7)  { animation-delay: 1.0s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+8)  { animation-delay: 0.8s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+9)  { animation-delay: 0.6s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+10) { animation-delay: 0.4s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+11) { animation-delay: 0.2s; }
.filmstrip--bottom .filmstrip__track span:nth-child(12n+12) { animation-delay: 0s; }
@keyframes filmroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* -50% because the track is duplicated */
}
/* Warm projector-bulb light passing through each sprocket */
@keyframes sprocket-glow {
  0%, 100% {
    border-color: rgba(255,255,255,0.10);
    background: transparent;
    box-shadow: none;
  }
  40% {
    border-color: rgba(255,255,255,0.10);
    background: transparent;
    box-shadow: none;
  }
  50% {
    border-color: rgba(201,168,76,0.55);
    background: rgba(255,238,190,0.16);
    box-shadow: 0 0 8px 1px rgba(224,180,90,0.35),
                inset 0 0 4px rgba(255,240,200,0.3);
  }
  60% {
    border-color: rgba(201,168,76,0.55);
    background: rgba(255,238,190,0.16);
    box-shadow: 0 0 8px 1px rgba(224,180,90,0.35),
                inset 0 0 4px rgba(255,240,200,0.3);
  }
  70% {
    border-color: rgba(255,255,255,0.10);
    background: transparent;
    box-shadow: none;
  }
}
.filmstrip:hover .filmstrip__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .filmstrip__track { animation: none; }
  /* glow pulse stays on (handled in the exemption above); do not disable it here */
}

/* ---- Header / nav ---- */
.site-header {
  position: fixed; inset: 30px 0 auto 0; z-index: 100;
  padding: 1.1rem 0;
  background: linear-gradient(to bottom, rgba(5,5,8,0.92), transparent);
  transition: background 0.4s var(--ease);
}
.site-header.scrolled { background: rgba(5,5,8,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand-lock { display: flex; flex-direction: column; line-height: 1; }
.brand-lock .parent { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.brand-lock .name { font-family: var(--serif); font-size: 1.3rem; }
.brand-lock .name em { font-style: italic; color: var(--purple-bright); }
.brand-lock .name .dot { color: var(--gold); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-cta {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.65rem 1.3rem; border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--white); transition: all 0.25s var(--ease);
}
.nav-cta:hover { background: var(--purple); border-color: var(--purple); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; padding: 0.4rem; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 2.2rem; background: rgba(5,5,8,0.98); backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: block; z-index: 101; position: relative; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 1.9rem; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.3s var(--ease);
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-bright); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); }
.btn-ghost:hover { border-color: var(--purple-bright); background: rgba(139,92,246,0.08); }
.btn svg { width: 16px; height: 16px; }

/* ---- Section rhythm ---- */
.section { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-top: 1.2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 1.4rem; max-width: 52ch; }

/* ---- Scroll reveal (JS adds .in) ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer-brand .name { font-family: var(--serif); font-size: 1.5rem; }
.footer-brand .name em { font-style: italic; color: var(--purple-bright); }
.footer-brand .name .dot { color: var(--gold); }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 0.35rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted-2); }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { color: var(--muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--purple-bright); }
.footer-social svg { width: 18px; height: 18px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Group company links: brand-differentiated gradients ----
   Targets the footer "The Group" links by their href domain, so no HTML
   changes are needed. Gradient text via background-clip; solid-color
   fallback for browsers without clip support. */
.footer-col a[href*="taradomemusik.com"],
.footer-col a[href*="taratechent.com"],
.footer-col a[href*="taradome.com"]:not([href*="taradomemusik"]):not([href*="films"]) {
  font-weight: 400;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}

/* Musik — reddish orange */
.footer-col a[href*="taradomemusik.com"] {
  color: #E8623A; /* fallback */
  background: linear-gradient(100deg, #F2743F 0%, #C63B2E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* TaraTech — gold */
.footer-col a[href*="taratechent.com"] {
  color: #C9A84C; /* fallback */
  background: linear-gradient(100deg, #E4C766 0%, #B8912F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Corporate — cream / off-white */
.footer-col a[href*="taradome.com"]:not([href*="taradomemusik"]) {
  color: #EFE7D6; /* fallback */
  background: linear-gradient(100deg, #FBF5E9 0%, #D8CDB4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Hover: subtle brighten for all three */
.footer-col a[href*="taradomemusik.com"]:hover,
.footer-col a[href*="taratechent.com"]:hover,
.footer-col a[href*="taradome.com"]:not([href*="taradomemusik"]):hover {
  filter: brightness(1.18);
}
