/* ============================================================
   GFX — cinematisch donker design-system
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #161619;
  --surface: #17171a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f2;
  --muted: #a1a1a6;
  --muted-2: #6e6e73;
  --accent: #ff5a2c;
  --accent-2: #ff7a4d;
  --accent-soft: rgba(255, 90, 44, 0.14);
  --white: #ffffff;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --container: 1240px;
  --nav-h: 76px;

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-accent: 0 20px 60px -18px rgba(255, 90, 44, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 62ch; }
.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-play::before {
  content: ''; width: 0; height: 0; border-style: solid;
  border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.04em;
  color: var(--white);
}
.nav-logo-mark::after { content: '.'; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.98rem; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links .nav-cta { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (full-bleed video) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-bottom: clamp(48px, 8vh, 110px); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(10,10,11,0.35) 40%, rgba(10,10,11,0.55) 100%),
    radial-gradient(120% 80% at 20% 100%, rgba(10,10,11,0.7), transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { margin-bottom: 24px; text-wrap: balance; }
.hero .lead { color: #d9d9d6; max-width: 56ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vh, 140px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vh, 90px) 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--bg-2); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 0; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
.stat-value span { color: var(--accent); }
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; background: var(--surface); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.service-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 55%);
}
.service-card:hover::before { opacity: 1; }
.service-card h3 { position: relative; }
.service-card p { position: relative; color: var(--muted); margin: 0; }
.service-index { font-family: var(--font-display); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 20px; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  aspect-ratio: 16 / 10; background: var(--bg-3); border: 1px solid var(--line);
}
.work-card.tall { aspect-ratio: 4 / 5; }
.work-card-media { position: absolute; inset: 0; }
.work-card-media img, .work-card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-card:hover .work-card-media img, .work-card:hover .work-card-media video { transform: scale(1.06); }
.work-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
  transition: opacity .4s; opacity: 0.9;
}
.work-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; }
.work-card-cat { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.work-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.work-card-client { color: var(--muted); font-size: 0.9rem; }
.work-card-play {
  position: absolute; top: 22px; right: 22px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px); display: grid; place-items: center;
  opacity: 0; transform: scale(0.8); transition: opacity .4s, transform .4s; border: 1px solid rgba(255,255,255,0.25);
}
.work-card:hover .work-card-play { opacity: 1; transform: scale(1); }
.work-card-play::before { content: ''; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; margin-left: 3px; }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500;
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line-strong);
  color: var(--muted); background: transparent; cursor: pointer; transition: all .25s;
}
.filter-chip:hover { color: var(--white); border-color: var(--white); }
.filter-chip.is-active { background: var(--white); color: #000; border-color: var(--white); }

/* ---------- Clients marquee ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 34px 0; }
.clients-track { display: flex; gap: 64px; align-items: center; animation: marquee 32s linear infinite; width: max-content; }
.client { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--muted-2); letter-spacing: -0.02em; opacity: 0.7; transition: color .3s, opacity .3s; }
.client:hover { color: var(--text); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; background: var(--surface); }
.testimonial-quote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; letter-spacing: -0.01em; margin-bottom: 24px; }
.testimonial-quote::before { content: '“'; color: var(--accent); font-size: 2.4rem; line-height: 0; vertical-align: -0.35em; margin-right: 4px; }
.testimonial-author { font-weight: 600; font-family: var(--font-display); }
.testimonial-role { color: var(--muted); font-size: 0.9rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { padding-top: 26px; border-top: 2px solid var(--line-strong); }
.process-step-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--accent); letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
.process-step h3 { font-size: 1.25rem; }
.process-step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(50px, 8vw, 90px); text-align: center; background: linear-gradient(135deg, #1a1a1d, #0e0e10); border: 1px solid var(--line); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 120% at 50% 0%, var(--accent-soft), transparent 60%); }
.cta-band > * { position: relative; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.team-card-photo { aspect-ratio: 4 / 5; background: var(--bg-3); }
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card-body { padding: 20px 22px; }
.team-card-body strong { font-family: var(--font-display); display: block; }
.team-card-body span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Tags / gear ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { border: 1px solid var(--line-strong); border-radius: 100px; padding: 8px 16px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text); padding: 14px 16px; font-family: var(--font-body); font-size: 1rem; transition: border-color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- Flash ---------- */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.95rem; }
.flash-success { background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.4); color: #7ee2a8; }
.flash-error { background: rgba(231, 76, 60, 0.12); border: 1px solid rgba(231, 76, 60, 0.4); color: #f0a0a0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-inner { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.lightbox-inner video, .lightbox-inner iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close { position: absolute; top: 24px; right: 28px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* ---------- Project detail ---------- */
.project-hero { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.project-hero video, .project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-meta { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 34px; }
.project-meta div span { display: block; color: var(--muted); font-size: 0.85rem; }
.project-meta div strong { font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ADMIN / CMS
   ============================================================ */
.admin-body { background: var(--bg-2); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: #08080a; border-right: 1px solid var(--line); padding: 26px 20px; position: sticky; top: 0; height: 100vh; }
.admin-side .nav-logo-mark { font-size: 1.3rem; }
.admin-side nav { display: grid; gap: 4px; margin-top: 30px; }
.admin-side nav a { padding: 11px 14px; border-radius: 9px; color: var(--muted); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; transition: all .2s; }
.admin-side nav a:hover { background: var(--bg-3); color: var(--text); }
.admin-side nav a.is-active { background: var(--accent-soft); color: var(--accent-2); }
.admin-main { padding: 40px clamp(24px, 4vw, 56px); max-width: 1000px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.admin-head h1 { font-size: 1.9rem; margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; }
.card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.card > p.text-muted { margin-bottom: 22px; }
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: 100%; max-width: 400px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.admin-table th { font-family: var(--font-display); color: var(--muted); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-thumb { width: 90px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--bg-3); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.8rem; border: 1px solid var(--line-strong); color: var(--muted); }
.row-actions { display: flex; gap: 8px; }
.btn-danger { background: rgba(231, 76, 60, 0.14); border: 1px solid rgba(231,76,60,0.4); color: #f0a0a0; }
.btn-danger:hover { background: rgba(231,76,60,0.24); }
.media-preview { margin-top: 8px; }
.media-preview video, .media-preview img { max-height: 150px; border-radius: 8px; border: 1px solid var(--line); }
.helptext { color: var(--muted-2); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .services-grid, .testimonials, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,10,11,0.97); backdrop-filter: blur(16px); padding: 16px 24px 28px;
    border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease); pointer-events: none;
  }
  .nav-links.open { transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .work-grid, .services-grid, .testimonials, .team-grid, .stats, .process, .form-row { grid-template-columns: 1fr; }
  .work-card, .work-card.tall { aspect-ratio: 16 / 11; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
