/* Layout & Container Utils */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Helper Grid */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Typography Classes */
.text-display {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.text-headline {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}
.text-title {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 600;
}
.text-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--on-surface-variant); }
.text-center { text-align: center; }
.italic { font-style: italic; }

/* Components - Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary-fixed);
  box-shadow: 0 4px 15px rgba(181, 0, 88, 0.2);
}
.btn-primary:hover { box-shadow: 0 8px 25px rgba(181, 0, 88, 0.4); }
.btn-secondary {
  border: var(--ghost-border);
  color: var(--primary);
  background: transparent;
}
.btn-secondary:hover {
  background: var(--surface-container);
  color: var(--primary-dim);
}
.btn-icon {
  font-family: 'Material Symbols Outlined';
  margin-left: 0.5rem;
}

/* Background Accents */
.star-blur {
  filter: blur(80px);
  opacity: 0.2;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Top Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(246, 246, 246, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: padding 0.3s ease, background-color 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(246, 246, 246, 0.95);
  box-shadow: var(--shadow-ambient);
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: padding 0.3s ease;
}
.navbar.scrolled .navbar-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar-logo {
  height: 60px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: height 0.3s ease;
}
.navbar.scrolled .navbar-logo {
  height: 48px;
}
.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
}
.nav-link {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface);
  transition: color 0.3s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* Sections & Utility */
.section {
  padding: 8rem 0;
  position: relative;
}
.bg-surface-low { background-color: var(--surface-container-low); }
.bg-surface-highest { background-color: var(--surface-container-highest); }
.bg-dark {
  background-color: var(--on-surface);
  color: var(--surface);
}

/* Layout Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.w-full { width: 100%; }

/* Video Scroll Scrubbing */
.video-scroll-container {
  position: relative;
  height: 400vh; /* creates scrolling room */
  background: var(--surface);
}
.video-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-lowest);
}
#scrub-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: grayscale(20%) contrast(110%);
}
.video-overlay {
  position: absolute;
  z-index: 10;
  text-align: center;
  color: var(--on-surface);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-ambient);
  max-width: 900px;
}

/* Glass Module Card */
.glass-module {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-ambient);
  padding: 2.5rem;
}

/* Cards (Tonal Layering Rule) */
.layered-card {
  background-color: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.layered-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.layered-card:hover .card-image-wrap img {
  transform: scale(1.05);
}
.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Accent Card (Dark/Primary) */
.accent-card {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.accent-card .bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: overlay;
  transition: opacity 0.5s ease;
}
.accent-card:hover .bg-img {
  opacity: 0.4;
}

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(12, 1fr); }
  .bento-item-large { grid-column: span 8; }
  .bento-item-small { grid-column: span 4; }
  .bento-item-medium-1 { grid-column: span 5; }
  .bento-item-medium-2 { grid-column: span 7; }
}

/* Gallery Slider */
.gallery-slider {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding-bottom: 2rem;
  scrollbar-width: none;
}
.gallery-slider::-webkit-scrollbar { display: none; }
.gallery-slide {
  min-width: 300px;
  height: 400px;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
}
@media (min-width: 768px) {
  .gallery-slide { min-width: 400px; height: 500px; }
  .gallery-slide.wide { min-width: 600px; }
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gallery-slide:hover img { transform: scale(1.05); }

/* Forms */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}
.form-input {
  width: 100%;
  background-color: var(--surface-container);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1.5rem 1rem 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--on-surface);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: border-bottom-color 0.3s ease, background-color 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
  background-color: var(--surface-container-highest);
}
.form-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--on-surface-variant);
  transition: all 0.3s ease;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 0.25rem;
  font-size: 0.65rem;
  color: var(--primary);
}
textarea.form-input { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  background-color: var(--surface-container-low);
  padding: 4rem 0;
  margin-top: 4rem;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  transition: color 0.3s ease;
}
.footer-link:hover { color: var(--primary); }
