/* ============================================================
   KOLIBRI STUDIO — style.css
   Aesthetic: Dark editorial / cinematic studio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400&family=Bebas+Neue&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #080808;
  --surface:   #0f0f0f;
  --border:    rgba(255,255,255,0.07);
  --accent:    #c8f04e;        /* electric lime — hummingbird green */
  --accent2:   #f04e4e;        /* warm red for contrast */
  --text:      #e8e4dc;
  --muted:     #5a5852;
  --display:   'Bebas Neue', sans-serif;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --mono:      'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(200,240,78,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s;
}
body:has(a:hover) .cursor { width: 20px; height: 20px; }
body:has(a:hover) .cursor-ring { width: 52px; height: 52px; border-color: var(--accent); }

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

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  mix-blend-mode: normal;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.9) 0%, transparent 100%);
  pointer-events: none;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  position: relative;
  z-index: 1;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero / Scroll Scrub ────────────────────────────────────── */
.hero-stage {
  height: 500vh;
  position: relative;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, rgba(8,8,8,0.7) 100%),
    linear-gradient(to bottom, rgba(8,8,8,0.4) 0%, transparent 30%, transparent 70%, rgba(8,8,8,0.9) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(5rem, 12vw, 14rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.55s forwards;
}
.hero-title em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.55em;
  color: var(--accent);
  display: block;
  letter-spacing: 0.12em;
}
.hero-sub {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s infinite;
}
.hero-caption {
  position: absolute;
  bottom: 8rem;
  left: 3rem;
  right: 3rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.hero-caption p {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  max-width: 500px;
}
.scrub-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 1001;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--accent);
}

/* ── Section shared ─────────────────────────────────────────── */
section {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 5vw, 5rem);
}
.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  font-weight: 300;
}
.rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Services Intro ─────────────────────────────────────────── */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: end;
  border-top: 1px solid var(--border);
}
.services-intro .section-title { margin-bottom: 0; }
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 0.5rem;
}
.stat-num {
  font-family: var(--display);
  font-size: 3.5rem;
  color: var(--text);
  line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── Service Sections ───────────────────────────────────────── */
.service-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: clamp(1rem, 2vw, 2rem);
  padding-bottom: clamp(1rem, 2vw, 2rem);
}
.service-section.reverse { direction: rtl; }
.service-section.reverse > * { direction: ltr; }

/* ── Service Visual — base ──────────────────────────────────── */
.service-visual {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  /* flex column so gallery-main + gallery-thumbs stack naturally */
  display: flex;
  flex-direction: column;
}
.service-visual::before {
  content: attr(data-index);
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  z-index: 2;
  pointer-events: none;
}

/* Non-gallery visuals (NPR / AR / VR) keep aspect-ratio via visual-scene */
.visual-scene {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Colour tints per service */
.visual-product {
  background:
    radial-gradient(ellipse 60% 60% at 50% 60%, rgba(200,240,78,0.06) 0%, transparent 70%),
    linear-gradient(135deg, #0d0d0d 0%, #141410 100%);
}
.visual-npr {
  background:
    radial-gradient(ellipse 60% 60% at 40% 50%, rgba(240,78,78,0.07) 0%, transparent 70%),
    linear-gradient(135deg, #0d0d0d 0%, #130d0d 100%);
}
.visual-ar {
  background:
    radial-gradient(ellipse 60% 60% at 60% 40%, rgba(78,180,240,0.07) 0%, transparent 70%),
    linear-gradient(135deg, #0d0d0d 0%, #0d0f13 100%);
}
.visual-vr {
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(160,78,240,0.07) 0%, transparent 70%),
    linear-gradient(135deg, #0d0d0d 0%, #0f0d13 100%);
}

.visual-label-tag {
  position: absolute;
  bottom: 1.2rem; left: 1.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3em 0.7em;
  z-index: 3;
  pointer-events: none;
}

/* Replace-me overlay (NPR / AR / VR placeholders) */
.replace-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px dashed rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.12);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}
.replace-hint svg { opacity: 0.2; }

/* ── Gallery — main viewer (section 01) ─────────────────────── */
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-main video,
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

/* ── Gallery — thumbnail strip ──────────────────────────────── */
.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  position: relative;
  flex-shrink: 0;
  width: 68px;
  height: 46px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0.4;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery-thumb video,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-thumb:hover {
  opacity: 0.8;
}
.gallery-thumb:hover .thumb-play {
  opacity: 1;
}
.gallery-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}
.gallery-thumb.active .thumb-play {
  display: none;
}

/* ── Service copy ───────────────────────────────────────────── */
.service-copy {}
.service-copy .section-label { color: var(--muted); }
.service-copy .section-title { font-size: clamp(2.4rem, 4.5vw, 5rem); }

.service-features {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.service-features li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
}
.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.service-features li.alt::before { color: var(--accent2); }

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 0.9em 1.8em;
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.service-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.77,0,0.18,1);
}
.service-cta:hover { color: var(--bg); border-color: var(--accent); }
.service-cta:hover::before { transform: scaleX(1); }
.service-cta span { position: relative; z-index: 1; }

/* ── Marquee strip ──────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.marquee-track span.accent { color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand .nav-logo { font-size: 2rem; }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Reveal animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(4px) rotate(-1deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.float-anim { animation: float 6s ease-in-out infinite; }
.spin-anim  { animation: spinSlow 18s linear infinite; }
.pulse-anim { animation: pulse 3s ease-in-out infinite; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .services-intro { grid-template-columns: 1fr; gap: 3rem; }
  .service-section { grid-template-columns: 1fr; }
  .service-section.reverse { direction: ltr; }
  footer { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(3.5rem, 16vw, 6rem); }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 1.5rem; }
  .gallery-thumb { width: 56px; height: 38px; }
}
