/* ================================================
   KAM PRODUCTIONS — CINEMATIC THEME
   ================================================ */

:root {
  --bg: #0a0a0a;
  --bg-deep: #050505;
  --bg-soft: #111111;
  --ink: #e8e4da;
  --ink-soft: #b5b0a4;
  --ink-dim: #6a665d;
  --ink-faint: #2a2925;
  --accent: #d9c8a3;
  --accent-warm: #c9a875;
  --line: rgba(232, 228, 218, 0.08);
  --line-strong: rgba(232, 228, 218, 0.18);
  --grid-w: 1440px;

  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; color: inherit; font: inherit; }
input, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
::selection { background: var(--accent); color: var(--bg-deep); }

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor.cursor-hover { width: 60px; height: 60px; }
.cursor.cursor-play {
  width: 90px;
  height: 90px;
  background: var(--ink);
  mix-blend-mode: difference;
}
.cursor.cursor-play::after {
  content: 'PLAY';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--bg-deep);
  mix-blend-mode: difference;
}
@media (max-width: 900px) {
  .cursor, .cursor-dot { display: none; }
}

/* ============ GRAIN ============ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  width: min(560px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.loader-line {
  height: 1px;
  background: var(--line-strong);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.loader-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderFill 2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@keyframes loaderFill {
  to { transform: scaleX(1); }
}
.loader-text {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
}
.loader-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: loaderChar 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.loader-text .loader-space { width: 0.5em; }
.loader-text span:nth-child(1) { animation-delay: 0.1s; }
.loader-text span:nth-child(2) { animation-delay: 0.15s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; }
.loader-text span:nth-child(5) { animation-delay: 0.3s; }
.loader-text span:nth-child(6) { animation-delay: 0.35s; }
.loader-text span:nth-child(7) { animation-delay: 0.4s; }
.loader-text span:nth-child(8) { animation-delay: 0.45s; }
.loader-text span:nth-child(9) { animation-delay: 0.5s; }
.loader-text span:nth-child(10) { animation-delay: 0.55s; }
.loader-text span:nth-child(11) { animation-delay: 0.6s; }
.loader-text span:nth-child(12) { animation-delay: 0.65s; }
.loader-text span:nth-child(13) { animation-delay: 0.7s; }
.loader-text span:nth-child(14) { animation-delay: 0.75s; }
.loader-text span:nth-child(15) { animation-delay: 0.8s; }
@keyframes loaderChar {
  to { opacity: 1; transform: translateY(0); }
}
.loader-counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  align-self: flex-end;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  transition: padding 0.4s, background 0.4s;
}
.nav.is-scrolled {
  padding: 16px 36px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  color: var(--ink);
  transition: transform 0.6s;
}
.nav-logo:hover .logo-mark { transform: rotate(180deg); }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.logo-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  position: relative;
}
.nav-link-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}
.nav-link-label {
  position: relative;
}
.nav-link-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.nav-link:hover .nav-link-label::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  transition: background 0.3s, border-color 0.3s;
}
.nav-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bg-deep);
  border-color: var(--ink);
}
.nav-cta:hover svg { transform: translateX(3px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(217, 200, 163, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(74, 90, 120, 0.08), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(217, 200, 163, 0.03), transparent 70%);
  z-index: -1;
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

.hero-meta {
  position: absolute;
  top: 50%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
.hero-meta-left { left: 36px; }
.hero-meta-right {
  right: 36px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
}
.dot-pulse {
  background: #6ce86c;
  box-shadow: 0 0 0 0 #6ce86c;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(108, 232, 108, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(108, 232, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 232, 108, 0); }
}

.hero-content {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tag-line {
  width: 60px;
  height: 1px;
  background: var(--ink-soft);
  display: inline-block;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(54px, 11vw, 180px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line > span {
  display: inline-block;
  margin-right: 0.15em;
}
.hero-italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-scroll svg {
  width: 12px;
  height: 24px;
  animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.hero-credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-credits-list { color: var(--ink-soft); }
.hero-credits > span:first-child { color: var(--ink-dim); }

/* ============ SECTION HEAD ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 36px 40px;
  border-top: 1px solid var(--line);
}
.section-head-left, .section-head-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-head-right span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}

/* ============ WORK GRID ============ */
.work {
  position: relative;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 20px 36px 0;
}
.work-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16 / 11;
  cursor: none;
}
.work-item--xl { grid-column: span 1; }

.work-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.work-video,
.work-media::before {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Fallback gradient when video fails */
.work-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(217, 200, 163, 0.15), transparent 70%),
    linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  z-index: 0;
}
.work-video { position: relative; z-index: 1; }

.work-item:nth-child(1) .work-media::before {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(80, 120, 200, 0.25), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(217, 100, 80, 0.15), transparent 60%),
    linear-gradient(135deg, #0d1525 0%, #0a0a0a 100%);
}
.work-item:nth-child(2) .work-media::before {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(40, 80, 50, 0.3), transparent 60%),
    linear-gradient(135deg, #0a1a14 0%, #050a08 100%);
}
.work-item:nth-child(3) .work-media::before {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200, 170, 130, 0.2), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(120, 60, 100, 0.18), transparent 60%),
    linear-gradient(135deg, #1c1410 0%, #0a0606 100%);
}
.work-item:nth-child(4) .work-media::before {
  background:
    radial-gradient(ellipse at 40% 60%, rgba(220, 80, 60, 0.18), transparent 60%),
    linear-gradient(135deg, #1a1010 0%, #0a0505 100%);
}
/* Athlez Run Club — energetic orange/sunrise */
.work-item:nth-child(5) .work-media::before {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(255, 140, 50, 0.22), transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(180, 60, 40, 0.18), transparent 60%),
    linear-gradient(135deg, #1f1208 0%, #0a0604 100%);
}
/* World Club Dome — electric purple/pink (festival lights) */
.work-item:nth-child(6) .work-media::before {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(180, 60, 200, 0.28), transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(60, 100, 220, 0.22), transparent 60%),
    linear-gradient(135deg, #150a1f 0%, #050308 100%);
}
/* Ace24 Musikvideo — deep red/wine (music video moody) */
.work-item:nth-child(7) .work-media::before {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(200, 40, 60, 0.22), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(80, 20, 80, 0.18), transparent 60%),
    linear-gradient(135deg, #1f0810 0%, #0a0305 100%);
}
/* Occio d'oro — gold/champagne (fashion luxury) */
.work-item:nth-child(8) .work-media::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(217, 180, 100, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(140, 100, 60, 0.18), transparent 60%),
    linear-gradient(135deg, #1c1608 0%, #0a0805 100%);
}
/* Tyreek Hill Camp — Miami teal/aqua (NFL Dolphins colors) */
.work-item:nth-child(9) .work-media::before {
  background:
    radial-gradient(ellipse at 40% 40%, rgba(40, 180, 180, 0.22), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 130, 50, 0.18), transparent 60%),
    linear-gradient(135deg, #081818 0%, #030808 100%);
}
/* Trevista — neutral cinematic blue/grey */
.work-item:nth-child(10) .work-media::before {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(100, 130, 170, 0.2), transparent 60%),
    radial-gradient(ellipse at 30% 30%, rgba(70, 80, 100, 0.15), transparent 60%),
    linear-gradient(135deg, #0d1218 0%, #050608 100%);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
  transition: opacity 0.6s;
}
.work-item:hover .work-video { transform: scale(1.05); }
.work-item:hover .work-overlay { opacity: 0.7; }

.work-info {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.work-info-top, .work-info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.work-num, .work-year, .work-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.work-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-item:hover .work-title { transform: translateY(-4px); }

.work-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%) scale(0.8);
  width: 100px;
  height: 100px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.work-item:hover .work-cta {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.play-icon { font-size: 16px; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item { aspect-ratio: 4 / 3; }
}

/* ============ MARQUEE ============ */
.marquee {
  margin-top: 80px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: marquee 40s linear infinite;
  padding-right: 40px;
}
.marquee-track span:not(.m-dot) {
  flex-shrink: 0;
}
.m-dot {
  font-size: 0.4em;
  color: var(--accent);
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ CASE STUDY INTRO ============ */
.case {
  position: relative;
  padding-top: 120px;
}
.case-intro {
  padding: 0 36px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}
.case-headline {
  font-family: var(--display);
  font-size: clamp(60px, 13vw, 220px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.case-line {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}
.case-from {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.6em;
}
.case-zero {
  color: var(--ink-dim);
  font-weight: 300;
}
.case-line-divider {
  gap: 16px;
  font-size: 0.18em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
}
.case-divider {
  width: clamp(40px, 8vw, 120px);
  height: 1px;
  background: var(--ink-dim);
}
.case-num-big {
  background: linear-gradient(180deg, var(--ink) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
  letter-spacing: -0.05em;
}
.case-num-followers {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.35em;
  background: linear-gradient(180deg, var(--ink) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 0.25em;
  letter-spacing: 0;
  vertical-align: middle;
}
.case-sub {
  margin-top: 50px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ CASE SCROLL: PHONE ============ */
.case-scroll {
  height: 400vh;
  position: relative;
  margin-top: 100px;
}
.case-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone {
  position: relative;
  width: 320px;
  height: 640px;
  perspective: 1200px;
  transition: transform 0.1s linear;
}
.phone-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1c1c1c, #0a0a0a);
  border-radius: 44px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 50px 100px rgba(0,0,0,0.5),
    0 0 80px rgba(217, 200, 163, 0.05),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 100px;
  z-index: 10;
}
.phone-screen {
  background: #000;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ig-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 16px 12px;
  border-bottom: 0.5px solid #222;
}
.ig-back { color: #fff; font-size: 24px; line-height: 1; }
.ig-username {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.ig-username svg { width: 12px; height: 12px; }
.ig-dots { color: #fff; font-size: 16px; letter-spacing: 1px; }

.ig-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 10px;
}
.ig-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.ig-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
  padding: 2px;
}
.ig-avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.ig-stats {
  display: flex;
  flex: 1;
  justify-content: space-around;
}
.ig-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}
.ig-stat strong {
  font-size: 16px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.ig-stat span {
  font-size: 11px;
  color: #aaa;
}

.ig-bio {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #fff;
}
.ig-bio strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.ig-link { color: #4DA8FF; font-size: 11px; }

.ig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin-top: 8px;
  padding-bottom: 16px;
}
.ig-tile {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  filter: blur(8px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ig-tile.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}
.ig-tile.is-focus {
  z-index: 5;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.ig-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ig-tile-fallback {
  z-index: 0;
}
/* Each tile gets a unique gradient if no image */
.ig-tile:nth-child(1) { background: linear-gradient(135deg, #2a3548, #0a0d14); }
.ig-tile:nth-child(2) { background: linear-gradient(135deg, #482a35, #14080d); }
.ig-tile:nth-child(3) { background: linear-gradient(135deg, #354828, #0d1408); }
.ig-tile:nth-child(4) { background: linear-gradient(135deg, #483528, #140d08); }
.ig-tile:nth-child(5) { background: linear-gradient(135deg, #2a4848, #081414); }
.ig-tile:nth-child(6) { background: linear-gradient(135deg, #482a48, #140814); }
.ig-tile:nth-child(7) { background: linear-gradient(135deg, #38384a, #0d0d14); }
.ig-tile:nth-child(8) { background: linear-gradient(135deg, #4a4838, #14130d); }
.ig-tile:nth-child(9) { background: linear-gradient(135deg, #38484a, #0d1314); }

.phone-particles {
  position: absolute;
  inset: -60px;
  pointer-events: none;
}
.phone-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}
.phone-particles span:nth-child(1) { top: 10%; left: -20px; animation-delay: 0s; }
.phone-particles span:nth-child(2) { top: 30%; right: -30px; animation-delay: 1s; }
.phone-particles span:nth-child(3) { top: 60%; left: -10px; animation-delay: 2s; }
.phone-particles span:nth-child(4) { top: 80%; right: -20px; animation-delay: 3s; }
.phone-particles span:nth-child(5) { top: 40%; left: -40px; animation-delay: 4s; }
.phone-particles span:nth-child(6) { top: 70%; right: -10px; animation-delay: 5s; }
@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  50% { transform: translate(20px, -30px); }
}

/* Side captions */
.case-captions {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 200px;
}
.case-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.6s;
}
.case-caption.is-active { opacity: 1; }
.caption-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.2em;
}
.caption-text {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (max-width: 900px) {
  .case-captions { display: none; }
  .phone { transform: scale(0.85); }
}

/* ============ STRATEGY SPLIT ============ */
.strategy {
  padding: 120px 36px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.strategy-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 80px;
}
.strategy-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
}
.strategy-side {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}
.strategy-side-left { text-align: right; align-items: flex-end; }
.strategy-side-right { text-align: left; align-items: flex-start; }

.strategy-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
  position: relative;
}
.strategy-divider::before {
  content: '×';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 8px;
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink-soft);
}

.strategy-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.strategy-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.strategy-label > span:not(.strategy-tag) {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.strategy-side-right .strategy-label > span:not(.strategy-tag) {
  font-style: italic;
}

.strategy-visual {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}
.strategy-side-left .strategy-visual { align-items: flex-end; }
.strategy-side-right .strategy-visual { align-items: flex-start; }

/* Mini phone */
.phone-mini {
  width: 180px;
  aspect-ratio: 9/16;
  background: linear-gradient(145deg, #1c1c1c, #0a0a0a);
  border-radius: 22px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(217, 200, 163, 0.04),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  transform: rotate(-6deg);
  transition: transform 0.6s;
}
.strategy-side-left:hover .phone-mini { transform: rotate(-3deg) scale(1.04); }
.phone-mini-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(217, 200, 163, 0.12), transparent 70%),
    radial-gradient(ellipse at 70% 80%, rgba(80, 60, 100, 0.15), transparent 70%),
    linear-gradient(135deg, #2a2520, #0a0808);
  position: relative;
  overflow: hidden;
}
.phone-mini-content {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: #fff;
}
.phone-mini-rec {
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
  color: #ff4444;
  letter-spacing: 0.1em;
  backdrop-filter: blur(4px);
}
.phone-mini-time {
  align-self: flex-end;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Mini camera */
.camera-mini {
  width: 240px;
  height: 160px;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  position: relative;
  padding: 16px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(217, 200, 163, 0.04),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(4deg);
  transition: transform 0.6s;
}
.strategy-side-right:hover .camera-mini { transform: rotate(2deg) scale(1.04); }
.camera-mini-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #050505);
  border: 2px solid #1a1a1a;
  box-shadow:
    inset 0 0 25px rgba(0,0,0,0.9),
    0 0 0 4px rgba(217, 200, 163, 0.04),
    0 0 30px rgba(217, 200, 163, 0.06);
}
.camera-mini-iris {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(217, 200, 163, 0.5), #000 75%);
}
.camera-mini-iris::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  filter: blur(2px);
}
.camera-mini-rec {
  font-family: var(--mono);
  font-size: 9px;
  color: #ff4444;
  letter-spacing: 0.1em;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}
.camera-mini-meta {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.strategy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.strategy-side-left .strategy-tags { justify-content: flex-end; }
.strategy-tags span {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.strategy-formula {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.formula-op {
  color: var(--ink-dim);
  font-style: italic;
}
.formula-result {
  color: var(--accent);
  font-style: italic;
}

@media (max-width: 900px) {
  .strategy-split { grid-template-columns: 1fr; }
  .strategy-divider { width: 100%; height: 1px; }
  .strategy-side-left, .strategy-side-right {
    text-align: left;
    align-items: flex-start;
  }
  .strategy-side-left .strategy-tags { justify-content: flex-start; }
}

/* ============ GROWTH ============ */
.growth {
  padding: 120px 36px;
  border-top: 1px solid var(--line);
}
.growth-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 80px;
}
.growth-display {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.growth-numbers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
}
.growth-number-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.growth-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.growth-value {
  font-family: var(--display);
  font-size: clamp(50px, 9vw, 140px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink-dim);
  font-feature-settings: "tnum";
}
.growth-value-big {
  background: linear-gradient(180deg, var(--ink) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.growth-arrow {
  color: var(--ink-dim);
  width: 80px;
  height: 24px;
  margin-bottom: 30px;
}

.growth-chart {
  position: relative;
  height: 240px;
  margin-top: 40px;
}
.growth-svg {
  width: 100%;
  height: 100%;
}
#growthLine {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  transition: stroke-dashoffset 3s cubic-bezier(0.7, 0, 0.3, 1);
}
.growth-chart.is-visible #growthLine {
  stroke-dashoffset: 0;
}
.growth-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ PROCESS ============ */
.process {
  padding: 120px 36px;
  border-top: 1px solid var(--line);
}
.process-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 80px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.process-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.process-step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.process-img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.process-item:nth-child(1) .process-img::before {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(80, 100, 140, 0.3), transparent 60%),
    linear-gradient(135deg, #1a1f2a, #050810);
}
.process-item:nth-child(2) .process-img::before {
  background:
    radial-gradient(ellipse at 60% 50%, rgba(180, 130, 80, 0.25), transparent 60%),
    linear-gradient(135deg, #1f1a14, #100a05);
}
.process-item:nth-child(3) .process-img::before {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(140, 80, 100, 0.25), transparent 60%),
    linear-gradient(135deg, #1f1419, #100508);
}
.process-fallback {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(232, 228, 218, 0.15);
}
.process-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.process-arrow {
  font-size: 16px;
  transition: transform 0.4s;
}
.process-item:hover .process-arrow { transform: translateX(8px); }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============ CONTACT ============ */
.contact {
  position: relative;
  padding: 160px 36px 120px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(217, 200, 163, 0.06), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(60, 80, 120, 0.05), transparent 50%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}
.contact-title {
  font-family: var(--display);
  font-size: clamp(50px, 10vw, 160px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-title > span {
  display: block;
  overflow: hidden;
}
.contact-italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  padding-left: 0.3em;
}

/* Form */
.form {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.form-row {}
.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-field label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-num {
  color: var(--ink-dim);
}
.form-field input,
.form-field textarea {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 8px 0;
  width: 100%;
  resize: none;
  caret-color: var(--accent);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-faint);
}
.form-line {
  position: relative;
  height: 1px;
  background: var(--line);
}
.form-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.form-field:focus-within .form-line::after { transform: scaleX(1); }

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 30px;
}
.form-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--bg-deep);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.form-submit-label {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  height: 1.2em;
  overflow: hidden;
}
.form-submit-label > span {
  display: block;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.form-submit:hover .form-submit-label > span {
  transform: translateY(-100%);
}
.form-submit-icon {
  width: 16px;
  height: 16px;
  display: flex;
  transition: transform 0.4s;
}
.form-submit-icon svg { width: 100%; height: 100%; }
.form-submit:hover .form-submit-icon { transform: translateX(6px); }
.form-submit:hover { background: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  padding: 80px 36px 30px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-massive {
  font-family: var(--display);
  font-size: clamp(120px, 28vw, 460px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--ink);
  margin-bottom: 60px;
  user-select: none;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-block a:hover { color: var(--ink); }
.footer-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  flex-wrap: wrap;
  gap: 20px;
}
.footer-time { font-feature-settings: "tnum"; }

@media (max-width: 900px) {
  .footer-info { grid-template-columns: 1fr 1fr; }
}

/* ============ REVEAL ANIMATIONS ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title .hero-line {
  opacity: 0;
}
.hero-title .hero-line.is-visible {
  opacity: 1;
}
.hero-title .hero-line.is-visible > span {
  animation: lineUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-title .hero-line.is-visible > span:nth-child(2) {
  animation-delay: 0.1s;
}
@keyframes lineUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.hero-line > span {
  transform: translateY(100%);
}

/* Mobile tweaks */
@media (max-width: 700px) {
  .nav { padding: 20px 20px; }
  .nav.is-scrolled { padding: 14px 20px; }
  .nav-cta { display: none; }
  .nav-link-num { display: none; }
  .hero { padding: 0 20px 40px; }
  .hero-meta-left, .hero-meta-right { display: none; }
  .hero-footer { flex-direction: column; align-items: flex-start; }
  .hero-credits { text-align: left; }
  .section-head { padding: 60px 20px 30px; }
  .work-grid { padding: 16px 20px 0; }
  .marquee-track { font-size: 50px; }
  .case-intro { padding: 0 20px; }
  .case-line { gap: 12px; }
  .strategy { padding: 80px 20px; }
  .growth { padding: 80px 20px; }
  .process { padding: 80px 20px; }
  .contact { padding: 100px 20px 80px; }
  .footer { padding: 60px 20px 30px; }
}

/* ============ HERO LOGO ANIMATION (SVG) ============ */
.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 40px 0 20px;
}

.hero-logo {
  position: relative;
  width: clamp(320px, 52vw, 720px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
  color: var(--ink);
  filter: drop-shadow(0 0 0 rgba(217, 200, 163, 0));
  animation: logoGlow 8s ease-in-out 3.5s infinite;
}

/* Counter shapes (innenflächen die in den Buchstaben "Löcher" schneiden) */
.hero-logo-svg .logo-counter {
  /* Glow-getönte Farbe, damit Löcher mit dem Hintergrund verschmelzen */
  fill: #131210;
}

/* ============ KAM Hauptbuchstaben — schieben rein ============ */
.hero-logo-svg .logo-letter {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-duration: 1.2s;
  transform-origin: center;
  transform-box: view-box;
}

/* K — von links rein */
.hero-logo-svg .logo-k {
  animation-name: logoSlideRight;
  animation-delay: 0.5s;
}
@keyframes logoSlideRight {
  0%   { opacity: 0; transform: translateX(-200px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* A — von oben rein */
.hero-logo-svg .logo-a {
  animation-name: logoSlideDown;
  animation-delay: 0.75s;
}
@keyframes logoSlideDown {
  0%   { opacity: 0; transform: translateY(-200px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* M — von rechts rein */
.hero-logo-svg .logo-m {
  animation-name: logoSlideLeft;
  animation-delay: 1s;
}
@keyframes logoSlideLeft {
  0%   { opacity: 0; transform: translateX(200px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ============ PRODUCTION Buchstaben — gestaffelt ============ */
.hero-logo-svg .logo-prod {
  opacity: 0;
  animation: prodReveal 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transform-origin: center;
  transform-box: view-box;
}
.hero-logo-svg .logo-prod-0 { animation-delay: 1.7s; }
.hero-logo-svg .logo-prod-1 { animation-delay: 1.78s; }
.hero-logo-svg .logo-prod-2 { animation-delay: 1.86s; }
.hero-logo-svg .logo-prod-3 { animation-delay: 1.94s; }
.hero-logo-svg .logo-prod-4 { animation-delay: 2.02s; }
.hero-logo-svg .logo-prod-5 { animation-delay: 2.10s; }
.hero-logo-svg .logo-prod-6 { animation-delay: 2.18s; }
.hero-logo-svg .logo-prod-7 { animation-delay: 2.26s; }
.hero-logo-svg .logo-prod-8 { animation-delay: 2.34s; }
.hero-logo-svg .logo-prod-9 { animation-delay: 2.42s; }
@keyframes prodReveal {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* O-Detail (der Punkt im O) — pulst kurz nach Reveal */
.hero-logo-svg .logo-o-dot {
  transform-origin: 412px 769px; /* Pulse-Zentrum vom Punkt */
  animation: dotPulse 1.4s ease 3.4s 2;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

/* ============ Lichtstreifen Sweep über das ganze Logo ============ */
.hero-logo-sweep {
  position: absolute;
  top: -10%;
  left: -30%;
  width: 30%;
  height: 120%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(217, 200, 163, 0.1) 25%,
    rgba(255, 245, 220, 0.55) 50%,
    rgba(217, 200, 163, 0.1) 75%,
    transparent 100%
  );
  filter: blur(20px);
  transform: skewX(-12deg);
  z-index: 5;
  opacity: 0;
  animation: logoSweep 2.5s cubic-bezier(0.7, 0, 0.25, 1) 1.4s forwards;
  pointer-events: none;
}
@keyframes logoSweep {
  0% { left: -30%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* ============ Sanfter Glow hinter dem Logo ============ */
.hero-logo-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    ellipse at center,
    rgba(217, 200, 163, 0.14) 0%,
    rgba(217, 200, 163, 0.05) 30%,
    transparent 65%
  );
  z-index: 1;
  opacity: 0;
  transform: scale(0.7);
  animation: glowFade 3s ease-out 2.2s forwards;
  pointer-events: none;
}
@keyframes glowFade {
  0% { opacity: 0; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

/* Pulse-loop nach dem Reveal */
@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 25px rgba(217, 200, 163, 0.15));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 45px rgba(217, 200, 163, 0.3));
    transform: translateY(-3px);
  }
}

/* ============ Tagline darunter ============ */
.hero-logo-tagline {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.hero-logo-tagline em {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--accent);
  margin: 0 4px;
}
.tagline-line {
  width: 50px;
  height: 1px;
  background: var(--ink-dim);
}

/* Hero spacing */
.hero {
  justify-content: center;
  padding-bottom: 80px;
}
.hero-content {
  gap: 60px;
}

/* Mobile */
@media (max-width: 700px) {
  .hero-logo {
    width: min(85vw, 380px);
  }
  .hero-logo-tagline {
    font-size: 9px;
    gap: 12px;
  }
  .hero-logo-tagline em {
    font-size: 11px;
  }
  .tagline-line {
    width: 24px;
  }
}
}
