/* Agency layer — Ink Narrates / SlideGenius / Awwwards-inspired */
/* Loaded after styles.css */

:root {
  --cursor-size: 12px;
  --cursor-ring: 36px;
}

/* Custom cursor (desktop) */
@media (hover: hover) and (pointer: fine) {
  body.use-cursor { cursor: none; }
  body.use-cursor a,
  body.use-cursor button,
  body.use-cursor .btn,
  body.use-cursor .card,
  body.use-cursor .tl-card,
  body.use-cursor input { cursor: none; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: #fff;
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.2s;
  }
  .cursor-ring {
    width: var(--cursor-ring);
    height: var(--cursor-ring);
    border: 1px solid rgba(255,255,255,0.55);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s, border-color 0.2s;
  }
  body.cursor-hover .cursor-dot {
    width: 6px; height: 6px;
    background: var(--mars-hot);
    mix-blend-mode: normal;
  }
  body.cursor-hover .cursor-ring {
    width: 64px; height: 64px;
    border-color: var(--mars-hot);
    mix-blend-mode: normal;
  }
}

/* Progress bar at top — deck-like reading line */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--mars-hot), var(--gold));
  box-shadow: 0 0 12px rgba(227, 93, 58, 0.5);
  pointer-events: none;
}

/* Infinite marquee of names — agency portfolio energy */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  margin: 0 0 2.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 48s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
  flex-shrink: 0;
  padding: 1rem 1.75rem;
  font-family: var(--font-display-alt);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
.marquee-track span em {
  font-style: normal;
  color: var(--gold-soft);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Full-bleed “slide” chapters — Ink Narrates / pitch-deck narrative */
.slide {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
}
.slide-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 2.5rem;
  align-items: end;
}
@media (max-width: 860px) {
  .slide-inner { grid-template-columns: 1fr; gap: 1.25rem; }
}
.slide-num {
  font-family: var(--font-display-alt);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 210, 180, 0.22);
  user-select: none;
}
.slide-body h2 {
  font-family: var(--font-display-alt);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 1rem;
}
.slide-body .lede { margin-bottom: 1.5rem; }

/* Giant stats row — agency proof strip */
.proof-strip {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
@media (max-width: 720px) {
  .proof-strip { grid-template-columns: 1fr 1fr; }
}
.proof-cell {
  background: rgba(8, 5, 6, 0.75);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.proof-cell strong {
  display: block;
  font-family: var(--font-display-alt);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 0.45rem;
}
.proof-cell span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Continuous infinite case loop — equal gaps, L→R seamless */
.case-rail {
  margin: 0 0 3rem;
  overflow: hidden;
}
.case-rail-head {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.case-loop {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.case-loop-track {
  display: flex;
  width: max-content;
  gap: 1.15rem; /* equidistant */
  animation: case-loop 55s linear infinite;
  will-change: transform;
  padding: 0.35rem 0 1.1rem;
}
.case-loop:hover .case-loop-track {
  animation-play-state: paused;
}
@keyframes case-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* requires exact duplicate set */
}
.case {
  flex: 0 0 clamp(260px, 28vw, 340px); /* equal width cards */
  width: clamp(260px, 28vw, 340px);
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(232, 210, 180, 0.16);
  background: #0a0606;
  isolation: isolate;
}
.case img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: saturate(0.95) brightness(0.82);
}
.case:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) brightness(0.95);
}
.case-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem 1.25rem 1.3rem;
  /* heavier scrim so type never washes out */
  background:
    linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.94) 100%);
  z-index: 1;
}
.case-meta .idx {
  font-family: var(--font-display-alt), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffb089; /* bright coral — highly visible */
  margin-bottom: 0.45rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
}
.case-meta h3 {
  font-family: var(--font-display-alt), system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}
.case-meta p {
  margin: 0;
  font-family: var(--font-ui), system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #f0e6d8; /* cream, not thin mute gray */
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .case-loop-track { animation: none; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Magnetic-ish buttons */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

/* Split statement band */
.statement {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto 3rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement h2 {
  font-family: var(--font-display-alt);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 0 1.25rem;
}
.statement p {
  max-width: 36em;
  font-size: 1.05rem;
  color: var(--sand);
}

/* Noise vignette corners for cinema */
.site-shell::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.45);
}

/* Page loader flash */
.page-enter {
  animation: pageIn 0.7s var(--ease) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-enter { animation: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.use-cursor { cursor: auto; }
}

.cursor-dot,
.cursor-ring,
.scroll-progress { display: none !important; }
body.use-cursor,
body.use-cursor a,
body.use-cursor button,
body.use-cursor .btn,
body.use-cursor .card,
body.use-cursor .tl-card,
body.use-cursor input { cursor: auto; }

/* v-case-loop-1 */
