/* ============================================
   9R STUDIOS — PITCH MICROSITE
   Design System & Styles
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'ClashDisplay';
  src: url('Brand/Fonts/Clash_Display/ClashDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('Brand/Fonts/Clash_Display/ClashDisplay-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('Brand/Fonts/Clash_Display/ClashDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('Brand/Fonts/Clash_Display/ClashDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('Brand/Fonts/Clash_Display/ClashDisplay-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('Brand/Fonts/Clash_Display/ClashDisplay-Extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('Brand/Fonts/Inter/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  --blue: #0047BB;
  --blue-dark: #003399;
  --white: #FFFFFF;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-35: rgba(255, 255, 255, 0.35);
  --white-12: rgba(255, 255, 255, 0.12);
  --white-08: rgba(255, 255, 255, 0.08);
  --white-06: rgba(255, 255, 255, 0.06);
  --accent: #F5A623;
  --dark: #0A0A0A;
  --dark-card: #0A0A0A;

  --font-display: 'ClashDisplay', 'Impact', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  --section-padding: clamp(80px, 12vh, 160px);
  --container-width: min(1280px, 90vw);
  --container-narrow: min(960px, 85vw);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--white);
  background-color: var(--blue);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

.page-wrapper {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ============================================
   PASSWORD GATE
   ============================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gate--out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.gate__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.gate__logo {
  height: 48px;
  width: auto;
  opacity: 0.9;
}

.gate__label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-60);
  margin: 0;
}

.gate__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gate__input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--white-08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease;
}

.gate__input-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
}

.gate__input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 20px;
  width: 240px;
}

.gate__input::placeholder {
  color: var(--white-60);
}

.gate__btn {
  background: transparent;
  border: none;
  border-left: 1px solid var(--white-08);
  color: var(--white-60);
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.gate__btn:hover {
  color: var(--white);
}

.gate__error {
  font-size: 12px;
  color: #ff6b6b;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin: 0;
}

.gate__error--visible {
  opacity: 1;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- Background Grid Lines --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent calc(20% - 0.5px), var(--white-06) 20%, transparent calc(20% + 0.5px)),
    linear-gradient(90deg, transparent calc(40% - 0.5px), var(--white-06) 40%, transparent calc(40% + 0.5px)),
    linear-gradient(90deg, transparent calc(60% - 0.5px), var(--white-06) 60%, transparent calc(60% + 0.5px)),
    linear-gradient(90deg, transparent calc(80% - 0.5px), var(--white-06) 80%, transparent calc(80% + 0.5px));
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px clamp(24px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 71, 187, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav__logo img {
  height: 56px;
  width: auto;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__contact {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 28px;
  border: 1.5px solid var(--white);
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.nav__contact:hover {
  background: var(--white);
  color: var(--blue);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Sections General --- */
section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.container--narrow {
  width: var(--container-narrow);
  margin: 0 auto;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-60);
  margin-bottom: 32px;
}

/* --- Typography --- */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline--hero {
  font-size: clamp(48px, 8vw, 130px);
}

.headline--section {
  font-size: clamp(32px, 5vw, 72px);
  margin-bottom: 32px;
}

.headline--sub {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 500;
  margin-bottom: 24px;
}

.subline {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--white-60);
  line-height: 1.6;
  max-width: 640px;
}

.body-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white-60);
  line-height: 1.8;
  max-width: 680px;
}

.body-text+.body-text {
  margin-top: 16px;
}

.text-link {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.7;
}

/* --- Orange Dot Accent --- */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: middle;
}

.dot--sm {
  width: 6px;
  height: 6px;
}

/* --- KPI Badges --- */
.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--white-12);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  backdrop-filter: blur(4px);
}

.kpi-badge .dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

/* --- Industry Badge --- */
.industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

/* --- Media Containers --- */
.media-container {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.media-container:hover {
  transform: scale(0.98);
}

.media-container img,
.media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Video Thumbnail / Click-to-Play --- */
.video-wrapper {
  position: relative;
  cursor: pointer;
}

.video-wrapper .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.video-wrapper .play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 3px;
}

.video-wrapper:hover .play-btn {
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-wrapper .play-btn.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
}

.video-wrapper .thumbnail {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

.video-wrapper.playing .thumbnail,
.video-wrapper.playing .play-btn {
  display: none;
}

.video-wrapper video.hidden {
  display: none;
}

.video-wrapper.playing video.hidden {
  display: block;
}

/* --- Media Grid --- */
.media-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.media-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.media-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.media-grid--hero {
  grid-template-columns: 2fr 1fr;
}

.media-grid--hero-reverse {
  grid-template-columns: 1fr 2fr;
}

/* --- Case Study Layout --- */
.case-header {
  margin-bottom: 48px;
}

.case-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.case-content--reverse {
  direction: rtl;
}

.case-content--feature-media {
  grid-template-columns: 1.7fr 1fr;
}

.case-content--reverse>* {
  direction: ltr;
}

.case-text {
  padding-top: 16px;
}

.case-media {
  position: relative;
}

/* ============================================
   SECTION 01 — COVER / HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(60px, 10vh, 120px);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(0, 71, 187, 0.5) 0%,
      rgba(0, 71, 187, 0.3) 40%,
      rgba(0, 71, 187, 0.7) 80%,
      rgba(0, 71, 187, 0.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: var(--container-width);
  margin: 0 auto;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(48px, 8vw, 130px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__headline .dot {
  margin-left: 8px;
}

.hero__subline {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--white-60);
  margin-bottom: 48px;
  letter-spacing: 0.5px;
}

.hero__meta {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero__meta-icon {
  font-size: 18px;
  opacity: 0.5;
}

.hero__meta-text {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-60);
}

/* ============================================
   SECTION 02 — WHO WE ARE
   ============================================ */
.who-we-are .headline--section {
  margin-bottom: 40px;
}

.who-we-are__visual {
  position: relative;
}

/* ============================================
   SECTION 08 — THREE PILLARS
   ============================================ */
.pillars {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.pillars__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vh, 96px);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s ease;
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--white-12);
  transform: translateY(-4px);
}

.pillar-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pillar-tag {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-35);
  padding: 4px 10px;
  border: 1px solid var(--white-08);
  border-radius: var(--radius-pill);
}

.pillar-card__body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pillar-card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--dark-card);
  aspect-ratio: 16/10;
}

.pillar-card__media img,
.pillar-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   SECTION 09 — DIE PROJEKTHELDEN
   ============================================ */
.projekthelden__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: 64px;
}

.projekthelden__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

/* ── Projekthelden clickable cards ── */
.projekthelden-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--dark-card);
  aspect-ratio: 4/3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projekthelden-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.projekthelden-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.projekthelden-card:hover img {
  transform: scale(1.04);
}

.projekthelden-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================
   SECTION 10 — TRUSTED BY / LOGO MARQUEE
   ============================================ */
.trusted-by {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 0;
  text-align: center;
  overflow: hidden;
}

.trusted-by .headline--section {
  margin-bottom: 56px;
}

.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--blue), transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 96px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee__track--reverse {
  animation-direction: reverse;
  animation-duration: 35s;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee__item {
  flex-shrink: 0;
  height: 144px;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1);
}

.marquee__item:hover {
  opacity: 1;
}

.marquee__item--color {
  filter: none;
}

.marquee__item img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.marquee-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-35);
  margin-bottom: 24px;
}

/* ============================================
   SECTION 11 — CONTACT
   ============================================ */
.contact {
  background: var(--white);
  padding: clamp(80px, 15vh, 200px) 0;
  position: relative;
  overflow: hidden;
}

.contact__inner {
  width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}

.contact .headline--section {
  color: var(--blue);
  margin-bottom: 24px;
}

.contact .dot {
  background: var(--accent);
}

.contact__body {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(0, 71, 187, 0.6);
  margin-bottom: 48px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 48px;
}

.contact__detail {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(0, 71, 187, 0.6);
  transition: color 0.3s ease;
}

.contact__detail a:hover {
  color: var(--blue);
}

.contact__detail--name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 8px;
}

.contact__cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 48px;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-pill);
  color: var(--blue);
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 64px;
}

.contact__cta:hover {
  background: var(--blue);
  color: var(--white);
}

.contact__logo {
  opacity: 0.25;
}

.contact__logo img {
  height: 72px;
  margin: 0 auto;
  filter: brightness(0) saturate(100%) invert(18%) sepia(89%) saturate(1800%) hue-rotate(210deg);
}

/* --- Projekthelden PDF Placeholders --- */
.pdf-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.pdf-placeholder__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 28px);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.pdf-placeholder__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white-60);
  margin-bottom: 12px;
}

.pdf-placeholder__tag {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 14px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-pill);
  margin-top: 8px;
}

/* --- Video Thumbnail Placeholder (for videos without stills) --- */
.video-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 50%, #0a0a0a 100%);
  min-height: 280px;
  width: 100%;
  transition: opacity 0.3s ease;
}

.video-thumb-placeholder__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 24px);
  text-transform: uppercase;
  color: var(--white-35);
  letter-spacing: 3px;
}

/* ============================================
   ANIMATION SYSTEM
   ============================================ */

/* --- Base Reveal (subtle fade-up for small elements) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Slide from Left --- */
.reveal--left {
  opacity: 0;
  transform: translateX(-52px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Slide from Right --- */
.reveal--right {
  opacity: 0;
  transform: translateX(-52px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Clip-path Wipe (cinematic reveal for media) --- */
.reveal--clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal--clip.visible {
  clip-path: inset(0 0% 0 0);
}

/* --- Scale Up --- */
.reveal--scale {
  opacity: 0;
  transform: scale(0.9) translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- Headline Curtain Reveal --- */
.hl-reveal {
  display: block;
  overflow: hidden;
  line-height: inherit;
}

.hl-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.hl-reveal.visible .hl-inner {
  transform: translateY(0);
}

/* --- Staggered children --- */
.reveal-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-children.visible>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-children.visible>*:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-children.visible>*:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-children.visible>*:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-children.visible>*:nth-child(5) {
  transition-delay: 0.32s;
}

.reveal-children.visible>*:nth-child(6) {
  transition-delay: 0.40s;
}

.reveal-children.visible>*:nth-child(7) {
  transition-delay: 0.48s;
}

.reveal-children.visible>*:nth-child(8) {
  transition-delay: 0.56s;
}

.reveal-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DECORATIVE SECTION EYEBROW
   ============================================ */
.section-eyebrow {
  position: absolute;
  top: -0.15em;
  left: -0.05em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(180px, 22vw, 360px);
  color: rgba(255, 255, 255, 0.032);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  letter-spacing: -0.04em;
  will-change: transform;
}

/* ============================================
   SECTION DIVIDER — Animated Line
   ============================================ */
.case-divider {
  width: 100%;
  height: 1px;
  background: var(--white-08);
  margin: 0;
  position: relative;
  overflow: hidden;
}

.case-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--white-35), transparent);
  transition: left 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.case-divider.drawn::after {
  left: 100%;
}

/* ============================================
   FEATURED MEDIA — Full-width primary
   ============================================ */
.case-featured {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}

.case-featured .video-wrapper,
.case-featured .media-container {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.case-featured .thumbnail,
.case-featured video,
.case-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   4-VIDEO ROW (DerTour)
   ============================================ */
.video-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.video-row-4 .video-wrapper {
  aspect-ratio: 9 / 16;
}

@media (max-width: 768px) {
  .video-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   EDITORIAL CASE LAYOUT
   (text + secondary media, below featured)
   ============================================ */
.case-content--editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 40px;
}

/* ============================================
   STAGGER MEDIA GRID
   (2 items, second pushed down)
   ============================================ */
.media-stagger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.media-stagger__item {
  position: relative;
}

.media-stagger__item--pushed {
  margin-top: 48px;
}

.media-stagger .media-container {
  aspect-ratio: 3/4;
}

.media-stagger__item--natural .media-container {
  aspect-ratio: auto;
}

.media-stagger__item--natural .media-container img,
.media-stagger__item--natural .media-container video {
  width: 100%;
  height: auto;
  object-fit: unset;
}

/* Vertical stack variant — items full width, staggered by offset */
.media-stagger--stack {
  grid-template-columns: 1fr;
}

.media-stagger--stack .media-stagger__item--pushed {
  margin-top: 24px;
}

/* ============================================
   HIVE — Hero KPI (scroll-stopper number)
   ============================================ */
.hive-hero-kpi {
  margin-top: clamp(48px, 7vw, 96px);
  margin-bottom: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--white-08);
  padding-top: clamp(40px, 6vw, 72px);
}

.hive-hero-kpi__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
  cursor: default;
}

.hive-hero-kpi__desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--white-60);
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.5;
}

.hive-hero-kpi__row {
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 80px);
}

.hive-hero-kpi__item {
  flex: 1;
}

.hive-hero-kpi__divider {
  width: 1px;
  background: var(--white-08);
  align-self: stretch;
  flex-shrink: 0;
}

/* ============================================
   HIVE — Scope Grid (2×2)
   ============================================ */
/* ============================================
   HIVE — Scope Rows (full-width stacked sections)
   ============================================ */
.hive-scope-sections {
  border-top: 1px solid var(--white-08);
  margin-top: 48px;
}

.hive-scope-row {
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--white-08);
}

.hive-scope-row__header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hive-scope-block__stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  flex-shrink: 0;
}

.hive-scope-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-60);
  flex-shrink: 0;
}

.hive-scope-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hive-scope-block__list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 28px;
}

.hive-scope-block__list li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white-60);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.hive-scope-block__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--white-35);
  font-size: 10px;
  top: 3px;
}

/* Full-width media slot (digital, creative direction) */
.hive-scope-row__media {
  width: 100%;
}

.hive-scope-row__media .media-container {
  border-radius: var(--radius);
}

.hive-scope-row__media .video-wrapper {
  aspect-ratio: 16 / 9;
}

/* ── Brand image marquee rows ── */
.hive-brand-marquee {
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.hive-brand-marquee:last-child {
  margin-bottom: 0;
}

.hive-brand-marquee::before,
.hive-brand-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.hive-brand-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--dark-card), transparent);
}

.hive-brand-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--dark-card), transparent);
}

.hive-brand-row {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marquee 12s linear infinite;
}

.hive-brand-row--reverse {
  animation-direction: reverse;
  animation-duration: 20s;
}

.hive-brand-row img {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hive-brand-row img {
    height: 160px;
  }

  .hive-scope-block__list--inline {
    flex-direction: column;
  }
}

/* ============================================
   HIVE & FERRA — Irregular Video Layout
   ============================================ */
.hive-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.hive-layout__top {
  display: flex;
  justify-content: flex-end;
  padding-right: 2%;
}

.hive-layout__top-video {
  width: 58%;
}

.hive-layout__top-video .media-container {
  border-radius: var(--radius);
}

.hive-layout__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hive-layout__bottom .media-container {
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .hive-layout__top {
    padding-right: 0;
  }

  .hive-layout__top-video {
    width: 100%;
  }

  .hive-layout__bottom {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MOSAIC GRID (HIVE & FERRA)
   ============================================ */
.media-mosaic {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 16px;
  align-items: start;
  margin-top: 40px;
}

.media-mosaic__main {
  position: relative;
}

.media-mosaic__main .video-wrapper,
.media-mosaic__main .media-container {
  aspect-ratio: 4/5;
}

.media-mosaic__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 64px;
}

.media-mosaic__aside .media-container,
.media-mosaic__aside .video-wrapper {
  aspect-ratio: 3/4;
}

/* ============================================
   WHO WE ARE — Edge Bleed Visual
   ============================================ */
.who-we-are__visual--bleed {
  position: relative;
}

.who-we-are__visual--bleed .media-container {
  aspect-ratio: 3/4;
  border-radius: var(--radius) 0 0 var(--radius);
  margin-right: calc(-1 * (100vw - var(--container-width)) / 2 - 4px);
}

/* ============================================
   WHO WE ARE — Content Layout
   ============================================ */
.who-we-are__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

/* ============================================
   KPI STATS — Animated counters
   ============================================ */
.kpi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--white-08);
}

.kpi-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-stat__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 72px);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.kpi-stat__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white-60);
}

/* ============================================
   NATURAL ASPECT RATIO MEDIA CONTAINER
   (transparent PNGs, no crop, no bg)
   ============================================ */
.media-container--natural {
  aspect-ratio: unset;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.media-container--natural:hover {
  transform: none;
}

.media-container--natural img,
.media-container--natural video {
  width: 100%;
  height: auto;
  object-fit: unset;
  border-radius: 0;
  display: block;
}

/* ============================================
   PARALLAX ELEMENT — GPU hint
   ============================================ */
[data-parallax] {
  will-change: transform;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-content,
  .who-we-are__content,
  .projekthelden__intro,
  .case-content--editorial {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-content--reverse {
    direction: ltr;
  }

  .who-we-are__visual--bleed .media-container {
    border-radius: var(--radius);
    margin-right: 0;
    aspect-ratio: 4/3;
  }

  .media-mosaic {
    grid-template-columns: 1fr;
  }

  .media-mosaic__aside {
    flex-direction: row;
    padding-top: 0;
  }

  .media-mosaic__aside .media-container,
  .media-mosaic__aside .video-wrapper {
    aspect-ratio: 16/10;
  }

  .media-mosaic__main .video-wrapper,
  .media-mosaic__main .media-container {
    aspect-ratio: 16/10;
  }

  .case-featured .video-wrapper,
  .case-featured .media-container {
    aspect-ratio: 16/9;
  }

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

@media (max-width: 768px) {
  .section-eyebrow {
    display: none;
  }

  .media-stagger {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .media-stagger__item--pushed {
    margin-top: 0;
  }

  .media-stagger .media-container {
    aspect-ratio: 16/10;
  }

  .media-mosaic__aside {
    flex-direction: column;
  }

  :root {
    --section-padding: clamp(56px, 10vh, 100px);
  }

  body::before {
    background:
      linear-gradient(90deg, transparent calc(50% - 0.5px), var(--white-06) 50%, transparent calc(50% + 0.5px));
  }

  .nav__contact {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__meta {
    flex-direction: column;
    gap: 16px;
  }

  .media-grid--2,
  .media-grid--3,
  .media-grid--hero,
  .media-grid--hero-reverse {
    grid-template-columns: 1fr;
  }

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

  .marquee__track {
    gap: 40px;
  }

  .marquee__item {
    height: 96px;
  }

  .hero__headline {
    font-size: clamp(36px, 10vw, 64px);
  }

  .video-wrapper .play-btn {
    width: 48px;
    height: 48px;
  }

  .video-wrapper .play-btn::after {
    border-width: 7px 0 7px 13px;
  }

  .mercedes-scribbles {
    grid-template-columns: 1fr !important;
  }

  .mercedes-scribbles__image {
    display: none;
  }

  .hive-hero-kpi__row {
    flex-direction: column;
    gap: 32px;
  }

  .hive-hero-kpi__divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
}

@media (max-width: 480px) {
  .kpi-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 71, 187, 0.97);
  backdrop-filter: blur(24px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: opacity 0.3s ease;
}

.mobile-nav__link:hover {
  opacity: 0.6;
}

.mobile-nav__close {
  position: absolute;
  top: 24px;
  right: clamp(24px, 5vw, 60px);
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
}