/* =============================================================
   K MANJU CINEMAS — Homepage Styles
   A world-class cinematic experience
   ============================================================= */

/* --- 1. Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Color System */
  --bg:          #050505;
  --bg-elevated: #0c0c0c;
  --bg-card:     #111111;
  --bg-surface:  rgba(255,255,255,0.04);

  --text:        #f5f0e8;
  --text-dim:    rgba(245,240,232,0.55);
  --text-muted:  rgba(245,240,232,0.35);

  --accent:       #c8a750;
  --accent-light: #dfc47c;
  --accent-dark:  #8b7535;

  --border:       rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.15);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-pad: clamp(100px, 12vw, 180px);
  --container:   1400px;
  --gap:         clamp(20px, 3vw, 40px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;   /* MUST be auto — smooth conflicts with GSAP ScrollTrigger pin tracking */
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}


/* --- 2. Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.preloader-logo img {
  height: 120px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 24px rgba(200,167,80,0.3));
}

.preloader-counter {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}

.preloader-bar {
  width: 120px;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}


/* --- 3. Video Intro --- */
.video-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo);
}

.video-intro.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  z-index: 10;
}

.skip-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.skip-btn svg {
  width: 16px;
  height: 16px;
}


/* --- 4. Custom Cursor (desktop only) --- */
.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9990;
  pointer-events: none;
  mix-blend-mode: difference;
}

/* Custom cursor removed — using default system cursor */

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}

.cursor.hovering .cursor-dot {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.cursor.hovering .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--accent);
}


/* --- 5. Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9000;
  will-change: transform;
}


/* --- 6. Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 64px;
  width: auto;
  transition: height 0.4s var(--ease-out-expo), opacity 0.3s, filter 0.4s;
  filter: drop-shadow(0 2px 10px rgba(200,167,80,0.2));
}

.header.scrolled .nav-logo img {
  height: 48px;
}

.nav-logo:hover img {
  opacity: 0.9;
  filter: drop-shadow(0 2px 16px rgba(200,167,80,0.4));
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  z-index: 5001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 5px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -5px);
}


/* --- 7. Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 4999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.open .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-links a:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu-links a:hover { color: var(--accent); }


/* --- 8. Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1) saturate(0.8);
  transform: scale(1.05);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.1) 40%, rgba(5,5,5,0.7) 80%, var(--bg) 100%),
    linear-gradient(to right, rgba(5,5,5,0.5) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(30px, 6vw, 120px);
  max-width: 1000px;
}

/* Label */
.hero-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
}

.hero-label-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-label-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  overflow: hidden;
  padding: 6px 0;
}

.hero-title-word {
  display: inline-block;
  transform: translateY(120%);
  will-change: transform;
}

.hero-title-line:first-child {
  font-size: clamp(56px, 9vw, 130px);
  letter-spacing: -3px;
}

.hero-title-line:last-child {
  font-size: clamp(64px, 11vw, 160px);
  letter-spacing: -4px;
  color: var(--text);
}

/* Tagline — highlighter block (matte gold + black type, reference layout) */
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 1px;
  overflow: visible;
  margin-bottom: 48px;
}

.hero-tagline span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #000;
  background-color: #c5a45d;
  padding: 0.42em 0.75em;
  border-radius: 0;
  line-height: 1.35;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

/* --- Liquid Glass: Primary Button --- */
.btn-primary-new {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(200, 167, 80, 0.25) 0%,
    rgba(200, 167, 80, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(200, 167, 80, 0.3);
  border-radius: 50px;
  box-shadow:
    0 4px 24px rgba(200, 167, 80, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary-new:hover {
  border-color: rgba(200, 167, 80, 0.6);
  box-shadow:
    0 8px 32px rgba(200, 167, 80, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  gap: 16px;
}

.btn-primary-new:hover::before {
  left: 100%;
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.3s;
}

.btn-primary-new:hover .btn-arrow { transform: translateX(4px); }

/* --- Liquid Glass: Outline / Secondary Button --- */
.btn-outline-new {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.4s var(--ease-out-expo);
}

.btn-outline-new:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 167, 80, 0.4);
  color: var(--accent-light);
  box-shadow:
    0 4px 20px rgba(200, 167, 80, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  z-index: 3;
}

.hero-scroll-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  position: relative;
  overflow: hidden;
  background: var(--border);
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* Hero Stats (bottom corners) */
.hero-stats {
  position: absolute;
  bottom: 40px;
  right: clamp(30px, 6vw, 120px);
  display: flex;
  gap: 48px;
  z-index: 3;
  opacity: 0;
}

.hero-stat {
  text-align: right;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}


/* --- 9. Section Shared --- */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
}


/* --- 10. Films Section (Horizontal Scroll) --- */
.films-section {
  position: relative;
  padding: clamp(40px, 5vw, 80px) 0 60px;
  overflow: hidden;
  background: var(--bg);   /* essential when GSAP pins (position:fixed) */
  z-index: 10;             /* above hero when pinned */
}

.films-header {
  padding: 0 clamp(30px, 6vw, 120px);
  margin-bottom: 60px;
}

.films-track-wrapper {
  overflow: visible;
}

.films-track {
  display: flex;
  gap: 28px;
  padding: 0 clamp(30px, 6vw, 120px);
  will-change: transform;
}

.film-item {
  flex-shrink: 0;
  width: clamp(240px, 22vw, 340px);
}

.film-poster-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  background: var(--bg-card);
}

.film-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo), filter 0.5s;
  filter: saturate(0.85);
}

.film-item:hover .film-poster-wrap img {
  transform: scale(1.05);
  filter: saturate(1);
}

.film-poster-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.film-item:hover .film-poster-wrap::after { opacity: 1; }

.film-meta {
  padding: 18px 4px 0;
}

.film-year {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

.film-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.film-genre {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Film CTA Card */
.film-item-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2/3;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
  padding: 40px;
}

.film-cta-inner:hover {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.film-cta-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.film-cta-arrow {
  font-size: 28px;
  color: var(--accent);
  transition: transform 0.3s;
}

.film-cta-inner:hover .film-cta-arrow { transform: translateX(8px); }


/* --- 11. Legacy / Stats Section --- */
.legacy-section {
  padding: var(--section-pad) 0;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.legacy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

.legacy-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(30px, 6vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.legacy-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
}

.legacy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}

.legacy-stat {
  position: relative;
}

.legacy-stat-number {
  display: flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  letter-spacing: -2px;
}

.counter {
  font-variant-numeric: tabular-nums;
}

.legacy-stat-plus {
  font-size: 0.5em;
  color: var(--accent);
  margin-left: 2px;
}

.legacy-stat-unit {
  font-size: 0.65em;
  color: var(--text-dim);
}

.legacy-stat-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 10px;
}

.legacy-stat-desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}


/* --- 12. Personalities Section --- */
.personalities-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header-alt {
  margin-bottom: 64px;
  padding: 0 clamp(30px, 6vw, 120px);
}

/* Legends header — matte gold highlighter blocks + label (reference layout) */
.personalities-section__label {
  color: #c5a45d;
  font-weight: 500;
  letter-spacing: 0.35em;
  margin-bottom: 16px;
}

.personalities-title-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.personalities-title-highlight .section-heading-highlight-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  background-color: #c5a45d;
  color: #000;
  padding: 0.1em 0.32em 0.14em;
  border-radius: 0;
  font-weight: 700;
  line-height: 1.12;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 480px) {
  .personalities-title-highlight {
    gap: 4px;
  }

  .personalities-title-highlight .section-heading-highlight-line {
    padding: 0.12em 0.28em 0.14em;
    font-size: clamp(28px, 8vw, 40px);
  }

  .personalities-section__label {
    letter-spacing: 0.22em;
  }
}

.personalities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(30px, 6vw, 120px);
}

.personality-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out-expo);
  position: relative;
  z-index: 1;
}

.personality-card * { pointer-events: none; }

.personality-card:hover {
  transform: translateY(-6px);
}

.personality-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
  position: relative;
  background: var(--bg-card);
}

.personality-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.05);
  transition: filter 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.personality-card:hover .personality-image img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.04);
}

.personality-info h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.3s;
}

.personality-card:hover .personality-info h3 {
  color: var(--accent-light);
}


/* --- 12b. Personality Card — Glowing Border Effect --- */
.personality-card {
  border-radius: 12px;
  padding: 10px;
  background: var(--bg-card);
  border: 0.75px solid var(--border);
  overflow: visible;
}

.personality-card .personality-image,
.personality-card .personality-info {
  position: relative;
  z-index: 2;
}

/* Glow wrapper (injected via JS) */
.glow-wrap {
  --repeating-conic-gradient-times: 5;
  --gradient:
    radial-gradient(circle, #dd7bbb 10%, #dd7bbb00 20%),
    radial-gradient(circle at 40% 40%, #d79f1e 5%, #d79f1e00 15%),
    radial-gradient(circle at 60% 60%, #5a922c 10%, #5a922c00 20%),
    radial-gradient(circle at 40% 60%, #4c7894 10%, #4c789400 20%),
    repeating-conic-gradient(
      from 236.84deg at 50% 50%,
      #dd7bbb 0%,
      #d79f1e calc(25% / var(--repeating-conic-gradient-times)),
      #5a922c calc(50% / var(--repeating-conic-gradient-times)),
      #4c7894 calc(75% / var(--repeating-conic-gradient-times)),
      #dd7bbb calc(100% / var(--repeating-conic-gradient-times))
    );

  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.glow-wrap .glow {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  position: relative;
}

.glow-wrap .glow::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--glow-border-w, 3px));
  border-radius: inherit;
  border: var(--glow-border-w, 3px) solid transparent;
  background: var(--gradient);
  background-attachment: fixed;
  opacity: var(--active, 0);
  transition: opacity 0.3s ease;

  -webkit-mask-clip: padding-box, border-box;
          mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start, 0) - var(--spread, 40)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--spread, 40) * 2deg)
    );
  mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start, 0) - var(--spread, 40)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--spread, 40) * 2deg)
    );
}

/* Static faint border shown on touch / disabled devices */
.glow-static-border {
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--border-light);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

/* Show static border on touch devices where JS skips the glow */
@media (hover: none) {
  .glow-static-border { opacity: 1; }
  .glow-wrap { display: none; }
}


/* --- 13. About Section --- */
.about-section {
  padding: var(--section-pad) 0;
  background: var(--bg-elevated);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(30px, 6vw, 120px);
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

/* Gold shimmer border on hover */
.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.about-image-wrap:hover::after {
  border-color: rgba(200, 167, 80, 0.5);
  box-shadow:
    inset 0 0 20px rgba(200, 167, 80, 0.08),
    0 0 30px rgba(200, 167, 80, 0.1);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Avoid extra contrast — it reads as harsh “sharpness” on portraits */
  filter: contrast(1) saturate(0.96);
  transition: transform 0.8s var(--ease-out-expo), filter 0.8s ease;
}

.about-image-wrap:hover img {
  transform: scale(1.03);
  filter: contrast(1.02) brightness(1.03) saturate(0.98);
}

.about-image-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.about-image-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-image-role {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.about-text {
  padding-top: 20px;
}

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

.about-text .section-heading {
  margin-bottom: 32px;
}

/* --- "Magic" word — flowing gold/silver shimmer --- */
.magic-word {
  position: relative;
  display: inline-block;
  color: var(--text);
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--text) 20%,
    #c0c0c0 30%,
    #e8d5a3 40%,
    #ffd700 50%,
    #e8d5a3 60%,
    #c0c0c0 70%,
    var(--text) 80%,
    var(--text) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: magicShimmer 2.5s ease-in-out forwards;
  animation-delay: 0.8s;
  animation-play-state: paused;            /* wait for scroll trigger */
}

.magic-word.animate {
  animation-play-state: running;
}

.magic-word.shimmer-done {
  animation: none;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  transition: -webkit-text-fill-color 0.6s ease;
}

/* Sparkle particles */
.magic-word::before,
.magic-word::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.magic-word::before {
  right: 8%;
  background: #ffd700;
  box-shadow:
    -12px -8px 0 0 rgba(192,192,192,0.6),
    8px -14px 0 0 rgba(255,215,0,0.5),
    -20px 4px 0 -1px rgba(232,213,163,0.5);
  animation: sparkleIn 2s ease-out 1.2s forwards;
  animation-play-state: paused;
}

.magic-word::after {
  left: 15%;
  background: #c0c0c0;
  box-shadow:
    10px -10px 0 0 rgba(255,215,0,0.5),
    -6px -16px 0 0 rgba(192,192,192,0.4),
    16px 6px 0 -1px rgba(232,213,163,0.4);
  animation: sparkleIn 2s ease-out 1.5s forwards;
  animation-play-state: paused;
}

.magic-word.animate::before,
.magic-word.animate::after {
  animation-play-state: running;
}

@keyframes magicShimmer {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  80% {
    background-position: -50% 50%;
  }
  100% {
    /* Settle back to plain text color */
    background-position: -100% 50%;
  }
}

@keyframes sparkleIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  30% {
    opacity: 1;
    transform: scale(1.2);
  }
  60% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.about-bio {
  font-size: 17px;
  line-height: 1.9;
  color: #c8a96e;
  margin-bottom: 20px;
}

.about-bio:last-of-type { margin-bottom: 48px; }

.about-achievements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-achievement {
  display: flex;
  flex-direction: column;
}

.about-achievement-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}

.about-achievement-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}


/* --- 14. CTA Section --- */
.cta-section {
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cta-contact-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-contact-item {
  text-align: center;
}

.cta-contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cta-contact-value {
  font-size: 16px;
  color: var(--text-dim);
}

.cta-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.cta-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-dim);
  transition: all 0.3s var(--ease-out-expo);
}

.cta-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}


/* --- 15. Footer --- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(30px, 6vw, 120px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 12px rgba(200,167,80,0.2));
}

.footer-tagline {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 300;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--text); }


/* --- 16. Personality Modal (overrides existing) --- */
.personality-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  overflow: auto;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}

.personality-modal .modal-content {
  position: relative;
  background: linear-gradient(160deg, #111 0%, #050505 100%);
  margin: 5% auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.4s var(--ease-out-expo);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-dim);
  font-size: 28px;
  z-index: 10;
  transition: all 0.3s;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--text);
  background: rgba(255,255,255,0.1);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px;
  border-bottom: 1px solid var(--border);
}

.modal-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.modal-header-text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-header-text p {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 400;
}

.modal-body { padding: 36px 40px; }

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  padding: 24px;
  background: var(--bg-surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.modal-stats .stat-item { text-align: center; }

.modal-stats .stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.modal-stats .stat-value {
  display: block;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.modal-bio h3,
.modal-achievements h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-bio { margin-bottom: 32px; }

.modal-bio p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

.modal-achievements ul { padding: 0; }

.modal-achievements li {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.modal-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}


/* --- 17. Film Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}


/* --- 18. Reveal Animations (GSAP-driven) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-reveal-stagger] {
  opacity: 0;
  transform: translateY(30px);
}


/* --- 19. Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
  .legacy-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .personalities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: clamp(60px, 10vw, 100px);
  }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-logo img {
    height: 48px;
  }

  .header.scrolled .nav-logo img {
    height: 40px;
  }

  /* --- Hero --- */
  .hero {
    min-height: 100svh;           /* use small-viewport height for mobile browsers */
    align-items: flex-end;
    padding-bottom: 60px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title-line:first-child {
    font-size: clamp(42px, 12vw, 72px);
    letter-spacing: -1px;
  }

  .hero-title-line:last-child {
    font-size: clamp(48px, 14vw, 84px);
    letter-spacing: -2px;
  }

  .hero-tagline {
    font-size: clamp(16px, 4vw, 22px);
    margin-bottom: 32px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn-primary-new,
  .btn-outline-new {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 12px;
  }

  .hero-scroll { display: none; }

  /* --- Films --- */
  .films-section {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .films-header {
    padding: 0 20px;
    margin-bottom: 32px;
  }

  .films-track-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
  }

  .films-track-wrapper::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
  }

  .films-track {
    padding: 0 20px;
    gap: 16px;
  }

  .film-item {
    width: clamp(160px, 45vw, 240px);
  }

  .film-name { font-size: 14px; }
  .film-genre { font-size: 11px; }
  .film-year { font-size: 11px; }
  .film-meta { padding: 12px 2px 0; }

  /* --- Legacy / Stats --- */
  .legacy-inner {
    padding: 0 20px;
  }

  .legacy-heading {
    font-size: clamp(28px, 7vw, 40px);
  }

  .legacy-stats {
    gap: 28px 20px;
  }

  .legacy-stat-number {
    font-size: clamp(36px, 10vw, 56px);
  }

  /* --- Personalities --- */
  .section-header-alt {
    padding: 0 20px;
    margin-bottom: 32px;
  }

  .personalities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px;
  }

  .personality-image { margin-bottom: 10px; }

  /* --- About --- */
  .about-inner {
    padding: 0 20px;
  }

  .about-image-wrap {
    aspect-ratio: 4/3;
    max-height: 320px;
  }

  .about-bio {
    font-size: 15px;
    line-height: 1.75;
  }

  .about-achievements {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .about-achievement-num { font-size: 32px; }

  /* --- CTA --- */
  .cta-heading {
    font-size: clamp(26px, 6vw, 42px);
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }

  .cta-buttons .btn-primary-new,
  .cta-buttons .btn-outline-new {
    width: 100%;
    justify-content: center;
  }

  .cta-contact-row {
    flex-direction: column;
    gap: 20px;
  }

  .cta-contact-value { font-size: 14px; }

  .cta-social { margin-top: 32px; }

  /* --- Footer --- */
  .footer-inner { padding: 0 20px; }

  .footer-brand .footer-logo { height: 64px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal { justify-content: center; }

  /* --- Modal --- */
  .personality-modal .modal-content {
    width: 96%;
    margin: 5% auto;
    max-height: 92vh;
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    gap: 16px;
  }

  .modal-image { width: 80px; height: 80px; }

  .modal-header-text h2 { font-size: 22px; }

  .modal-body { padding: 20px 16px; }

  .modal-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-bio p,
  .modal-achievements li { font-size: 14px; }

  /* --- Video Intro --- */
  .skip-btn {
    bottom: 24px;
    right: 24px;
    padding: 10px 20px;
  }

  /* --- Section headings --- */
  .section-heading {
    font-size: clamp(28px, 7vw, 48px);
  }

  .section-label {
    font-size: 10px;
    letter-spacing: 2px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --section-pad: 60px;
  }

  .hero-content { padding: 0 16px; }

  .hero-title-line:first-child {
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-title-line:last-child {
    font-size: clamp(40px, 13vw, 64px);
  }

  .films-track { padding: 0 16px; gap: 12px; }

  .film-item {
    width: clamp(140px, 42vw, 200px);
  }

  .personalities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
  }

  .personality-info h3 { font-size: 12px; }

  .legacy-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-achievements {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .about-achievement-num { font-size: 28px; }
  .about-achievement-text { font-size: 11px; }

  .footer-brand .footer-logo { height: 52px; }

  .cta-inner { padding: 0 16px; }
}

/* Extra-small (very narrow) */
@media (max-width: 360px) {
  .hero-title-line:first-child { font-size: 32px; }
  .hero-title-line:last-child  { font-size: 36px; }

  .btn-primary-new,
  .btn-outline-new {
    padding: 12px 16px;
    font-size: 11px;
  }

  .film-item { width: 140px; }
}
