/* ═══════════════════════════════════════════════════
   Roll No. 24 — Commercial Page Styles
   ═══════════════════════════════════════════════════ */

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

:root {
  --bg: oklch(0.13 0.018 50);
  --fg: oklch(0.96 0.015 80);
  --primary: oklch(0.78 0.18 65);
  --muted: oklch(0.65 0.025 70);
  --border: oklch(0.28 0.02 50 / 0.4);
  --border-solid: oklch(0.28 0.02 50 / 0.6);
  --card-bg: oklch(0.17 0.014 50 / 0.4);
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --cursor-radius: 120px;
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { display: block; max-width: 100%; }
button { cursor: none; }

/* ═══════════════════════════════════════════════════
   CURSOR INVERSION CIRCLE
   ═══════════════════════════════════════════════════ */
.cursor-circle {
  position: fixed;
  width: var(--cursor-radius);
  height: var(--cursor-radius);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  background: white;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              height 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease;
  opacity: 0;
  will-change: transform;
}

.cursor-circle.active {
  opacity: 1;
}

.cursor-circle.hovering {
  width: 180px;
  height: 180px;
}

.cursor-circle.clicking {
  width: 90px;
  height: 90px;
  transition: width 0.1s ease, height 0.1s ease;
}

/* Small dot at exact cursor position */
.cursor-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  mix-blend-mode: difference;
}

/* ═══════════════════════════════════════════════════
   FILM GRAIN OVERLAY
   ═══════════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ═══════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderOut 0.6s ease-out 1s forwards;
}

.page-loader span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  animation: loaderPulse 0.6s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

@keyframes loaderOut {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* ═══════════════════════════════════════════════════
   CAMERA VIEWFINDER HUD
   ═══════════════════════════════════════════════════ */
.viewfinder {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  animation: vfIn 0.3s ease-out 1.2s forwards, vfOut 0.8s ease-out 3.5s forwards;
}

@keyframes vfIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vfOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.vf-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: oklch(0.78 0.18 65 / 0.5);
  border-style: solid;
  border-width: 0;
}
.vf-corner.tl { top: 80px; left: 20px; border-top-width: 1px; border-left-width: 1px; }
.vf-corner.tr { top: 80px; right: 20px; border-top-width: 1px; border-right-width: 1px; }
.vf-corner.bl { bottom: 20px; left: 20px; border-bottom-width: 1px; border-left-width: 1px; }
.vf-corner.br { bottom: 20px; right: 20px; border-bottom-width: 1px; border-right-width: 1px; }

.vf-rec {
  position: absolute;
  top: 92px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: oklch(0.78 0.18 65 / 0.8);
}

.vf-rec .rec-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e44;
  animation: pulseDot 1s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.vf-timecode {
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.vf-top-right {
  position: absolute;
  top: 92px;
  right: 36px;
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: oklch(0.78 0.18 65 / 0.6);
}

.vf-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 1px solid oklch(0.78 0.18 65 / 0.25);
  border-radius: 2px;
}

.vf-center::before,
.vf-center::after {
  content: '';
  position: absolute;
  background: oklch(0.78 0.18 65 / 0.3);
}
.vf-center::before {
  width: 1px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.vf-center::after {
  width: 14px; height: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.vf-af {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-50px);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: oklch(0.78 0.18 65 / 0.6);
}

.vf-info {
  position: absolute;
  bottom: 32px;
  left: 36px;
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: oklch(0.78 0.18 65 / 0.6);
}

.vf-settings {
  position: absolute;
  bottom: 32px;
  right: 36px;
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: oklch(0.78 0.18 65 / 0.6);
}

.vf-battery {
  position: absolute;
  top: 110px;
  right: 36px;
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: oklch(0.78 0.18 65 / 0.45);
}

.vf-frame-label {
  position: absolute;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.78 0.18 65 / 0.4);
}

.vf-scene-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(50px);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: oklch(0.78 0.18 65 / 0.5);
}

.vf-meter {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 7px;
  color: oklch(0.78 0.18 65 / 0.4);
}

.vf-meter-bar {
  width: 100px;
  height: 2px;
  background: oklch(0.78 0.18 65 / 0.15);
  position: relative;
}

.vf-meter-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: oklch(0.78 0.18 65 / 0.6);
  transform: translateX(-50%);
}

/* ═══════════════════════════════════════════════════
   SCROLL PROGRESS
   ═══════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 74px;
  left: 0;
  height: 1px;
  background: var(--primary);
  z-index: 51;
  width: 0%;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: oklch(0.13 0.018 50 / 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeDown 0.8s ease-out 1.4s both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 6px;
  animation: pulseDot 2s ease-in-out infinite;
}

.logo .slash { color: var(--muted); margin: 0 2px; }

/* REC logo variant — red camera recording indicator */
.logo-rec {
  color: #e44;
  letter-spacing: 0.15em;
  font-size: 13px;
  font-weight: 500;
  gap: 0;
}

.logo-rec .rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e44;
  margin-right: 7px;
  flex-shrink: 0;
  animation: pulseDot 1s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
}

.hire-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.hire-link:hover { color: var(--primary); }

@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.15em; }
  .hire-link { display: none; }
}

@media (max-width: 600px) {
  .nav-links { gap: 10px; }
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 70svh;
  min-height: 420px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-out forwards;
  will-change: transform;
}

@keyframes heroZoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    oklch(0.13 0.018 50 / 0.4) 40%,
    oklch(0.13 0.018 50 / 0.6) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.hero-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px 64px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.6s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-top: 16px;
  opacity: 0;
  animation: fadeUp 1s ease-out 1.8s forwards;
}

.hero-title .italic-accent {
  font-style: italic;
  color: var(--primary);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-inner { padding: 0 24px 48px; }
}

/* ═══════════════════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════════════════ */
.services-wrap {
  padding: 80px 40px;
}

.services {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}

.service-card {
  background: var(--bg);
  padding: 48px;
  transition: background 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

.service-card.visible {
  animation: cardReveal 0.7s ease-out forwards;
}

.service-card:nth-child(1).visible { animation-delay: 0s; }
.service-card:nth-child(2).visible { animation-delay: 0.1s; }
.service-card:nth-child(3).visible { animation-delay: 0.2s; }
.service-card:nth-child(4).visible { animation-delay: 0.3s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-card:hover {
  background: oklch(0.16 0.02 50);
}

.service-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.service-label .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.service-label .price {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.service-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 400px;
}

@media (max-width: 768px) {
  .services-wrap { padding: 60px 24px; }
  .services { grid-template-columns: 1fr; }
  .service-card { padding: 32px; }
}

/* ═══════════════════════════════════════════════════
   CLIENTS MARQUEE
   ═══════════════════════════════════════════════════ */
.clients {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  padding: 64px 0;
  overflow: hidden;
}

.clients-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
}

.clients-overflow {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

.clients-track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  white-space: nowrap;
  color: oklch(0.55 0.015 70);
  transition: color 0.3s ease;
}

.clients-track span:hover {
  color: var(--fg);
}

.clients-track .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: oklch(0.4 0.015 60);
  flex-shrink: 0;
  font-size: 0;
}

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

/* ═══════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════ */
.cta {
  max-width: 1600px;
  margin: 0 auto;
  padding: 96px 40px;
  text-align: center;
}

.cta h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 32px;
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--bg);
  border: 1px solid var(--primary);
  transition: all 0.4s ease;
}

.cta-btn:hover {
  background: transparent;
  color: var(--primary);
}

@media (max-width: 768px) {
  .cta { padding: 64px 24px; }
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: oklch(0.13 0.018 50 / 0.8);
}

.footer-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 64px 40px;
}

.footer-headline h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 400;
  line-height: 1.3;
}

.footer-headline p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
}

.footer-col {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  line-height: 2.4;
}

.footer-col .col-title {
  color: var(--fg);
  margin-bottom: 12px;
}

.footer-col .studio-name {
  font-size: 14.3px;
  color: var(--fg);
  letter-spacing: 0.15em;
}

.footer-col a {
  display: block;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.4 0.015 60);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    gap: 32px;
  }
  .footer-bottom { padding: 0 24px 24px; }
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   MOBILE: Hide custom cursor on touch devices
   ═══════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  html, body, a, button { cursor: auto; }
  .cursor-circle { display: none !important; }
}
