/* ═══════════════════════════════════════════════════
   ArtMotion — Website V3
   Immersive Creative Production Studio
   GSAP + Lenis + Custom Cursor + Horizontal Scroll
   ═══════════════════════════════════════════════════ */

/* ─── Fonts werden lokal über assets/fonts/fonts.css geladen ─── */

/* ─── Design Tokens ─── */
:root {
  /* Core Palette */
  --bg-deep:        #050506;
  --bg:             #0a0a0b;
  --bg-elevated:    #111214;
  --bg-card:        #141518;

  /* Surfaces */
  --surface:        rgba(243, 240, 234, 0.04);
  --surface-hover:  rgba(243, 240, 234, 0.07);
  --surface-strong: rgba(243, 240, 234, 0.10);
  --glass:          rgba(11, 11, 12, 0.72);
  --glass-strong:   rgba(11, 11, 12, 0.88);

  /* Borders */
  --border:         rgba(243, 240, 234, 0.08);
  --border-hover:   rgba(243, 240, 234, 0.18);
  --border-accent:  rgba(200, 193, 183, 0.25);

  /* Text */
  --text:           #f3f0ea;
  --text-secondary: #c8c1b7;
  --text-muted:     #8a847b;
  --text-dim:       #4a463f;

  /* Accent — muted olive */
  --accent:         #8a9176;
  --accent-soft:    rgba(138, 145, 118, 0.15);
  --accent-glow:    rgba(138, 145, 118, 0.08);

  /* Warm highlight */
  --warm:           #c9a96e;
  --warm-soft:      rgba(201, 169, 110, 0.12);

  /* Layout */
  --max-width:      1320px;
  --gutter:         clamp(20px, 4vw, 48px);
  --section-space:  clamp(100px, 14vh, 180px);

  /* Radius */
  --radius-xs:      8px;
  --radius-sm:      14px;
  --radius-md:      22px;
  --radius-lg:      32px;
  --radius-full:    999px;

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.2);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg:      0 24px 80px rgba(0,0,0,0.4);
  --shadow-glow:    0 0 80px rgba(138, 145, 118, 0.08);

  /* Typography */
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:      'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Transitions */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo:      cubic-bezier(0.19, 1, 0.22, 1);
  --duration-fast:  180ms;
  --duration:       400ms;
  --duration-slow:  800ms;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* Accessible focus styles — visible only for keyboard users */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.btn-primary:focus-visible,
.hero-cta:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-full);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

/* ─── Utility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ─── Page Shell ─── */
.page-shell {
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
}

/* ─── Noise Overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ─── Ambient Light ─── */
.ambient-light {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(138, 145, 118, 0.06), transparent),
    radial-gradient(ellipse 50% 50% at 80% 10%, rgba(201, 169, 110, 0.03), transparent),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(138, 145, 118, 0.025), transparent);
}

/* ═══════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  z-index: 10001;
  pointer-events: none;
  transition: none;
}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════ */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              background 0.3s ease;
}

.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out),
              height 0.4s var(--ease-out),
              border-color 0.3s ease,
              opacity 0.3s ease;
  opacity: 0;
}

.cursor-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Cursor hover states */
.cursor.is-hovering .cursor-dot {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.08);
}

.cursor.is-hovering .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: rgba(255,255,255,0.3);
  opacity: 1;
}

.cursor.is-hovering .cursor-label {
  opacity: 1;
}

.cursor.is-magnetic .cursor-dot {
  width: 4px;
  height: 4px;
  opacity: 0.5;
}

/* Hide on touch devices */
@media (hover: none) {
  .cursor { display: none; }
  body { cursor: auto !important; }
}

@media (hover: hover) {
  body { cursor: none; }
  a, button, [data-magnetic], [data-cursor-label] { cursor: none; }
}

/* ═══════════════════════════════════════════════════
   LOADING ANIMATION — Cinematic
   ═══════════════════════════════════════════════════ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loader.is-complete {
  pointer-events: none;
}

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

.loader-counter {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0.15;
}

.loader-logo {
  display: flex;
  gap: 2px;
  overflow: hidden;
}

.loader-letter {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transform: translateY(120%);
  opacity: 0;
}

.loader-letter.loader-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--duration) var(--ease-smooth),
              backdrop-filter var(--duration) var(--ease-smooth);
}

.site-header.scrolled {
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
  padding: 24px 0;
  transition: padding var(--duration) var(--ease-smooth);
}

.site-header.scrolled .header-inner {
  padding: 16px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-wordmark {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-wordmark span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.is-active {
  color: var(--text);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration) var(--ease-out);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  transition: all var(--duration-fast) ease !important;
}

.nav-cta:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.nav-toggle:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.nav-toggle span {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: all var(--duration) var(--ease-out);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all var(--duration) var(--ease-out);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { bottom: -6px; }

.nav-toggle.active span {
  background: transparent;
}

.nav-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(201, 169, 110, 0.14), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(138, 145, 118, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.10), rgba(5, 5, 6, 0.32));
  pointer-events: none;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(0.9) contrast(1.08) brightness(0.72);
}

.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,6,0.28) 0%, rgba(5,5,6,0.08) 24%, rgba(5,5,6,0.18) 44%, rgba(5,5,6,0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - var(--gutter) * 2), var(--max-width));
  margin: 0 auto;
  padding: clamp(120px, 18vh, 180px) 0 clamp(72px, 10vh, 124px);
  display: grid;
  align-content: end;
}

.hero-eyebrow {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  padding: 10px 16px;
  border: 1px solid rgba(243, 240, 234, 0.1);
  border-radius: var(--radius-full);
  background: rgba(7, 7, 8, 0.34);
  backdrop-filter: blur(14px);
}

.eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(3.7rem, 8.6vw, 8.8rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.04em;
  max-width: 10.6ch;
  margin-bottom: 28px;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.hero-headline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: #d7c8b4;
}

/* Hero split text individual chars */
.hero-headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-40deg);
}

.hero-subline {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.78;
  opacity: 0;
}

.hero-cta {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 15px 30px;
  border: 1px solid rgba(243, 240, 234, 0.14);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(243, 240, 234, 0.08), rgba(243, 240, 234, 0.025));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--duration) var(--ease-out);
  opacity: 0;
}

.hero-cta:hover {
  border-color: rgba(243, 240, 234, 0.28);
  color: var(--text);
  background: linear-gradient(180deg, rgba(243, 240, 234, 0.14), rgba(243, 240, 234, 0.04));
  transform: translateY(-3px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28), 0 0 40px rgba(138, 145, 118, 0.1);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   GSAP REVEAL DEFAULTS
   ═══════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(50px);
}

[data-split-text] {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

[data-split-text] .word {
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
}

[data-split-text] .char {
  display: inline-block;
}

/* ═══════════════════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════════════════ */

.section {
  padding: var(--section-space) 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 16px;
}

.section-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

.section-subtitle {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* ═══════════════════════════════════════════════════
   POSITIONING STATEMENT — Scroll Highlight
   ═══════════════════════════════════════════════════ */

.positioning {
  padding: clamp(60px, 10vh, 120px) 0;
}

.positioning-text {
  max-width: 960px;
  font-size: clamp(1.5rem, 3vw, 2.28rem);
  font-weight: 300;
  line-height: 1.48;
  color: rgba(243, 240, 234, 0.34);
  border-left: 2px solid rgba(138, 145, 118, 0.6);
  padding-left: clamp(24px, 3vw, 40px);
  text-wrap: balance;
}

.positioning-text .highlight-word {
  display: inline-block;
  transition: color 0.1s ease;
}

.positioning-text .highlight-word.is-active {
  color: var(--text);
}

.positioning-text strong {
  font-weight: 500;
}

.positioning-text strong .highlight-word.is-active {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(138, 145, 118, 0.3);
}

/* ═══════════════════════════════════════════════════
   SELECTED WORK — Horizontal Scroll
   ═══════════════════════════════════════════════════ */

#selected-work {
  padding-top: 0;
  overflow: visible;
  scroll-margin-top: 104px;
}

#artmotion {
  scroll-margin-top: 104px;
}

#kontakt {
  scroll-margin-top: 104px;
}

.selected-work-preview {
  position: relative;
}

.selected-work-shell {
  display: grid;
  gap: 28px;
}

.selected-work-header {
  margin-bottom: 0;
}

.selected-work-title-group {
  min-width: 0;
}

.selected-work-title-group .section-title {
  max-width: 9ch;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.88;
}

.horizontal-scroll-wrapper {
  overflow: hidden;
  margin-top: 22px;
}

.horizontal-track {
  display: flex;
  gap: 24px;
  padding: 0 var(--gutter);
  width: max-content;
}

.h-case {
  position: relative;
  width: clamp(380px, 34vw, 520px);
  height: clamp(310px, 48vh, 470px);
  border: 1px solid rgba(243, 240, 234, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.h-case-primary {
  width: clamp(760px, 90vw, 1180px);
  height: clamp(420px, 64vh, 620px);
}

.h-case-secondary {
  width: clamp(430px, 38vw, 560px);
  height: clamp(360px, 56vh, 520px);
}

.h-case-tertiary {
  width: clamp(340px, 30vw, 460px);
  height: clamp(280px, 44vh, 410px);
}

.h-case-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.h-case-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
  filter: saturate(0.9) contrast(1.06) brightness(0.78);
}

.h-case-primary .h-case-media video {
  filter: saturate(0.96) contrast(1.1) brightness(0.87);
}

.h-case-secondary .h-case-media video {
  filter: saturate(0.92) contrast(1.08) brightness(0.8);
}

.h-case:nth-of-type(2) .h-case-media video {
  filter: saturate(0.94) contrast(1.1) brightness(0.82);
}

.h-case-dior .h-case-media video {
  filter: saturate(0.74) contrast(1.02) brightness(0.72);
}

.h-case-tertiary .h-case-media video {
  filter: saturate(0.82) contrast(1.05) brightness(0.74);
}

.h-case-bau .h-case-media video {
  filter: saturate(0.78) contrast(1.1) brightness(0.78);
}

.h-case-more .h-case-media video {
  filter: saturate(0.66) contrast(0.99) brightness(0.66);
}

.h-case:hover .h-case-media video {
  transform: scale(1.08);
}

.h-case-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5,5,6,0.9) 0%, rgba(5,5,6,0.2) 44%, rgba(5,5,6,0.06) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.24), transparent 36%);
  transition: background var(--duration) ease;
}

.h-case-primary .h-case-media::after {
  background:
    linear-gradient(0deg, rgba(5,5,6,0.84) 0%, rgba(5,5,6,0.16) 42%, rgba(5,5,6,0.04) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.18), transparent 42%);
}

.h-case:nth-of-type(2) .h-case-media::after {
  background:
    linear-gradient(0deg, rgba(5,5,6,0.89) 0%, rgba(5,5,6,0.18) 42%, rgba(5,5,6,0.05) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.2), transparent 36%);
}

.h-case:hover .h-case-media::after {
  background:
    linear-gradient(0deg, rgba(5,5,6,0.94) 0%, rgba(5,5,6,0.2) 50%, rgba(5,5,6,0.06) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.14), transparent 38%);
}

.h-case-dior .h-case-media::after {
  background:
    linear-gradient(0deg, rgba(5,5,6,0.93) 0%, rgba(5,5,6,0.24) 46%, rgba(5,5,6,0.08) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.26), transparent 32%);
}

.h-case-bau .h-case-media::after {
  background:
    linear-gradient(0deg, rgba(5,5,6,0.86) 0%, rgba(5,5,6,0.16) 40%, rgba(5,5,6,0.04) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.16), transparent 34%);
}

.h-case-more .h-case-media::after {
  background:
    linear-gradient(0deg, rgba(5,5,6,0.95) 0%, rgba(5,5,6,0.3) 50%, rgba(5,5,6,0.1) 100%),
    linear-gradient(90deg, rgba(5,5,6,0.34), transparent 28%);
}

.h-case-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 470px;
  padding: clamp(24px, 3vw, 36px);
  z-index: 2;
  transform: translateY(16px);
  opacity: 0.94;
  transition: all 0.6s var(--ease-out);
}

.h-case:hover .h-case-info {
  transform: translateY(0);
  opacity: 1;
}

.h-case-secondary .h-case-info {
  max-width: 330px;
}

.h-case-tertiary .h-case-info {
  max-width: 300px;
}

.h-case-more .h-case-info {
  max-width: 280px;
}

.case-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  display: block;
}

.case-name {
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.h-case-primary .case-name {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  line-height: 0.92;
  max-width: 8ch;
}

.case-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 28ch;
  line-height: 1.55;
}

.h-case-primary .case-desc {
  font-size: 1rem;
  max-width: 34ch;
}

.h-case-more .case-desc {
  max-width: 24ch;
  color: var(--text-muted);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.case-tag {
  padding: 6px 12px;
  border: 1px solid rgba(243, 240, 234, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(8, 8, 9, 0.28);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Horizontal scroll counter */
.h-scroll-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.h-counter-current {
  color: var(--text);
  font-weight: 500;
  min-width: 2ch;
}

.h-counter-divider {
  color: var(--border-hover);
}

/* ═══════════════════════════════════════════════════
   MARQUEE / CLIENTS TICKER
   ═══════════════════════════════════════════════════ */

.marquee-section {
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

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

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

.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-deep), transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  width: max-content;
  transition: animation-duration 0.3s ease;
}

.marquee-section:hover .marquee-track {
  animation-duration: 60s;
}

.marquee-track span {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-dot {
  color: var(--accent) !important;
  font-weight: 400 !important;
}

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

/* ═══════════════════════════════════════════════════
   SHOWREEL / VIDEO SECTION
   ═══════════════════════════════════════════════════ */

.showreel-section {
  padding: var(--section-space) 0;
}

.showreel-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  cursor: pointer;
}

.showreel-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.showreel-frame:hover video {
  transform: scale(1.03);
}

.showreel-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.showreel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease-out);
  pointer-events: none;
}

.showreel-frame:hover .showreel-play {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5);
}

.showreel-play svg {
  width: 20px;
  height: 20px;
  fill: white;
  margin-left: 3px;
}

.showreel-label {
  position: absolute;
  bottom: 24px;
  left: 32px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   PROJEKTFORMATE / SERVICES
   ═══════════════════════════════════════════════════ */

.formats-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.formats-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}

.formats-aside-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.formats-aside-copy {
  max-width: 28ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.formats-aside-flow {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.formats-aside-flow span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.formats-stack {
  display: grid;
  gap: 14px;
}

.format-panel {
  --panel-glow: rgba(138, 145, 118, 0.12);
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(170px, 0.44fr);
  gap: clamp(18px, 2.8vw, 32px);
  align-items: start;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(140% 160% at 100% 0%, var(--panel-glow) 0%, transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.format-panel::before {
  content: '';
  position: absolute;
  top: 28px;
  right: clamp(24px, 2.4vw, 36px);
  width: clamp(88px, 11vw, 148px);
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 240, 234, 0.22), transparent 78%);
  pointer-events: none;
}

.format-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(243, 240, 234, 0.02), transparent 36%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.format-panel:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.format-panel:hover::after {
  opacity: 1;
}

.format-panel--video {
  --panel-glow: rgba(170, 112, 24, 0.16);
}

.format-panel--campaign {
  --panel-glow: rgba(138, 145, 118, 0.14);
}

.format-panel--partner {
  --panel-glow: rgba(88, 104, 120, 0.16);
}

.format-number {
  display: inline-block;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.format-panel-body {
  min-width: 0;
}

.format-name {
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.96;
  margin-bottom: 12px;
  max-width: 14ch;
}

.format-lead {
  max-width: 34ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.format-panel-meta {
  position: relative;
  min-width: 0;
  padding-top: 10px;
}

.format-detail {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ═══════════════════════════════════════════════════
   ABOUT / ARTMOTION SECTION
   ═══════════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-top: 0;
}

.about-text {
  display: grid;
  gap: 16px;
  max-width: 38rem;
}

.about-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-statement {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.about-support {
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

.about-statement strong {
  color: var(--text);
  font-weight: 500;
}

.principles-list {
  display: grid;
  gap: 0;
  align-content: start;
}

.principle-item {
  position: relative;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  transition: padding-left var(--duration) var(--ease-out), border-color var(--duration) ease;
}

.principle-item:last-child {
  border-bottom: 1px solid var(--border);
}

.principle-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 240, 234, 0.025), transparent 42%);
  opacity: 0;
  transition: opacity var(--duration) ease;
  pointer-events: none;
}

.principle-item:hover {
  padding-left: 8px;
  border-color: var(--border-hover);
}

.principle-item:hover::after {
  opacity: 1;
}

.principle-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  align-self: start;
  padding-top: 5px;
}

.principle-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.principle-main {
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
}

.principle-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  transition: color var(--duration-fast) ease;
}

.principle-item:hover .principle-sub {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════
   KONTAKT / CONTACT
   ═══════════════════════════════════════════════════ */

.contact-section {
  padding-bottom: clamp(60px, 10vh, 120px);
}

.contact-grid {
  display: block;
}

.contact-form {
  position: relative;
  max-width: 880px;
  padding: clamp(32px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(138, 145, 118, 0.07), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(243, 240, 234, 0.02), transparent 34%);
  pointer-events: none;
}

.contact-form-intro {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.contact-form-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form-copy {
  max-width: 36ch;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

.contact-direct-email {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.contact-direct-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.form-botcheck {
  display: none;
}

.form-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease-out);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.04);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 30px rgba(138, 145, 118, 0.06);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 240px;
  padding: 18px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035));
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.055));
  box-shadow: var(--shadow-md), 0 0 28px rgba(138, 145, 118, 0.06);
}

.btn-primary[disabled] {
  cursor: wait;
  opacity: 0.76;
  transform: none;
  box-shadow: none;
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.06),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--duration-fast) ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.form-note {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-status {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-status.is-success {
  border-color: rgba(138, 145, 118, 0.38);
  background: rgba(138, 145, 118, 0.08);
  color: var(--text);
}

.form-status.is-error {
  border-color: rgba(194, 139, 122, 0.34);
  background: rgba(194, 139, 122, 0.08);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 0 0 52px;
  overflow: hidden;
}

.footer-big-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: clamp(60px, 10vh, 120px) 0;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(243, 240, 234, 0.10);
  text-transform: uppercase;
  user-select: none;
  line-height: 1;
  transition: color 0.6s ease;
}

.footer-big-logo em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════ */

body.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(138, 145, 118, 0.08), transparent 30%),
    var(--bg-deep);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 6, 0.78);
  border-bottom: 1px solid var(--border);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.legal-back-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-back-link:hover {
  color: var(--text);
}

.legal-main {
  padding: clamp(72px, 12vh, 120px) 0 clamp(88px, 14vh, 140px);
}

.legal-hero {
  max-width: 50rem;
  margin-bottom: 36px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-top: 10px;
}

.legal-intro {
  margin-top: 18px;
  max-width: 42rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(17, 18, 20, 0.88);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 44px);
}

.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.legal-section li {
  position: relative;
  padding-left: 18px;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-meta {
  display: grid;
  gap: 12px;
}

.legal-meta strong {
  display: inline-block;
  min-width: 9rem;
  color: var(--text);
}

.legal-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-footer {
  padding-top: 28px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .formats-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .formats-aside {
    position: static;
  }

  .format-panel {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .format-panel-meta {
    grid-column: 2;
    padding-top: 2px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-text {
    max-width: 42rem;
  }

  .about-support {
    max-width: 42ch;
  }

  .principle-copy {
    gap: 18px;
  }

  .contact-form-copy {
    max-width: 42ch;
  }

  .h-case {
    width: clamp(320px, 85vw, 560px);
    height: clamp(280px, 50vh, 450px);
  }

  .h-case-primary {
    width: clamp(560px, 88vw, 900px);
    height: clamp(360px, 54vh, 520px);
  }

  .h-case-secondary {
    width: clamp(360px, 60vw, 480px);
    height: clamp(310px, 46vh, 430px);
  }

  .h-case-tertiary {
    width: clamp(300px, 46vw, 390px);
    height: clamp(250px, 40vh, 340px);
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--glass-strong);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease-out);
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .hero-headline {
    font-size: clamp(2.7rem, 11vw, 4.5rem);
    max-width: 11ch;
  }

  .hero-subline {
    max-width: 100%;
  }

  .horizontal-scroll-wrapper {
    overflow: visible;
    margin-top: 28px;
  }

  .horizontal-track {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0;
    gap: 18px;
    transform: none !important;
  }

  .h-case,
  .h-case-primary,
  .h-case-secondary,
  .h-case-tertiary {
    width: 100%;
    height: min(76vw, 440px);
  }

  .h-case-info {
    transform: none;
    opacity: 1;
    max-width: none;
    padding: 20px;
  }

  .case-desc {
    max-width: none;
    font-size: 0.92rem;
  }

  .h-case-primary .case-name {
    font-size: clamp(2rem, 8vw, 3rem);
    max-width: 9ch;
  }

  .case-tags {
    margin-top: 12px;
  }

  .case-tag {
    font-size: 0.68rem;
  }

  .h-scroll-counter {
    display: none;
  }

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

  .contact-form-intro {
    margin-bottom: 20px;
  }

  .contact-form-copy {
    max-width: 100%;
    font-size: 0.94rem;
  }

  .contact-direct-email {
    font-size: 0.98rem;
  }

  .btn-primary {
    width: 100%;
    min-width: 0;
  }

  .formats-layout {
    gap: 24px;
  }

  .about-kicker {
    font-size: 0.72rem;
  }

  .about-statement {
    font-size: clamp(1.3rem, 6.4vw, 1.72rem);
    line-height: 1.42;
  }

  .about-support {
    max-width: 100%;
    font-size: 0.96rem;
  }

  .principle-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .principle-item:hover {
    padding-left: 0;
  }

  .principle-index {
    padding-top: 0;
  }

  .principle-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .principle-main {
    font-size: 1.08rem;
  }

  .principle-sub {
    text-align: left;
    white-space: normal;
    font-size: 0.72rem;
  }

  .formats-aside-copy {
    max-width: 100%;
    font-size: 0.94rem;
  }

  .formats-aside-flow {
    gap: 10px;
    padding-top: 16px;
  }

  .format-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 22px;
  }

  .format-panel::before {
    top: 22px;
    right: 22px;
    width: 88px;
  }

  .format-number {
    padding-top: 0;
  }

  .format-name {
    max-width: 100%;
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .format-lead {
    max-width: 100%;
    font-size: 0.96rem;
  }

  .format-panel-meta {
    padding-top: 0;
  }

  .format-detail {
    font-size: 0.74rem;
    line-height: 1.55;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-big-logo {
    font-size: clamp(2.8rem, 16vw, 6rem);
  }

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

  .legal-title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .legal-card {
    padding: 24px 20px;
  }

  .legal-meta strong {
    min-width: 0;
    display: block;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .hero-scroll-indicator {
    display: none;
  }

  .site-header .header-inner {
    padding: 18px 0;
  }

  .section {
    padding: clamp(48px, 8vh, 80px) 0;
  }

  .h-case {
    height: 76vw;
  }

  .positioning-text {
    font-size: clamp(1.26rem, 6.3vw, 1.7rem);
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-loader,
  .cursor,
  .scroll-progress {
    display: none !important;
  }

  .marquee-track,
  .scroll-dot {
    animation: none !important;
  }

  .horizontal-scroll-wrapper {
    overflow: visible !important;
  }

  .horizontal-track {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 20px !important;
    transform: none !important;
  }

  .h-case {
    width: 100% !important;
    height: min(72vw, 420px) !important;
  }

  .h-case-info {
    opacity: 1 !important;
    transform: none !important;
    padding: 22px !important;
  }

  [data-reveal],
  .hero-headline .char,
  .section-title .char,
  .hero-eyebrow,
  .hero-subline,
  .hero-cta {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}
