/* ============================================================
   hero.css — hero-page-specific styles.
   Keeps film grain, scroll cue animation, and any other bits
   that Tailwind can't cleanly express.
   ============================================================ */

/* Film grain — animated noise over the hero video. Uses a tiny
 * inline SVG data URI so no extra HTTP request. Opacity is low so
 * it reads as texture, not noise. Respects reduced-motion. */
.hero-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.97 0 0 0 0 0.95 0 0 0 0 0.9 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 120px 120px;
  background-repeat: repeat;
  opacity: 0.22;
  mix-blend-mode: overlay;
  animation: heroGrainShift 1200ms steps(6) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-grain { animation: none; }
}

@keyframes heroGrainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 2%); }
  40%  { transform: translate(3%, -3%); }
  60%  { transform: translate(-2%, 4%); }
  80%  { transform: translate(4%, -1%); }
  100% { transform: translate(0, 0); }
}

/* Scroll cue bounce */
@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* Nav hover accents (Tailwind doesn't have magenta/electric/lime out of box) */
#hero nav a:hover { color: #F8F2E7; }

/* Footer link hover */
footer a:hover { color: #F8F2E7; }

/* ============================================================
   Hero header — CSS-driven layout so we don't depend on Tailwind v4
   emitting the sm: / md: variants for our specific class strings.
   Mobile-first: define the mobile look, then override at ≥640px.
   ============================================================ */

.hero-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}
.hero-header-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.hero-logo-link {
  display: block;
  transition: opacity 300ms;
}
.hero-logo-link:hover { opacity: 0.8; }
.hero-logo {
  display: block;
  height: 1.75rem;          /* mobile: 28px */
  width: auto;
  object-fit: contain;
}
.hero-positioning {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hero-positioning-cat {
  font-size: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(248,242,231,0.85);
  letter-spacing: 0.28em;
}
.hero-positioning-tag {
  display: none;             /* mobile: hidden */
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 10px;
  margin-top: 0.125rem;
  color: rgba(248,242,231,0.65);
}
.hero-nav {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  max-width: 8rem;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  flex-shrink: 0;
}
.hero-nav a {
  color: rgba(248,242,231,0.85);
  line-height: 1;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid transparent;
  transition: color 200ms, border-color 200ms;
}
.hero-nav a:hover {
  color: #F8F2E7;
  border-bottom-color: rgba(232,155,69,0.85);
}
.hero-nav-desk {
  /* Mobile: keep visible (Karan wants a proper top bar). Smaller
     font + tighter tracking so all three links still fit at 360px. */
  display: inline;
  font-size: 8px;
  letter-spacing: 0.15em;
}

/* Desktop overrides (≥640px) */
@media (min-width: 640px) {
  .hero-header { padding: 1.25rem 2.5rem; gap: 1rem; }
  .hero-logo { height: 2.75rem; }       /* 44px */
  .hero-positioning-cat { font-size: 10px; letter-spacing: 0.32em; }
  .hero-positioning-tag { display: inline; font-size: 12px; }
  .hero-nav { position: static; flex-direction: row; gap: 2rem; max-width: none; font-size: 12px; letter-spacing: 0.25em; }
  .hero-nav-desk { display: inline; font-size: 12px; letter-spacing: 0.25em; }
}
@media (min-width: 768px) {
  .hero-header { padding: 1.25rem 3.5rem; }
}

/* ============================================================
   Hero centered play/pause overlay — big obvious circle in the
   middle of the video. Visible when paused, fades out on play.
   The whole hero-media-slot also toggles play/pause on click.
   ============================================================ */
.hero-center-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 320ms ease-out;
  opacity: 1;
}
.hero-center-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}
.hero-center-icon {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55));
  transition: transform 220ms ease-out;
}
.hero-center-overlay:hover .hero-center-icon,
.hero-center-overlay:focus-visible .hero-center-icon {
  transform: scale(1.08);
}
.hero-center-overlay:focus-visible { outline: none; }
@media (min-width: 640px) {
  .hero-center-icon { width: 112px; height: 112px; }
}
@media (min-width: 1024px) {
  .hero-center-icon { width: 128px; height: 128px; }
}

/* ============================================================
   Hero reel scrubber — bottom bar with play/pause + sound toggle
   + drag-to-seek progress. Class-based so we don't depend on
   Tailwind emitting the right responsive variants.
   ============================================================ */
.hero-scrubber {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  user-select: none;
  /* Solid, unambiguous dark band so users can SEE the controls exist */
  background: linear-gradient(to top, rgba(11,18,32,0.95) 20%, rgba(11,18,32,0.7) 60%, rgba(11,18,32,0) 100%);
}
.hero-scrubber-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1.5px solid #F8F2E7;
  color: #F8F2E7;
  background: rgba(11,18,32,0.6);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 200ms, border-color 200ms, background 200ms, transform 200ms;
  padding: 0;
}
.hero-scrubber-btn:hover,
.hero-scrubber-btn:focus-visible {
  background: #F8F2E7;
  color: #0B1220;
  transform: scale(1.05);
  outline: none;
}
.hero-scrubber-sound[data-on="0"] {
  /* When sound is OFF, pulse the button so users notice they can unmute */
  animation: heroSoundPulse 2000ms ease-in-out infinite;
}
.hero-scrubber-sound[data-on="1"] {
  background: #E89B45;
  color: #0B1220;
  border-color: #E89B45;
  animation: none;
}
@keyframes heroSoundPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,155,69,0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(232,155,69,0); }
}
/* Sound hint label — mini tooltip that reads "click for sound" when muted */
.hero-scrubber-sound-hint {
  position: absolute;
  bottom: 100%;
  left: 60px;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: #F8F2E7;
  color: #0B1220;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
  animation: heroSoundHint 4s ease-in-out infinite;
  pointer-events: none;
}
.hero-scrubber-sound-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 12px;
  border: 6px solid transparent;
  border-top-color: #F8F2E7;
  border-bottom: 0;
}
@keyframes heroSoundHint {
  0%, 100% { opacity: 0.8; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-2px); }
}
/* Hide hint once user has interacted */
.hero-scrubber-sound[data-on="1"] ~ .hero-scrubber-sound-hint,
.hero-scrubber[data-sound-touched="1"] .hero-scrubber-sound-hint {
  display: none;
}
.hero-scrubber-track {
  position: relative;
  flex: 1;
  height: 12px;
  cursor: pointer;
  transition: height 200ms;
  min-width: 60px;
  touch-action: none;
}
.hero-scrubber-track:focus-visible {
  outline: 1px dashed rgba(248,242,231,0.5);
  outline-offset: 4px;
}
.hero-scrubber-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(248,242,231,0.35);
  transition: background 200ms, height 200ms;
}
.hero-scrubber-track:hover .hero-scrubber-line {
  background: rgba(248,242,231,0.55);
  height: 3px;
}
.hero-scrubber-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: #F8F2E7;
  transition: height 200ms;
  pointer-events: none;
}
.hero-scrubber-track:hover .hero-scrubber-fill {
  height: 3px;
}
.hero-scrubber-head {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #F8F2E7;
  transition: width 200ms, height 200ms;
  pointer-events: none;
}
.hero-scrubber-track:hover .hero-scrubber-head {
  width: 12px;
  height: 12px;
}
.hero-scrubber-time {
  flex-shrink: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(248,242,231,0.7);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 200ms;
}
.hero-scrubber:hover .hero-scrubber-time {
  opacity: 1;
}

/* Mobile: tighter padding, hide time readout (space is tight) */
@media (max-width: 639px) {
  .hero-scrubber {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
  }
  .hero-scrubber-btn { width: 30px; height: 30px; }
  .hero-scrubber-time { display: none; }
}

/* ============================================================
   Reel caption body — 8 title cards synced to video via JS
   ============================================================ */
.hero-caption-body {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #F8F2E7;
  font-size: clamp(1.9rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: min(60rem, calc(100vw - 2rem));
  text-align: center;
  opacity: 1;
  transition: opacity 220ms ease-out;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-mobile-break { display: none; }
@media (max-width: 520px) {
  .hero-mobile-break { display: inline; }
}
.hero-caption-body.fading {
  opacity: 0;
}
.hero-caption-body em {
  font-style: italic;
}
.hero-caption-sub {
  display: block;
  margin-top: 0.6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,242,231,0.75);
  font-style: normal;
  line-height: 1.6;
}

/* ============================================================
   Ambient warm gradient wash — used in section corners for depth
   ============================================================ */
.ambient-wash {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 9999px;
  opacity: 0.2;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.ambient-wash-magenta {
  top: -20vmax;
  right: -20vmax;
  background: radial-gradient(circle, #EC4899 0%, transparent 60%);
}
.ambient-wash-electric {
  top: -20vmax;
  right: -20vmax;
  background: radial-gradient(circle, #38BDF8 0%, transparent 60%);
  opacity: 0.25;
}

/* ============================================================
   IP row + YouTube marquee
   ============================================================ */
.ip-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .ip-row {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}
.ip-row-id {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
  width: 100%;
}
@media (min-width: 768px) {
  .ip-row-id { width: 220px; }
}
@media (min-width: 1024px) {
  .ip-row-id { width: 240px; }
}
.ip-row-logo {
  height: 4rem;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
@media (min-width: 640px) {
  .ip-row-logo { height: 5rem; }
}
@media (min-width: 768px) {
  .ip-row-logo { height: 7rem; }
}
.ip-row-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: rgba(248,242,231,0.92);
  font-size: 0.95rem;
  line-height: 1.15;
  margin: 0;
  max-width: 200px;
}
@media (min-width: 640px) {
  .ip-row-name { font-size: 1rem; }
}
.ip-row-more {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248,242,231,0.75);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(248,242,231,0.3);
  transition: color 200ms, border-color 200ms;
}
.ip-row-more:hover {
  color: #F8F2E7;
  border-bottom-color: #F8F2E7;
}
/* Refined CTA link under the GIFLIF logo ("Click to view our journey").
 * Minimal + classy: no pill, no block — a display-serif italic link with
 * a subtle amber underline, matching the "start a conversation" button's
 * typographic family. Wraps gracefully to two lines in the narrow column. */
.ip-row-cta-btn {
  align-self: flex-start;
  display: block;
  max-width: 12.5rem;
  background: transparent;
  color: #F8F2E7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(232,155,69,0.6);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.ip-row-cta-btn:hover {
  color: #E89B45;
  text-decoration-color: #E89B45;
}
.ip-row-cta-btn span { font-style: normal; }

/* ============================================================
   Site modal — shared overlay used by the case-study popups and
   the contact ("start a conversation") popup. Built by site-modal.js.
   ============================================================ */
.site-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(5px);
  animation: siteModalFade 180ms ease-out;
}
@keyframes siteModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.site-modal-card {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  border-radius: 1rem;
  background: #101a2e;
  border: 1px solid rgba(248,242,231,0.14);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  padding: 2rem 1.75rem 1.9rem;
  animation: siteModalRise 220ms ease-out;
}
@keyframes siteModalRise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .site-modal-overlay, .site-modal-card { animation: none; }
}
.site-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  height: 2.25rem;
  width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: none;
  background: rgba(248,242,231,0.08);
  color: #F8F2E7;
  cursor: pointer;
  transition: background 150ms;
}
.site-modal-close:hover { background: rgba(248,242,231,0.18); }
.site-modal-kicker {
  margin: 0 0 0.4rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(248,242,231,0.55);
}
.site-modal-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.05;
  color: #F8F2E7;
}
.site-modal-body { margin-top: 1.1rem; }
.site-modal-body p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(248,242,231,0.85);
}
.site-modal-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.site-modal-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(248,242,231,0.88);
}
.site-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: var(--modal-accent, #EC4899);
}
.site-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}
.site-modal-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.site-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.site-modal-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(248,242,231,0.12);
}
.site-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.site-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 150ms ease;
}
.site-modal-btn:hover { transform: scale(1.04); }
.site-modal-btn-primary { background: #EC4899; color: #F8F2E7; }
.site-modal-btn-ghost {
  background: rgba(248,242,231,0.08);
  color: #F8F2E7;
  border: 1px solid rgba(248,242,231,0.25);
}
.site-modal-btn-block { width: 100%; justify-content: center; }
.site-modal-btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

/* ---- Contact form (inside the contact popup) ---- */
.site-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.3rem;
}
.site-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  background: rgba(11,18,32,0.55);
  border: 1px solid rgba(248,242,231,0.18);
  border-radius: 0.55rem;
  color: #F8F2E7;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.site-modal-input::placeholder { color: rgba(248,242,231,0.4); }
.site-modal-input:focus {
  outline: none;
  border-color: rgba(232,155,69,0.8);
  box-shadow: 0 0 0 3px rgba(232,155,69,0.15);
}
.site-modal-textarea { resize: vertical; min-height: 3.2rem; }
.site-modal-status {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  min-height: 1rem;
  color: rgba(248,242,231,0.7);
}
.site-modal-status[data-state="ok"] { color: #A7D96A; }
.site-modal-status[data-state="error"] { color: #F0A38A; }
.site-modal-or {
  margin: 1.3rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248,242,231,0.45);
}

/* Case cards become clickable */
.case-card { cursor: pointer; }
.case-card .case-open-hint {
  margin-top: 0.6rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(248,242,231,0.5);
  transition: color 150ms;
}
.case-card:hover .case-open-hint { color: #F8F2E7; }
/* Swipeable + auto-scrolling: native horizontal scroll container so
 * users can drag/swipe left–right AND still get gentle auto-scroll
 * when idle. JS nudges scrollLeft every frame; a pointer drag pauses
 * auto-scroll. Scroll bar hidden for cleanliness. */
.ip-marquee {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  /* Native iOS momentum scroll — 1:1 with the thumb, no JS in the way */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  mask-image: linear-gradient(90deg, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent 100%);
}
.ip-marquee::-webkit-scrollbar { display: none; }
.ip-marquee.dragging { cursor: grabbing; scroll-behavior: auto; }
.ip-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  /* No CSS animation — JS handles auto-scroll via scrollLeft nudges. */
}
.ip-video-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 240px;
  transition: transform 200ms;
}
.ip-video-card:hover {
  transform: translateY(-2px);
}
.ip-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(11,18,32,0.7);
  border: 1px solid rgba(248,242,231,0.15);
  transition: border-color 200ms;
}
.ip-video-card:hover .ip-video-thumb {
  border-color: rgba(248,242,231,0.4);
}
.ip-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Persistent YouTube-style red play badge, always visible so the
 * thumbnail is unambiguously clickable. Grows on hover. */
.ip-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(228, 3, 46, 0.92);
  color: #F8F2E7;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms, background 200ms;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  padding-left: 3px;
}
.ip-video-card:hover .ip-video-play {
  transform: translate(-50%, -50%) scale(1.15);
  background: #E4032E;
}
.ip-video-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(248,242,231,0.75);
  margin: 0;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Artists roster — infinite marquee of names with hover-popup
   ============================================================ */
.artists-marquee-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  /* Native iOS momentum scroll — 1:1 with the thumb, no JS in the way */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  mask-image: linear-gradient(90deg, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent 100%);
}
.artists-marquee-wrap::-webkit-scrollbar { display: none; }
.artists-marquee-wrap.dragging { cursor: grabbing; }
.artists-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
}
.artist-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  color: rgba(248,242,231,0.85);
  cursor: pointer;
  transition: color 200ms, transform 200ms;
}
.artist-name:hover,
.artist-name:focus-visible {
  color: #F8F2E7;
  transform: translateY(-2px);
  outline: none;
}
.artist-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
@media (min-width: 640px) {
  .artist-name { font-size: 1.35rem; }
}

/* Floating cutout+bio popup */
.artist-popup {
  position: fixed;
  z-index: 60;
  width: 320px;
  padding: 1rem 1rem 1.25rem;
  background: rgba(11,18,32,0.92);
  border: 1px solid rgba(232,155,69,0.5);
  border-radius: 12px;
  color: #F8F2E7;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.artist-popup-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background-color: rgba(248,242,231,0.05);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(248,242,231,0.1);
}
.artist-popup-initials {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  color: #0B1220;
  margin: 0.5rem auto 1rem;
  box-shadow: 0 0 30px currentColor;
}
.artist-popup-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.artist-popup-bio {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(248,242,231,0.95);
}
.artist-popup-bio p { margin: 0; }
.artist-popup-bio-quiet { opacity: 0.65; font-style: italic; }
.artist-popup-byline {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(232,155,69,0.9);
  margin: 0.4rem 0 0;
  font-style: italic;
}

/* ============================================================
   Kinetic headline — chars fade + slide in on scroll into view
   ============================================================ */
.kinetic-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
  will-change: opacity, transform;
}
.kinetic-revealed .kinetic-char {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .kinetic-char { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Consultancy — pillar chips + pillar cards + case cards
   ============================================================ */
.pillar-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform 200ms;
}
.pillar-chip:hover {
  transform: translateY(-2px) scale(1.04);
}
@media (min-width: 640px) {
  .pillar-chip { font-size: 0.85rem; }
}
.pillar-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 500ms;
}
.pillar-card:hover {
  transform: translateY(-4px);
}
@media (min-width: 640px) {
  .pillar-card { padding: 2rem; }
}
.pillar-sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}
.pillar-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (min-width: 640px) {
  .pillar-title { font-size: 2.4rem; }
}
.pillar-body {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
  margin: 0.25rem 0 0;
}
@media (min-width: 640px) {
  .pillar-body { font-size: 1rem; }
}

/* Case study cards */
.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(248,242,231,0.04);
  border: 1px solid rgba(248,242,231,0.15);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 300ms, background 300ms, transform 300ms;
}
.case-card:hover {
  border-color: rgba(248,242,231,0.35);
  background: rgba(248,242,231,0.08);
  transform: translateY(-2px);
}
@media (min-width: 640px) {
  .case-card { padding: 1.5rem 1.5rem 1.5rem 1.75rem; }
}
.case-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  transition: width 300ms;
}
.case-card:hover .case-stripe {
  width: 6px;
}
.case-kind {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248,242,231,0.55);
}
.case-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  color: #F8F2E7;
}
@media (min-width: 640px) {
  .case-title { font-size: 1.9rem; }
}
.case-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(248,242,231,0.75);
  margin: 0.25rem 0 0;
}

/* ============================================================
   Client logo marquee — masked to cream, uniform height
   ============================================================ */
#client-strip { --logo-h: 3rem; }
@media (min-width: 640px) { #client-strip { --logo-h: 3.5rem; } }
@media (min-width: 768px) { #client-strip { --logo-h: 4rem; } }

.client-strip-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 4rem, #000 calc(100% - 4rem), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4rem, #000 calc(100% - 4rem), transparent 100%);
}
.client-strip-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: clientStripScroll 45s linear infinite;
}
.client-strip-wrap:hover .client-strip-track {
  animation-play-state: paused;
}
@keyframes clientStripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Client logos are plain <img> tags with a filter chain so they all
 * come out in the same cream tint regardless of source color/alpha. */
.client-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: var(--logo-h);
}
.client-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);   /* force to white */
  opacity: 0.7;
  transition: opacity 300ms;
}
.client-logo-wrap:hover .client-logo-img {
  opacity: 1;
}

/* ============================================================
   MOBILE-FIRST fixes (Karan feedback July 2026)
   ============================================================ */

/* Inline brand logos inside hero reel caption (Royal Enfield /
 * MP Tourism) — sit on the baseline of the sub-line, ~1.1em tall. */
.hero-caption-logo {
  display: inline-block;
  vertical-align: middle;
  height: 1.4em;
  width: auto;
  margin: 0 0.15em;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
@media (min-width: 640px) {
  .hero-caption-logo { height: 1.6em; }
}

/* "02 — Our IPs · 13 editions · 3 cities" — MUST be legible on
 * mobile. Previously text-[10px] which was invisible. */
.ip-meta-line {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ip-meta-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5em;
  color: #F8F2E7;
  letter-spacing: 0;
  vertical-align: -0.05em;
  font-weight: 500;
}
.ip-meta-label {
  color: rgba(248,242,231,0.85);
}
.ip-meta-sep {
  opacity: 0.5;
  margin: 0 0.35em;
}
@media (min-width: 640px) {
  .ip-meta-line { font-size: 14px; letter-spacing: 0.4em; }
  .ip-meta-num  { font-size: 1.6em; }
}

/* Small inline artist cutout thumbnail — visible on mobile without
 * needing hover. Falls back to the dot when no cutout exists. */
.artist-thumb {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  background-color: rgba(248,242,231,0.08);
  border: 1.5px solid rgba(248,242,231,0.3);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
@media (min-width: 640px) {
  .artist-thumb { width: 36px; height: 36px; }
}
/* Bump artist-name legibility on mobile so photos + type balance. */
.artist-name { font-size: 1.25rem; }
@media (min-width: 640px) {
  .artist-name { font-size: 1.4rem; }
}

/* Pillars: always 3 across, even at mobile (Karan explicit ask).
 * Cards become narrower + shorter body text on the tightest widths. */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .pillar-grid { gap: 1rem; }
}
@media (min-width: 768px) {
  .pillar-grid { gap: 1.25rem; }
}
/* Tighter card styles at mobile so all three fit legibly */
@media (max-width: 639px) {
  .pillar-card { padding: 0.85rem 0.75rem; gap: 0.35rem; border-radius: 0.6rem; }
  .pillar-sub  { font-size: 8px; letter-spacing: 0.2em; }
  .pillar-title { font-size: 1.05rem; line-height: 1; }
  .pillar-body { font-size: 0.68rem; line-height: 1.3; opacity: 0.92; }
}

/* IP marquee rows: put the logo + name in a NARROW left column and
 * the thumbnails BESIDE them (row layout) even on mobile — matches
 * desktop shape. Logo shrinks so it doesn't dominate. */
.ip-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}
.ip-row-id {
  width: 92px;
  gap: 0.4rem;
}
.ip-row-logo {
  height: 2.5rem;
}
.ip-row-name {
  font-size: 0.7rem;
  line-height: 1.15;
  max-width: 92px;
}
.ip-row-more {
  font-size: 8px;
  letter-spacing: 0.2em;
}
@media (min-width: 640px) {
  .ip-row { gap: 1.25rem; }
  .ip-row-id { width: 140px; }
  .ip-row-logo { height: 3.5rem; }
  .ip-row-name { font-size: 0.85rem; max-width: 140px; }
  .ip-row-more { font-size: 10px; letter-spacing: 0.3em; }
}
@media (min-width: 768px) {
  .ip-row { gap: 1.5rem; }
  .ip-row-id { width: 220px; }
  .ip-row-logo { height: 7rem; }
  .ip-row-name { font-size: 1rem; max-width: 200px; }
}

/* Floating top bar on the IPs / journey pages — position:fixed so it
 * OVERLAYS the sticky journey without stealing viewport height. Only
 * ~40px tall so the "Scroll" cue at bottom of dvh remains visible. */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(to bottom, rgba(11,18,32,0.85) 0%, rgba(11,18,32,0.5) 70%, rgba(11,18,32,0) 100%);
  pointer-events: none;
}
.site-topbar > * { pointer-events: auto; }
/* Nav-only variant (used on IPs page where the journey canvas already
 * paints the pen-reel logo). Right-align the nav strip. */
.site-topbar-nav-only { justify-content: flex-end; }
.site-topbar-brand { display: inline-flex; }
.site-topbar-logo {
  height: 1.4rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
}
.site-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.site-topbar-nav a {
  color: rgba(248,242,231,0.9);
  transition: color 200ms;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.site-topbar-nav a:hover { color: #F8F2E7; }
@media (min-width: 640px) {
  .site-topbar { padding: 0.6rem 2rem; }
  .site-topbar-logo { height: 2rem; }
  .site-topbar-nav { gap: 1.75rem; font-size: 11px; letter-spacing: 0.25em; }
}

/* ============================================================
   Services — "What you're looking for" answer cards.
   Buyer question (serif italic) → what we do → proof → CTA.
   Static HTML in index.html; renders even if JS fails.
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(248,242,231,0.04);
  border: 1px solid rgba(248,242,231,0.14);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  transition: border-color 300ms, background 300ms, transform 300ms;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: var(--svc, #EC4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms ease;
}
.service-card:hover {
  border-color: rgba(248,242,231,0.3);
  background: rgba(248,242,231,0.07);
  transform: translateY(-3px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.service-index {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--svc, #EC4899);
}
.service-name {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--svc, #EC4899);
  opacity: 0.92;
}
.service-q {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #F8F2E7;
  margin: 0.15rem 0 0.1rem;
}
.service-a {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(248,242,231,0.78);
  margin: 0;
}
.service-proof {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,242,231,0.45);
  margin: 0.4rem 0 0;
}
.service-cta {
  margin-top: auto;
  padding-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--svc, #EC4899);
  text-decoration: none;
  transition: gap 200ms;
}
.service-cta:hover { gap: 0.7rem; text-decoration: underline; }
