/* ==========================================================================
   Kinodai Film — CSS Design System & Layout
   ========================================================================== */

/* 1. Design Tokens & Root Declarations */
:root {
  /* Colors */
  --bg-dark: #0a0908;            /* Cinematic deep warm charcoal */
  --bg-dark-accent: #12100e;     /* Muted section background */
  --bg-light: #f4f1ea;           /* Calming, soft warm ivory */
  --bg-light-accent: #ede9df;    /* Subtle off-cream */
  
  --accent-gold: #c5a880;        /* Luxury champagne gold */
  --accent-gold-hover: #bda076;  /* Deeper gold hover */
  --accent-gold-rgb: 197, 168, 128;
  
  /* Text Colors */
  --text-light: #ffffff;
  --text-light-muted: #d8d2c7;
  --text-dark: #1f1d1b;
  --text-dark-muted: #615c55;
  
  /* Typography Variables */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
  
  /* Blurs & Shadows */
  --glass-blur: 16px;
  --glass-border: 1px solid rgba(197, 168, 128, 0.16);
  --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.4);
  
  /* Animation Speeds */
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.2s ease;
}

/* 2. Resets & Custom Scrollbars */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

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

/* Slim Champagne Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-gold-rgb), 0.4);
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-gold-rgb), 0.7);
}

/* 3. Utility Components & Layout Base */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-padding {
  padding: 160px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 100px 0;
  }
}

.dark-section {
  background-color: var(--bg-dark-accent);
}

/* Elegant Section Headers */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 80px auto;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background-color: var(--accent-gold);
}

.gold-tag {
  color: var(--accent-gold);
}
.gold-tag::before {
  background-color: var(--accent-gold);
}

.section-title {
  font-size: clamp(32px, 5vw, 44px);
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 24px;
}

#philosophy .section-title,
.light-section .section-title {
  color: var(--text-dark);
}

.light-text,
.text-light {
  color: var(--text-light) !important;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light-muted);
  font-weight: 300;
}

#philosophy .section-desc,
.light-section .section-desc {
  color: var(--text-dark-muted);
}

.light-desc {
  color: var(--text-light-muted) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--accent-gold-rgb), 0.2);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* 4. Sticky Header & Glassmorphism Nav */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  background-color: rgba(10, 9, 8, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.glass-nav.scrolled {
  height: 70px;
  background-color: rgba(10, 9, 8, 0.85);
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
}

.logo-subtitle {
  font-size: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  margin-top: 3px;
}

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

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light-muted);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

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

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

.nav-links .cta-nav-link {
  color: var(--accent-gold);
  border: 1px solid rgba(var(--accent-gold-rgb), 0.3);
  padding: 6px 16px;
  border-radius: 1px;
  transition: var(--transition-smooth);
}

.nav-links .cta-nav-link:hover {
  border-color: var(--accent-gold);
  background-color: rgba(var(--accent-gold-rgb), 0.08);
}

.nav-links .cta-nav-link::after {
  display: none;
}

/* Nav Actions (Sound Toggle & Mobile Menu) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light-muted);
  transition: var(--transition-smooth);
  position: relative;
}

.icon-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.05);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.sound-tooltip {
  position: absolute;
  bottom: -40px;
  right: 0;
  background: var(--bg-dark);
  border: var(--glass-border);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.icon-btn:hover .sound-tooltip {
  opacity: 1;
  bottom: -32px;
}

.hidden {
  display: none !important;
}

#mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  #mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 576px) {
  .nav-container {
    padding: 0 24px;
  }
}

/* Mobile Drawer Menu */
.mobile-drawer-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  z-index: 999;
  background-color: rgba(10, 9, 8, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-drawer-menu.active {
  right: 0;
}

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

.mobile-link {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text-light-muted);
}

.mobile-link:hover {
  color: var(--text-light);
  transform: scale(1.05);
}

.mobile-cta {
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 12px 30px;
  margin-top: 20px;
}

/* 5. Immersive Hero Section */
#hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05); /* Initial scale for native zoom timeline */
  z-index: 2; /* Sits on top of the iframe container to mask buffering */
  transition: opacity 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 1;
}

#hero.video-loaded .parallax-bg {
  opacity: 0;
  pointer-events: none;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Sits below the masking image while loading */
  overflow: hidden;
  pointer-events: none;
  transform: scale(1.05); /* Initial scale for native zoom timeline */
}

.hero-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 ratio */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10,9,8,0.2) 0%, rgba(10,9,8,0.75) 90%),
              linear-gradient(to bottom, rgba(10,9,8,0.3) 0%, rgba(10,9,8,0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(36px, 7vw, 68px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-light-muted);
  max-width: 550px;
  margin: 0 auto 48px auto;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-light-muted);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.scroll-down:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.scroll-arrow {
  width: 14px;
  height: 14px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* 6. Philosophy (About) Section */
#philosophy {
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow: hidden;
}

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

@media (max-width: 992px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.philosophy-text {
  max-width: 500px;
}

.philosophy-text p {
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--text-dark-muted);
}

.philosophy-text p.lead-text {
  font-size: 18px;
  color: var(--text-dark);
  font-family: var(--font-serif);
  line-height: 1.5;
  margin-bottom: 32px;
}

.signature {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
  border-left: 2px solid var(--accent-gold);
  padding-left: 24px;
}

.sig-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.sig-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

.philosophy-image-container {
  position: relative;
  justify-self: center;
}

.parallax-image-wrapper {
  width: 400px;
  height: 520px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-strong);
}

.parallax-image-wrapper img {
  width: 100%;
  height: 120%; /* Extra height to allow room for translate parallax */
  object-fit: cover;
  object-position: top center;
  position: absolute;
  top: 0;
  left: 0;
}

.image-accent-border {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(var(--accent-gold-rgb), 0.3);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 576px) {
  .parallax-image-wrapper {
    width: 290px;
    height: 380px;
  }
}

/* 7. Portfolio Section & Video Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 48px;
  }
}

.film-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.film-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15; /* Tall, premium poster proportions */
  overflow: hidden;
  background-color: var(--bg-dark);
  box-shadow: var(--shadow-subtle);
}

.film-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.film-card:hover .film-thumbnail {
  transform: scale(1.08);
}

.film-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,9,8,0) 40%, rgba(10,9,8,0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.film-card:hover .film-card-overlay {
  opacity: 1;
  background: rgba(10, 9, 8, 0.4);
}

.film-duration {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: rgba(10, 9, 8, 0.6);
  border: var(--glass-border);
  padding: 4px 10px;
  border-radius: 1px;
}

.play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
  transform: scale(0.9);
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.play-icon {
  width: 22px;
  height: 22px;
  transform: translateX(2px);
}

.film-card:hover .play-btn {
  transform: scale(1.08);
  opacity: 1;
  background-color: var(--accent-gold);
  box-shadow: 0 0 25px rgba(var(--accent-gold-rgb), 0.4);
}

.film-info {
  padding-top: 24px;
}

.film-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
}

.film-title {
  font-size: 24px;
  margin: 6px 0;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.film-card:hover .film-title {
  color: var(--accent-gold);
}

.film-location {
  font-size: 12px;
  color: var(--text-light-muted);
}

/* 8. Packages (The Chapters) Section */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 40px;
  }
}

.package-card {
  background: rgba(18, 16, 14, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.package-card:hover {
  transform: translateY(-8px);
  background: rgba(18, 16, 14, 0.6);
  border-color: rgba(var(--accent-gold-rgb), 0.2);
  box-shadow: var(--shadow-subtle);
}

.package-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--bg-dark);
  background-color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 1px;
}

/* Featured / Highly valued Package Card style */
.featured-package {
  background: rgba(18, 16, 14, 0.8);
  border: 1px solid rgba(var(--accent-gold-rgb), 0.35);
  box-shadow: var(--shadow-subtle);
}

.featured-package:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 10px 40px rgba(var(--accent-gold-rgb), 0.08);
}

.package-name {
  font-size: 22px;
  margin-bottom: 8px;
}

.package-subtitle {
  font-size: 12px;
  color: var(--text-light-muted);
  margin-bottom: 24px;
}

.package-price {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--accent-gold);
}

.package-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(var(--accent-gold-rgb), 0.25), rgba(255, 255, 255, 0.02));
  margin: 32px 0;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  flex-grow: 1;
}

.package-features li {
  font-size: 13px;
  color: var(--text-light-muted);
  position: relative;
  padding-left: 20px;
}

/* Custom list bullet */
.package-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 20px;
  line-height: 0.8;
}

.package-footer .btn {
  width: 100%;
}

.packages-more {
  text-align: center;
  margin-top: 60px;
}

.packages-more .btn {
  padding: 16px 48px;
}

/* 9. The "Love Letter" Form Section */
.contact-section {
  position: relative;
  background-color: var(--bg-dark);
}

.contact-container {
  max-width: 800px;
}

.love-letter {
  background: rgba(18, 16, 14, 0.4);
  border: var(--glass-border);
  padding: 80px;
  box-shadow: var(--shadow-strong);
  position: relative;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

@media (max-width: 768px) {
  .love-letter {
    padding: 40px 24px;
  }
}

.letter-body {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3.5vw, 24px);
  color: var(--text-light-muted);
  line-height: 1.8;
}

.letter-paragraph {
  margin-bottom: 24px;
  text-indent: 20px;
}

/* Letter Input blenders */
.input-wrapper {
  display: inline-block;
  position: relative;
  margin: 0 4px;
}

.love-letter input,
.love-letter select,
.love-letter textarea {
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: inherit;
  color: var(--text-light);
  outline: none;
  padding: 0 8px;
  text-align: center;
  transition: var(--transition-fast);
}

.love-letter select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 20px;
}

.love-letter textarea {
  width: 100%;
  text-align: left;
  resize: none;
  padding: 8px 12px;
}

.love-letter input::placeholder,
.love-letter textarea::placeholder {
  color: rgba(255, 255, 255, 0.15);
  font-style: italic;
}

.input-line {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(var(--accent-gold-rgb), 0.3);
  transition: var(--transition-smooth);
}

.love-letter input:focus + .input-line,
.love-letter select:focus + .input-line,
.love-letter textarea:focus + .input-line {
  background-color: var(--accent-gold);
  height: 2px;
  box-shadow: 0 0 10px rgba(var(--accent-gold-rgb), 0.5);
}

.love-letter input:focus,
.love-letter select:focus,
.love-letter textarea:focus {
  color: var(--accent-gold);
}

.textarea-wrapper {
  display: block;
  width: 100%;
  margin-top: 12px;
}

.letter-closing {
  margin-top: 48px;
  text-indent: 0;
}

.signature-text {
  display: inline-block;
  font-style: italic;
  color: var(--accent-gold);
  margin-top: 12px;
  border-bottom: 1px dashed rgba(var(--accent-gold-rgb), 0.4);
  padding: 0 8px;
}

/* Submit row */
.form-footer {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn-submit {
  padding: 16px 40px;
  gap: 12px;
}

.send-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-smooth);
}

.btn-submit:hover .send-icon {
  transform: translate(4px, -4px);
}

/* Status message */
.form-status-msg {
  font-size: 13px;
  text-align: center;
  padding: 12px 24px;
  border-radius: 1px;
  max-width: 450px;
  transition: var(--transition-smooth);
}

.form-status-msg.success {
  background-color: rgba(58, 79, 65, 0.25);
  border: 1px solid #3a4f41;
  color: #a3b899;
}

.form-status-msg.error {
  background-color: rgba(132, 59, 59, 0.2);
  border: 1px solid #843b3b;
  color: #e49999;
}

/* 10. Cinematic Lightbox Modal Dialog */
.lightbox-modal {
  border: none;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Custom Backdrop Filter */
.lightbox-modal::backdrop {
  background-color: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Flex trigger class */
.lightbox-modal[open] {
  display: flex;
}

.lightbox-container {
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  position: relative;
  outline: none;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--accent-gold);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-content {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  box-shadow: var(--shadow-strong);
  border: var(--glass-border);
}

/* Custom Interactive Mock Player */
.video-player-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#cinema-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,9,8,0.4) 0%, rgba(10,9,8,0) 40%, rgba(10,9,8,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  z-index: 2;
  transition: opacity var(--transition-smooth);
}

/* Hide controls on absolute inactivity (handled in JS) */
.video-player-overlay.controls-hidden {
  opacity: 0;
  cursor: none;
}

/* Vintage film grain effect overlay */
.film-grain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.player-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: rgba(var(--accent-gold-rgb), 0.85);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(var(--accent-gold-rgb), 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 3;
}

.player-center-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--accent-gold);
}

.player-center-play svg {
  width: 32px;
  height: 32px;
  transform: translateX(3px);
}

.player-center-play.playing {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Film Title in Player */
.player-film-title {
  margin-top: 10px;
  max-width: 450px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.player-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
}

.player-film-title h4 {
  font-size: 28px;
  color: var(--text-light);
  margin-top: 4px;
}

.player-film-title p {
  font-size: 12px;
  color: var(--text-light-muted);
}

/* Custom Controls row */
.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.control-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.control-btn:hover {
  color: var(--accent-gold);
}

.control-btn svg {
  width: 20px;
  height: 20px;
}

/* Progress bar slider */
.progress-bar-container {
  flex-grow: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  cursor: pointer;
  border-radius: 2px;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--accent-gold);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.progress-bar-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-light);
  transition: transform var(--transition-fast);
}

.progress-bar-container:hover .progress-bar-handle {
  transform: translate(-50%, -50%) scale(1);
}

.player-time {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-light-muted);
  white-space: nowrap;
}

/* 11. Elegant Footer Styling */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 100px 0 40px 0;
  background-color: var(--bg-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
}

.footer-logo-wrap {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 16px;
}

.footer-logo-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.footer-logo-wrap:hover .footer-logo-title {
  color: var(--accent-gold);
}

.footer-logo-subtitle {
  font-size: 8.5px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  margin-top: 4px;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-light-muted);
  max-width: 320px;
  margin-bottom: 18px;
}

.footer-icon-wrap {
  margin-top: 0;
}

.footer-brand-icon {
  width: 68px;
  height: auto;
  opacity: 0.95;
  display: block;
  transition: var(--transition-smooth);
}

.footer-brand-icon:hover {
  opacity: 1;
  transform: scale(1.06);
}

.footer-header {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a, .footer-social a {
  font-size: 13px;
  color: var(--text-light-muted);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.footer-links a:hover, .footer-social a:hover {
  color: var(--text-light);
  transform: translateX(4px);
}

.footer-social a:hover .footer-icon {
  color: var(--text-light);
  transform: scale(1.15);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 40px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-light-muted);
  opacity: 0.6;
}

.crafted-by {
  font-style: italic;
  font-family: var(--font-serif);
}

@media (max-width: 576px) {
  .footer-bottom-flex {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
}


/* ==========================================================================
   12. Motion & Scroll-Driven Parallax System
   ========================================================================== */

/* Fade-in Entrance Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fade-in-up-delayed {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s forwards;
}

.fade-in-up-delayed-more {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s forwards;
}

.fade-in-up-delayed-much {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.9s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal Triggers (controlled via IntersectionObserver in app.js) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

/* 
   Native Scroll-driven parallax implementation! 
   This matches the best practices from the modern-web-guidance.
*/
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  
  @keyframes heroZoom {
    from {
      transform: scale(1.05) translateY(0);
    }
    to {
      transform: scale(1.0) translateY(120px);
    }
  }

  @keyframes philosophyTranslate {
    from {
      transform: translateY(40px);
    }
    to {
      transform: translateY(-80px);
    }
  }

  /* Declare timelines */
  #hero {
    view-timeline: --hero-timeline;
  }

  .philosophy-image-container {
    view-timeline: --phil-timeline;
  }

  /* Bind animations to timelines */
  #hero .parallax-bg,
  #hero .hero-video-container {
    animation: heroZoom linear both;
    animation-timeline: --hero-timeline;
    animation-range: exit 0% exit 100%;
  }

  #philosophy-portrait {
    animation: philosophyTranslate linear both;
    animation-timeline: --phil-timeline;
    animation-range: entry 0% exit 100%;
  }
}

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in-up, .fade-in-up-delayed, .fade-in-up-delayed-more, .fade-in-up-delayed-much {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal-on-scroll {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .scroll-arrow {
    animation: none;
  }

  /* Turn off native parallax */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    #hero .parallax-bg,
    #hero .hero-video-container {
      animation: none !important;
      transform: none !important;
    }

    #philosophy-portrait {
      animation: none !important;
      transform: none !important;
    }
  }
  
  /* Turn off custom JS parallax */
  .parallax-bg, .hero-video-container, .parallax-img {
    transform: none !important;
  }
}

/* ==========================================================================
   13. Investment Packages Page (packages.html)
   ========================================================================== */
.packages-hero {
  position: relative;
  padding: 180px 0 80px 0;
  text-align: center;
  background-color: var(--bg-dark-accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.packages-hero-title {
  font-size: clamp(36px, 6vw, 60px);
  color: var(--text-light);
  margin-bottom: 16px;
}
.packages-hero-subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-light-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.package-detail-section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.package-detail-section:nth-of-type(even) {
  background-color: var(--bg-dark-accent);
}

.package-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .package-detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.package-detail-meta {
  max-width: 480px;
}

.package-detail-meta .section-tag {
  color: var(--accent-gold);
}
.package-detail-meta .section-tag::before {
  background-color: var(--accent-gold);
}

.package-detail-title {
  font-size: clamp(28px, 4.5vw, 40px);
  color: var(--text-light);
  margin-bottom: 12px;
}

.package-detail-price {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.package-detail-perfect {
  font-size: 15px;
  color: var(--text-light-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.package-detail-glass {
  background: rgba(18, 16, 14, 0.3);
  border: var(--glass-border);
  padding: 40px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 576px) {
  .package-detail-glass {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px 24px;
  }
}

.package-detail-box-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(var(--accent-gold-rgb), 0.2);
  padding-bottom: 10px;
}

.package-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-detail-list li {
  font-size: 13px;
  color: var(--text-light-muted);
  position: relative;
  padding-left: 18px;
}

.package-detail-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 20px;
  line-height: 0.8;
}

/* ==========================================================================
   14. Contact Invitation & Page Styles
   ========================================================================== */
.contact-invite-section {
  text-align: center;
}
.contact-invite-container {
  max-width: 700px;
  margin: 0 auto;
}
.contact-invite-container .section-desc {
  margin-bottom: 48px;
  line-height: 1.8;
}
.btn-invite {
  padding: 18px 48px;
  gap: 12px;
}
.btn-invite:hover .send-icon {
  transform: translate(4px, -4px);
}

.contact-page-section {
  padding: 180px 0 120px 0;
}

/* ==========================================================================
   15. Bespoke Package Styles (packages.html)
   ========================================================================== */
.package-custom-section {
  text-align: center;
  background-color: var(--bg-dark-accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.package-custom-container {
  max-width: 700px;
  margin: 0 auto;
}
.package-custom-container .section-desc {
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ==========================================================================
   16. Portfolio CTA Styles (index.html)
   ========================================================================== */
.portfolio-more {
  text-align: center;
  margin-top: 60px;
}
.portfolio-more .btn {
  padding: 16px 48px;
}

/* ==========================================================================
   17. Portfolio Contact CTA Styles (portfolio.html)
   ========================================================================== */
.portfolio-contact-section {
  text-align: center;
  background-color: var(--bg-dark-accent);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.portfolio-contact-container {
  max-width: 700px;
  margin: 0 auto;
}
.portfolio-contact-container .section-desc {
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ==========================================================================
   18. Philosophy Page (philosophy.html)
   ========================================================================== */
.philosophy-story-section {
  padding: 120px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.philosophy-story-section:nth-of-type(even) {
  background-color: var(--bg-light-accent);
}

.philosophy-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .philosophy-story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.philosophy-story-text {
  max-width: 520px;
}

.philosophy-story-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-dark);
  margin-bottom: 20px;
}

.philosophy-story-text p {
  font-size: 15px;
  color: var(--text-dark-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.philosophy-story-text p:last-child {
  margin-bottom: 0;
}

.philosophy-story-image {
  position: relative;
  justify-self: center;
}

.philosophy-story-image img {
  width: 420px;
  height: 315px;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(var(--accent-gold-rgb), 0.1);
}

@media (max-width: 576px) {
  .philosophy-story-image img {
    width: 290px;
    height: 220px;
  }
}

/* ==========================================================================
   19. Traditional Form Styling (contact.html)
   ========================================================================== */
.traditional-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 48px;
  box-shadow: var(--shadow-subtle);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .traditional-form {
    padding: 36px 24px;
  }
}

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

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light-muted);
}

.form-label .required-star {
  color: var(--accent-gold);
  margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-light);
  outline: none;
  transition: all var(--transition-fast) ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-style: normal;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(var(--accent-gold-rgb), 0.15);
  color: var(--text-light);
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5a880' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

.form-select option {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 12px;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* Philosophy Page Tenets & Building blocks */
.tenets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.tenet-card {
  background: var(--bg-light-accent);
  padding: 40px;
  border-radius: 1px;
  border: 1px solid rgba(197, 168, 128, 0.15);
  transition: var(--transition-smooth);
}

.tenet-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-subtle);
}

.tenet-card h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.tenet-card p {
  font-size: 14px;
  color: var(--text-dark-muted);
  line-height: 1.7;
}

.build-section {
  padding: 140px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.build-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 60px;
}

.build-card {
  background: rgba(18, 16, 14, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.build-card:hover {
  border-color: rgba(197, 168, 128, 0.3);
  background: rgba(18, 16, 14, 0.6);
  transform: translateY(-3px);
}

.build-card-header h4 {
  font-size: 24px;
  color: var(--accent-gold);
  font-family: var(--font-serif);
  line-height: 1.2;
}

.build-card-header .build-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  display: block;
  margin-bottom: 8px;
}

.build-card p {
  font-size: 15px;
  color: var(--text-light-muted);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .tenets-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .build-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }
}

