/* ═══════════════════════════════════════════════
   RESET & DESIGN SYSTEM TOKENS
   ═══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1a1a1a;
  --indigo: #1a1a1a;
  --violet: #1a1a1a;
  --grad: linear-gradient(135deg, #1a1a1a 0%, #444444 100%);
  --bg: #eceee3;
  --bg2: #e2e4da;
  --surface: #fafaf7;
  --border: #d4d6cc;
  --text: #1a1a1a;
  --muted: #6b6b60;
  --mid: rgba(26, 26, 26, 0.65);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  cursor: none; /* Hide default cursor to enable custom cursor */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Film grain overlay for cinematic texture ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.2s steps(2) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 3px); }
  100% { transform: translate(2px, -3px); }
}

/* ═══════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════ */
#cur-dot {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.2s;
  visibility: hidden;
}

#cur-ring {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(236, 238, 227, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, opacity 0.3s;
  visibility: hidden;
}

body.has-mouse #cur-dot,
body.has-mouse #cur-ring {
  visibility: visible;
}

.mag-hover #cur-dot {
  width: 14px;
  height: 14px;
  background: var(--text);
}

.mag-hover #cur-ring {
  width: 54px;
  height: 54px;
  border-color: rgba(236, 238, 227, 0.5);
  background: rgba(236, 238, 227, 0.05);
}

/* ═══════════════════════════════════════════════
   3D REVEAL PRELOADER
   ═══════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #eceee3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
  transform: translateY(0);
}

#preloader.exit {
  transform: translateY(-100%);
}

.pre-grid {
  position: absolute;
  inset: -40% -20% -20%;
  background: linear-gradient(rgba(236, 238, 227, 0.06) 1px, transparent 1px),
              linear-gradient(90deg, rgba(236, 238, 227, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(300px) rotateX(70deg) translateY(10%);
  transform-origin: 50% 100%;
  opacity: 0;
  animation: preGridIn 1.5s ease 0.1s forwards;
  pointer-events: none;
}

.pre-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, transparent 10%, #eceee3 80%);
}

@keyframes preGridIn {
  to { opacity: 0.6; }
}

.pre-ambient {
  position: absolute;
  width: 500px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(26, 26, 26, 0.08) 0%, rgba(26, 26, 26, 0.03) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0;
  animation: preAmbIn 1.8s ease 0.3s forwards;
}

@keyframes preAmbIn {
  to { opacity: 1; }
}

.pre-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pre-logo {
  height: clamp(60px, 12vw, 100px);
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.85);
  animation: preLogoIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes preLogoIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pre-letters {
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  gap: 0;
}

.pre-letter {
  display: inline-block;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(26, 26, 26, 0.95);
  opacity: 0;
  transform: rotateX(90deg) translateY(20px);
  transform-origin: 50% 100%;
  animation: letterRise3D 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--d) forwards;
  text-transform: uppercase;
  line-height: 1;
}

.pre-letter.pre-space {
  width: 12px;
}

@keyframes letterRise3D {
  0% { opacity: 0; transform: rotateX(90deg) translateY(20px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotateX(0deg) translateY(0); }
}

.pre-hline {
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.2), transparent);
  margin-top: 20px;
  animation: preHLine 1.2s var(--ease) 1.5s forwards;
}

@keyframes preHLine {
  to { width: 220px; }
}

.pre-prog {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad);
}

/* ═══════════════════════════════════════════════
   FLOATING BG SOCIAL ICONS
   ═══════════════════════════════════════════════ */
.bg-icons-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-icon {
  position: absolute;
  opacity: 0.035;
  will-change: transform;
}

.bg-icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.bg-icon:nth-child(1) { width: 48px; height: 48px; top: 10%; left: 5%; animation: bgFloat1 20s ease-in-out infinite; }
.bg-icon:nth-child(2) { width: 36px; height: 36px; top: 15%; left: 88%; animation: bgFloat2 18s ease-in-out infinite 2s; }
.bg-icon:nth-child(3) { width: 44px; height: 44px; top: 35%; left: 75%; animation: bgFloat1 24s ease-in-out infinite 4s; }
.bg-icon:nth-child(4) { width: 32px; height: 32px; top: 58%; left: 8%; animation: bgFloat3 22s ease-in-out infinite 1s; }
.bg-icon:nth-child(5) { width: 42px; height: 42px; top: 72%; left: 85%; animation: bgFloat2 26s ease-in-out infinite 3s; }
.bg-icon:nth-child(6) { width: 38px; height: 38px; top: 85%; left: 45%; animation: bgFloat1 19s ease-in-out infinite 5s; }

@keyframes bgFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(4deg); }
  50% { transform: translate(-8px, -25px) rotate(-3deg); }
  75% { transform: translate(-12px, -10px) rotate(5deg); }
}

@keyframes bgFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-12px, -18px) rotate(-6deg); }
  66% { transform: translate(8px, -30px) rotate(3deg); }
}

@keyframes bgFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -20px) rotate(5deg); }
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease);
}

#nav.compact {
  padding: 14px 50px;
  background: rgba(6, 6, 15, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-8px);
}

.logo-symbol {
  width: 32px;
  height: 32px;
  background: var(--grad);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  opacity: 0;
  transform: translateY(-8px);
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--grad);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  opacity: 0;
  transform: translateY(-8px);
}

/* Hamburger menu button */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
}

.nav-ham span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  display: block;
}

.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer overlay */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(236, 238, 227, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer a {
  font-size: 32px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
  display: block;
}

.nav-drawer a:hover {
  color: var(--text);
  transform: translateX(10px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease);
  border: none;
  outline: none;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--grad);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(236, 238, 227, 0.3);
  background: rgba(236, 238, 227, 0.05);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 150px 50px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(236, 238, 227, 0.06);
  border: 1px solid rgba(236, 238, 227, 0.15);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(16px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(38px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(24px);
}

.hl {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
  opacity: 0;
  transform: translateY(20px);
}

/* Fanned Cards Deck */
.hero-cards {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 50px;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(40px);
  gap: 0;
}

.reel-outer {
  position: relative;
  will-change: transform;
  flex-shrink: 0;
}

.reel-outer--left {
  transform: rotate(-8deg) scale(0.88);
  z-index: 2;
  margin-right: 20px;
}

.reel-outer--center {
  z-index: 3;
}

.reel-outer--right {
  transform: rotate(8deg) scale(0.88);
  z-index: 2;
  margin-left: 20px;
}

.reel-inner {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reel-outer--left .reel-inner { animation: floatA 5s ease-in-out infinite; }
.reel-outer--center .reel-inner { animation: floatB 4.2s ease-in-out infinite; }
.reel-outer--right .reel-inner { animation: floatC 5.6s ease-in-out infinite; }

.reel-outer:hover .reel-inner {
  animation-play-state: paused;
  transform: translateY(-15px) scale(1.05);
}

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(8px); }
}

@keyframes floatC {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(14px); }
}

.reel-card {
  width: 178px;
  height: 310px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s, opacity 0.4s, filter 0.4s;
  background: var(--surface);
}

.reel-bg-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #121212 0%, #262626 100%);
  z-index: 0;
}

.reel-bg-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #262626 0%, #3e3e3e 100%);
  z-index: 0;
}

.reel-outer--left .reel-card {
  opacity: 0.75;
  filter: blur(0.5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(236, 238, 227, 0.08);
}

.reel-outer--center .reel-card {
  opacity: 1;
  filter: blur(0);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(236, 238, 227, 0.2), 0 0 40px rgba(236, 238, 227, 0.05);
}

.reel-outer--right .reel-card {
  opacity: 0.75;
  filter: blur(0.5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(236, 238, 227, 0.08);
}

.reel-outer:hover .reel-card {
  opacity: 1 !important;
  filter: blur(0) !important;
  box-shadow: 0 45px 90px rgba(0, 0, 0, 0.8), 0 0 0 1.5px rgba(236, 238, 227, 0.3) !important;
}

.reel-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  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");
  background-size: 128px;
  pointer-events: none;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, transparent 40%, rgba(0,0,0,0.75) 100%);
  z-index: 4;
}

.reel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-mute-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  margin-left: auto;
  pointer-events: auto;
}

.reel-mute-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.reel-mute-btn svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  display: none;
}

.reel-mute-btn.is-muted .ico-muted { display: block; }
.reel-mute-btn:not(.is-muted) .ico-unmuted { display: block; }

.reel-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.reel-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.reel-outer:hover .reel-play {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.reel-play svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  margin-left: 2px;
}

.reel-bottom {
  text-align: left;
}

.reel-brand {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.reel-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
}

.reel-type {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.reel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  pointer-events: none;
}

.reel-shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
  z-index: 5;
}

.hero-ctas {
  position: relative;
  z-index: 4;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollDrop 1.6s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════════
   SECTIONS COMMON STYLES
   ═══════════════════════════════════════════════ */
.section {
  padding: 120px 50px;
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* Scroll reveal class */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════
   PAGE 2: ABOUT SECTION
   ═══════════════════════════════════════════════ */
#about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-wrap {
  width: 100%;
  aspect-ratio: 1.1;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at center, #fafaf7 0%, #e2e4da 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--grad);
  border-radius: 18px;
  padding: 16px 24px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.about-badge-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.about-badge-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.about-logo-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  animation: logoFloat 4s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  from {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  to {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(236, 238, 227, 0.2);
  }
}

.about-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.about-hl {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--mid);
}

.about-hl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ═══════════════════════════════════════════════
   PAGE 3: WORK SECTION (VIDEO GRID)
   ═══════════════════════════════════════════════ */
#work {
  background: var(--bg2);
}

.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(236, 238, 227, 0.05);
  border-color: rgba(236, 238, 227, 0.2);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 9/16;
  background: #121212;
  overflow: hidden;
  cursor: pointer;
}

/* Styled video thumbnail placeholder with gradient */
.video-thumb-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c1, #1e3a8a) 0%, var(--c2, #4F46E5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform 0.6s var(--ease);
  z-index: 0;
}

.video-card:hover .video-thumb-placeholder {
  transform: scale(1.08);
}

/* Background video loops — poster shows before video loads */
.video-thumb-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Poster fills card like a thumbnail — no black flash */
  background: transparent;
}

/* Hide the emoji placeholder when video has a poster (poster shows instead) */
.video-thumb-wrap video[poster] ~ .video-thumb-placeholder {
  opacity: 0;
  transition: opacity 0.3s;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s;
  z-index: 2;
}

.video-card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.video-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}

.video-card:hover .video-play-btn {
  transform: scale(1.12);
  background: var(--blue);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(236, 238, 227, 0.3);
}

.video-play-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  margin-left: 2px;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.video-info {
  padding: 20px;
}

.video-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.video-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.video-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   PAGE 4: CONTACT INFO & FORM
   ═══════════════════════════════════════════════ */
#contact {
  background: var(--bg);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(236, 238, 227, 0.05);
  border: 1px solid rgba(236, 238, 227, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-text strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form-column {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}

.form-input:focus {
  border-color: rgba(236, 238, 227, 0.4);
  box-shadow: 0 0 0 3px rgba(236, 238, 227, 0.05);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  justify-content: center;
  margin-top: 10px;
}

/* Success panel */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px solid rgba(236, 238, 227, 0.15);
  border-radius: 20px;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.6s var(--ease);
}

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

.success-icon {
  font-size: 44px;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   VIDEO POPUP MODAL
   ═══════════════════════════════════════════════ */
#videoModal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 238, 227, 0.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  padding: 20px;
}

#videoModal.show {
  opacity: 1;
  visibility: visible;
}

.vmodal-box {
  position: relative;
  background: #eceee3;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 92, 246, 0.1);
  height: 85vh;
  width: calc(85vh * 9/16); /* 9:16 aspect ratio default for portrait videos */
  max-width: calc(100vw - 40px);
}

#videoModal.show .vmodal-box {
  transform: scale(1) translateY(0);
}

.vmodal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(26, 26, 26, 0.08);
  border: 1px solid rgba(26, 26, 26, 0.15);
  color: rgba(26, 26, 26, 0.8);
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.vmodal-close:hover {
  background: rgba(26, 26, 26, 0.25);
  color: #1a1a1a;
}

.vmodal-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vmodal-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  outline: none;
}

.vmodal-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  text-align: left;
  pointer-events: none;
  z-index: 2;
}

/* ═══════════════════════════════════════════════
   FOOTER SECTION
   ═══════════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 50px 40px;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  color: var(--muted);
  font-size: 14px;
}

.footer-social-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-copy {
  font-size: 11px;
  color: #3b3b4f;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ═══════════════════════════════════════════════ */
@media(max-width: 900px) {
  #nav {
    padding: 20px 30px;
  }
  
  #nav.compact {
    padding: 12px 30px;
  }
  
  .about-grid, .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual {
    order: -1;
  }
  
  .about-badge {
    bottom: -10px;
    right: -10px;
  }
}

@media(max-width: 640px) {
  #hero {
    padding: 120px 20px 60px;
  }
  
  .hero-sub {
    display: none;
  }
  
  .hero-cards {
    perspective: 800px;
    margin-top: 24px;
  }
  
  .reel-card {
    width: 146px;
    height: 250px;
    border-radius: 18px;
  }
  
  .reel-card::before {
    border-radius: 18px;
  }
  
  .reel-outer--left {
    margin-right: -48px;
    z-index: 1;
  }
  
  .reel-outer--right {
    margin-left: -48px;
    z-index: 1;
  }
  
  .reel-outer--center {
    z-index: 3;
  }
  
  .reel-outer--left .reel-card,
  .reel-outer--right .reel-card {
    opacity: 0.9;
    filter: blur(0);
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 24px;
  }
  
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-scroll {
    display: none;
  }
  
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-ham {
    display: flex;
  }
  
  .section {
    padding: 80px 20px;
  }
  
  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .contact-form-column {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Touch devices adjustments */
@media(hover: none) {
  body {
    cursor: auto;
  }
  #cur-dot, #cur-ring {
    display: none;
  }
  a, button, .btn, .video-thumb-wrap, .reel-card, .video-card {
    cursor: pointer;
  }
}

.contact-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}
.contact-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}
