/* ==========================================================================
   Craig Hosking & Hosking Aviation - Premium Styling Sheet (Pure Vanilla CSS)
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Brand CSS Design Tokens --- */
:root {
  --bg-obsidian: #050608;
  --bg-charcoal: #0c0e12;
  --bg-glass: rgba(12, 14, 18, 0.65);
  --bg-glass-heavy: rgba(8, 10, 12, 0.9);
  
  --gold-primary: #ffd700;
  --gold-dark: #b8860b;
  --gold-warm: #d4af37;
  --amber-soft: #ffb700;
  --amber-glow: rgba(255, 183, 0, 0.3);
  
  --text-main: #f0f2f5;
  --text-muted: #9ea4b0;
  --text-light: #ffffff;
  
  --border-gold: rgba(212, 175, 55, 0.15);
  --border-gold-hover: rgba(255, 215, 0, 0.4);
  --border-glass: rgba(255, 255, 255, 0.04);
  
  --glow-subtle: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glow-gold: 0 0 20px rgba(255, 215, 0, 0.15);
  --glow-gold-heavy: 0 0 35px rgba(255, 215, 0, 0.3);
  
  --font-sans: 'Outfit', 'Inter', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  line-height: 1.6;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* --- Layout Elements & Globals --- */
section {
  padding: 8rem 2rem;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-light);
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 4px;
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-title span {
  font-weight: 300;
  font-style: italic;
  color: var(--gold-warm);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Button Styling --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-warm) 0%, var(--gold-primary) 100%);
  color: var(--bg-obsidian);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-heavy);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-light);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  color: var(--gold-primary);
}

/* --- Navigation Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(15px);
  border-color: var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  padding: 1rem 2rem;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--text-light);
  text-transform: uppercase;
}

.logo-main span {
  font-weight: 700;
  color: var(--gold-primary);
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: var(--transition-smooth);
  box-shadow: var(--glow-gold);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background-color: #030406;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/homeHero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: slowZoom 25s infinite alternate ease-in-out;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 8, 0.4) 0%,
    rgba(5, 6, 8, 0.85) 75%,
    var(--bg-obsidian) 100%
  ),
  linear-gradient(
    to right,
    rgba(5, 6, 8, 0.9) 0%,
    rgba(5, 6, 8, 0.2) 50%,
    rgba(5, 6, 8, 0.9) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  margin-top: 4rem;
}

.hero-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 5px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease forwards;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 5.5rem;
  line-height: 1.05;
  color: var(--text-light);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1.2s ease forwards;
}

.hero-title span {
  font-weight: 800;
  color: var(--text-light);
  background: linear-gradient(180deg, #ffffff 40%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitles {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  animation: fadeInUp 1.4s ease forwards;
}

.hero-subtitles span:not(:last-child)::after {
  content: '|';
  margin-left: 1.5rem;
  color: var(--gold-dark);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInUp 1.6s ease forwards;
}

/* --- Services Section --- */
#services {
  background-color: var(--bg-obsidian);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 3.5rem 2.5rem;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-subtle);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrapper {
  margin-bottom: 2rem;
  color: var(--gold-primary);
}

.service-icon-wrapper svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Camera Fleet Section --- */
#fleet {
  background-color: var(--bg-charcoal);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.fleet-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--glow-subtle);
}

.fleet-visual img,
.fleet-visual video {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.fleet-visual:hover img,
.fleet-visual:hover video {
  transform: scale(1.03);
}

.fleet-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(12, 14, 18, 0.9) 0%, rgba(12, 14, 18, 0.1) 70%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.fleet-visual-info h4 {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.fleet-visual-info p {
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.fleet-content h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.fleet-content h3 span {
  font-style: italic;
  color: var(--gold-warm);
}

.fleet-content > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.spec-item svg {
  color: var(--gold-primary);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.spec-text h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.spec-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Toggle Fleet Platform Buttons */
.fleet-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 0.35rem;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.fleet-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.fleet-tab-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.fleet-tab-btn:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.03);
}

.fleet-tab-btn.active {
  color: var(--bg-obsidian);
  background: linear-gradient(135deg, var(--gold-warm) 0%, var(--gold-primary) 100%);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25), var(--glow-gold);
}

/* --- "Double Take" Interactive Widget --- */
#double-take {
  background-color: var(--bg-obsidian);
}

.double-take-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.flight-panel {
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--glow-subtle);
  position: relative;
  overflow: hidden;
}

.flight-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border-glass) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.15;
  pointer-events: none;
}

/* The Plane Visual Box */
.plane-viewport {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.plane-container {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 320 / 190;
  position: relative;
  transition: var(--transition-bounce);
  transform-style: preserve-3d;
}

.plane-blueprint {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-bounce);
}

/* Inversion active class */
.plane-viewport.is-inverted .plane-container {
  transform: rotate(180deg);
}

.plane-viewport.is-inverted .plane-blueprint {
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.25));
}

.flight-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-dial {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 1.25rem 0.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-dial:hover {
  background: rgba(212, 175, 55, 0.02);
  border-color: var(--border-gold);
}

.dial-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.dial-value {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
  transition: var(--transition-smooth);
}

/* Telemetry warning lights */
.telemetry-lights {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.light-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.light-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2e3035;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.light-indicator.active .light-dot.green {
  background-color: #00ff66;
  box-shadow: 0 0 10px #00ff66;
}

.light-indicator.active .light-dot.amber {
  background-color: #ff9900;
  box-shadow: 0 0 10px #ff9900;
}

/* Master Toggle Button */
.flight-control-wrapper {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.flight-toggle-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--gold-dark);
  color: var(--gold-primary);
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--glow-gold);
}

.flight-toggle-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  box-shadow: var(--glow-gold-heavy);
  transform: scale(1.05);
}

.flight-toggle-btn.inverted-active {
  background: #ff3300;
  border-color: #ff3300;
  color: white;
  box-shadow: 0 0 25px rgba(255, 51, 0, 0.4);
}

.flight-toggle-btn.inverted-active:hover {
  filter: brightness(1.1);
}

/* Blueprint text description */
.double-take-details h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.double-take-details h3 span {
  font-style: italic;
  color: var(--gold-warm);
}

.double-take-details .description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.award-badge {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2rem;
  align-items: center;
}

.award-icon svg {
  color: var(--gold-primary);
  width: 50px;
  height: 50px;
}

.award-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.award-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Filmography Grid Section --- */
#portfolio {
  background-color: var(--bg-charcoal);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
}

.portfolio-card {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 320px;
  box-shadow: var(--glow-subtle);
  cursor: default;
}

/* Dynamic backdrop generator overlay */
.portfolio-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(0%) brightness(75%);
  z-index: 1;
}

.portfolio-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(5, 6, 8, 0.95) 0%, rgba(5, 6, 8, 0.45) 60%, transparent 100%);
  z-index: 2;
}

.portfolio-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.15rem 1rem;
  z-index: 3;
}

.movie-title {
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.movie-credit {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.movie-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  opacity: 1;
  margin-top: 0.25rem;
}

/* --- Biography & Awards Section --- */
#bio {
  background-color: var(--bg-obsidian);
}

.bio-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.bio-portrait {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--glow-subtle);
  background: var(--bg-glass-heavy);
  padding: 0.5rem;
  transition: var(--transition-smooth);
}

.bio-portrait:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
}

.bio-img-frame {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
}

.bio-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.bio-portrait:hover .bio-profile-img {
  transform: scale(1.03);
}

.bio-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.bio-text p.lead-paragraph {
  font-size: 1.2rem;
  color: var(--text-light);
  font-family: var(--font-serif);
  line-height: 1.6;
}

.bio-text p.lead-paragraph span {
  color: var(--gold-primary);
}

.bio-achievements {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.accolade-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition-smooth);
}

.accolade-card:hover {
  transform: translateX(5px);
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
}

.accolade-icon svg {
  color: var(--gold-primary);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.accolade-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.accolade-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Contact & Booking Section --- */
#contact {
  background-color: var(--bg-charcoal);
  border-top: 1px solid var(--border-glass);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-info h3 span {
  font-style: italic;
  color: var(--gold-warm);
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.contact-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.contact-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.contact-text h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}

.contact-text p {
  font-size: 1rem;
  color: var(--text-light);
}

.contact-text a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-text a:hover {
  color: var(--gold-primary);
}

.contact-wrapper.contact-direct-layout {
  display: block;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contact-direct-layout .contact-info > p {
  max-width: 640px;
  margin: 0 auto 2.75rem auto;
}

.contact-details.contact-direct-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.contact-direct-cards .contact-item {
  background: rgba(12, 14, 20, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--glow-subtle);
  transition: var(--transition-smooth);
}

.contact-direct-cards .contact-item:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
  transform: translateY(-3px);
}

.contact-phone-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-primary) !important;
  letter-spacing: 1px;
}

@media (max-width: 860px) {
  .contact-details.contact-direct-cards {
    grid-template-columns: 1fr;
  }
}

.contact-form-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 3.5rem;
  box-shadow: var(--glow-subtle);
  position: relative;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50px;
  right: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  pointer-events: none;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 2px;
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-submit-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--gold-warm) 0%, var(--gold-primary) 100%);
  color: var(--bg-obsidian);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-heavy);
  filter: brightness(1.1);
}

/* Spinner element */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--bg-obsidian);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status Notifications */
.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success {
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.3);
  color: #00ff66;
  display: block;
}

.form-status.error {
  background: rgba(255, 51, 0, 0.08);
  border: 1px solid rgba(255, 51, 0, 0.3);
  color: #ff3300;
  display: block;
}

/* --- Footer Section --- */
footer {
  background-color: var(--bg-obsidian);
  border-top: 1px solid var(--border-glass);
  padding: 5rem 2rem 3rem 2rem;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto 4rem auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .logo {
  margin-bottom: 1.5rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--gold-primary);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-link {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

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

/* --- Animations Keyframes --- */
@keyframes slowZoom {
  0% { transform: scale(1.02) translateY(0); }
  100% { transform: scale(1.08) translateY(-1%); }
}

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

/* Volcanic Survival Feature Card */
.volcano-survival-card {
  margin-top: 5rem;
  background: var(--bg-glass-heavy);
  border: 1px solid rgba(255, 69, 0, 0.15);
  border-radius: 12px;
  padding: 3.5rem;
  box-shadow: 0 0 30px rgba(255, 69, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Fleet Logistics Card */
.logistics-callout-card {
  margin-top: 5rem;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--glow-subtle);
  transition: var(--transition-smooth);
}

.logistics-callout-card:hover {
  border-color: var(--border-gold-hover);
  box-shadow: var(--glow-gold);
}

.logistics-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}

.logistics-visual {
  position: relative;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  border-right: 1px solid var(--border-glass);
}

.logistics-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.logistics-callout-card:hover .logistics-img {
  transform: scale(1.03);
}

.logistics-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.logistics-text {
  padding: 3.5rem;
}

.logistics-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 3px;
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

.logistics-text h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.logistics-text h3 span {
  font-style: italic;
  color: var(--gold-warm);
}

.logistics-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.logistics-features {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}

.log-feat-item {
  display: flex;
  flex-direction: column;
}

.feat-num {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.feat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Behind the Scenes Section --- */
#bts {
  background-color: var(--bg-obsidian);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.bts-gallery-wrapper {
  position: relative;
  width: 100%;
}

.bts-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.bts-card {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  cursor: default;
  background: var(--bg-charcoal);
  box-shadow: var(--glow-subtle);
}

.bts-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bts-card-overlay {
  display: none !important;
}

.bts-card-tag {
  font-size: 0.65rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.bts-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.bts-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide navigation arrows on desktop grid layout */
.bts-nav-arrows {
  display: none;
}

/* --- Fullscreen Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--text-muted);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-gold-hover);
  transform: rotate(90deg);
}

.lightbox-content {
  position: relative;
  max-width: 1200px;
  width: 92%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

#lightbox-main-img,
#lightbox-main-video {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--glow-gold-heavy);
  object-fit: contain;
  display: block;
  background: #000;
}

/* Fullscreen Video Mode inside Lightbox */
.lightbox-modal.video-mode {
  background: #000;
}

.lightbox-modal.video-mode .lightbox-content {
  width: 100vw;
  height: 100vh;
  max-width: none;
  gap: 0;
  justify-content: center;
}

.lightbox-modal.video-mode #lightbox-main-video {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.lightbox-modal.video-mode .lightbox-caption {
  position: fixed;
  top: 20px;
  left: 24px;
  width: auto;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  z-index: 2600;
}

.lightbox-modal.video-mode .lightbox-tag,
.lightbox-modal.video-mode .lightbox-title,
.lightbox-modal.video-mode .lightbox-desc {
  display: none;
}

.lightbox-modal.video-mode #lightbox-video-action {
  margin-top: 0 !important;
}

.lightbox-modal.video-mode .boeing-inline-video-link {
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(10px);
}

.lightbox-modal.video-mode .lightbox-close {
  top: 20px;
  right: 24px;
  z-index: 2600;
  background: rgba(15, 18, 24, 0.75);
  border-color: var(--border-gold);
  color: var(--text-light);
}

.boeing-inline-video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.45);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.boeing-inline-video-link:hover {
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  box-shadow: var(--glow-gold);
}

.ig-play-paired-video-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.ig-video-container .ig-play-paired-video-btn {
  top: 14px;
  left: 14px;
  bottom: auto;
}

@media (max-width: 768px) {
  .ig-play-paired-video-btn {
    bottom: 10px;
    left: 10px;
  }
  .ig-video-container .ig-play-paired-video-btn {
    top: 10px;
    left: 10px;
    bottom: auto;
  }
}

.lightbox-caption {
  width: 100%;
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--glow-subtle);
}

.lightbox-tag {
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.lightbox-title {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.lightbox-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
  position: absolute;
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 2rem;
}

.lightbox-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(12, 14, 18, 0.75);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.lightbox-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.lightbox-arrow:hover {
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.05);
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
}

.lightbox-arrow.prev {
  transform: translateX(-10px);
}
.lightbox-arrow.next {
  transform: translateX(10px);
}
.lightbox-arrow.prev:hover {
  transform: translateX(-15px) scale(1.05);
}
.lightbox-arrow.next:hover {
  transform: translateX(15px) scale(1.05);
}

/* --- Responsive Adaptations (Media Queries) --- */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 1.5rem 2rem 1.5rem;
    margin: 0 -1.5rem;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
  }
  .services-grid::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
  }
  .service-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    padding: 2.5rem 2rem;
  }
  .volcano-survival-card {
    padding: 2.5rem;
  }
  .fleet-grid, .double-take-wrapper, .bio-grid, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .volcano-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .volcano-stats-panel {
    border-left: none !important;
    border-top: 2px solid #ff3300 !important;
    border-radius: 0 0 8px 8px !important;
  }
  .fleet-content, .double-take-details, .contact-info {
    order: -1;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Double Take Telemetry Tablet Optimizations */
  .flight-panel {
    padding: 2rem;
  }
  .flight-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Logistics Advantage Tablet Optimizations */
  .logistics-grid {
    grid-template-columns: 1fr;
  }
  .logistics-visual {
    min-height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
  .logistics-text {
    padding: 2.5rem;
  }
  .logistics-features {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Behind the Scenes Tablet Carousel Overrides */
  .bts-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 1.5rem 2rem 1.5rem;
    margin: 0 -1.5rem;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
  }
  .bts-carousel::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
  }
  .bts-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    background: var(--bg-glass-heavy);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    overflow: hidden;
  }
  .bts-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
  .bts-card-overlay {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    background: transparent;
    padding: 1.25rem;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  /* Show high-visibility navigation arrows for swipe/scroll */
  .bts-nav-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
  }
  .bts-scroll-hint {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    opacity: 0.85;
  }
  .bts-arrow-btn {
    height: 46px;
    padding: 0 1.15rem;
    border-radius: 999px;
    background: rgba(14, 17, 24, 0.92);
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-primary);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 215, 0, 0.2);
    transition: var(--transition-smooth);
  }
  .bts-arrow-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
  }
  .bts-arrow-btn:hover {
    color: var(--bg-obsidian);
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    box-shadow: var(--glow-gold-heavy);
    transform: translateY(-2px);
  }
  
  .lightbox-nav {
    padding: 0 1rem;
    width: 100%;
  }
  .lightbox-arrow {
    width: 48px;
    height: 48px;
    background: rgba(12, 14, 20, 0.9);
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75), 0 0 14px rgba(255, 215, 0, 0.25);
  }
}

@media (max-width: 768px) {
  section {
    padding: 5rem 1.5rem;
  }
  
  /* Mobile Navigation Menu Drawer */
  .nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
    padding: 5rem 2rem 1.5rem 2rem;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: 3px;
    padding: 0.35rem 1rem;
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-link::after {
    display: none; /* Hide bottom line on mobile links to keep it minimal and elegant */
  }

  .nav-link.active, .nav-link:hover {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
  }

  /* Hamburger Interactive Animation States */
  .nav-toggle {
    display: flex;
    z-index: 1001; /* Keep above the drawer background */
    position: relative;
  }

  #site-logo {
    z-index: 1001;
    position: relative;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitles {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }
  
  .hero-subtitles span:not(:last-child)::after {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
  
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Double Take Telemetry Mobile-First Optimizations */
  .flight-panel {
    padding: 1.25rem;
  }
  .plane-viewport {
    height: 220px;
    margin-bottom: 1.5rem;
  }
  .plane-container {
    max-width: 220px;
  }
  .flight-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .stat-dial {
    padding: 1rem 0.25rem;
  }
  .dial-value {
    font-size: 1.2rem;
  }
  .telemetry-lights {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
  }
  .flight-control-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }
  .flight-toggle-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-align: center;
  }

  /* Mobile Stunt Services Swipe Carousel */
  .service-card {
    flex: 0 0 85%;
    padding: 2.25rem 1.5rem;
  }
  .volcano-survival-card {
    padding: 1.5rem;
  }

  /* Logistics Advantage Mobile Optimizations */
  .logistics-text {
    padding: 1.5rem;
  }
  .logistics-text h3 {
    font-size: 1.8rem;
  }
  .logistics-features {
    flex-direction: column;
    gap: 1.25rem;
  }

  /* Behind the Scenes Mobile Swiper Overrides */
  .bts-card {
    flex: 0 0 85%;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 1.8rem;
  }
  .lightbox-arrow {
    display: none; /* Hide arrows on mobile screens to rely purely on swipe/gestures */
  }
  .lightbox-title {
    font-size: 1.2rem;
  }
  .lightbox-desc {
    font-size: 0.8rem;
  }
}

/* Custom Interactive Link Hover States */
.text-link-hover {
  position: relative;
  transition: var(--transition-smooth);
}

.text-link-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: var(--transition-smooth);
}

.text-link-hover:hover::after {
  width: 100%;
}

.text-link-hover:hover {
  filter: brightness(1.2) drop-shadow(0 0 4px currentColor);
}

/* ==========================================================================
   HOLLYWOOD PRODUCTION CINEMA STAGE, FLOATING WINDOWS & PARALLAX ENGINE
   ========================================================================== */

/* Ambient Parallax Atmospheric Orbs */
.cinema-ambient-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.16;
  will-change: transform;
}

.orb-gold {
  width: 520px;
  height: 520px;
  top: 12%;
  right: -120px;
  background: radial-gradient(circle, var(--gold-primary), transparent 70%);
}

.orb-blue {
  width: 600px;
  height: 600px;
  top: 48%;
  left: -180px;
  background: radial-gradient(circle, #1e5bff, transparent 70%);
  opacity: 0.11;
}

.orb-amber {
  width: 480px;
  height: 480px;
  bottom: 8%;
  right: 10%;
  background: radial-gradient(circle, var(--amber-soft), transparent 70%);
  opacity: 0.12;
}

/* Compact Nav Gap for 9 Links */
.nav-menu {
  gap: 1.75rem;
}

/* --- Director's Viewfinder HUD in Hero --- */
#home {
  min-height: 100vh;
  height: auto;
  padding: 8.5rem 2rem 5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewfinder-hud {
  position: absolute;
  inset: 5.8rem 2.2rem 2.2rem 2.2rem;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vf-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 215, 0, 0.45);
  border-style: solid;
}

.vf-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.vf-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.vf-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.vf-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.vf-top-bar,
.vf-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.25rem;
  font-family: monospace;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(240, 242, 245, 0.7);
  text-transform: uppercase;
}

.vf-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff3b30;
  font-weight: 700;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 10px #ff3b30;
  animation: recBlink 1.3s infinite ease-in-out;
}

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

/* --- Hero Split Stage Layout --- */
.hero-stage-container {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
}

#home .hero-content {
  text-align: left;
  margin-top: 0;
  padding: 1rem 0;
  max-width: 660px;
}

#home .hero-title {
  font-size: 4.6rem;
  letter-spacing: 5px;
  margin-bottom: 1.25rem;
}

#home .hero-subtitles {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

#home .hero-subtitles span:not(:last-child)::after {
  margin-left: 1rem;
}

.hero-lead {
  color: rgba(240, 242, 245, 0.85);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 2.4rem;
  max-width: 580px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

#home .hero-actions {
  justify-content: flex-start;
}

/* --- Floating Windows System (Mac/Cinema Monitor Aesthetic) --- */
.floating-window {
  position: relative;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(255, 215, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  transform-style: preserve-3d;
  will-change: transform;
}

.floating-window:hover {
  border-color: var(--gold-primary);
  box-shadow:
    0 32px 75px rgba(0, 0, 0, 0.88),
    0 0 45px rgba(255, 215, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, rgba(18, 22, 30, 0.95), rgba(10, 12, 16, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.window-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.window-title {
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-live-pill {
  background: rgba(255, 59, 48, 0.16);
  color: #ff5f56;
  border: 1px solid rgba(255, 59, 48, 0.45);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  flex-shrink: 0;
}

.window-spec-tag {
  color: var(--gold-primary);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.window-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #030406;
}

.window-media img,
.window-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-window:hover .window-media img {
  transform: scale(1.035);
}

/* Hero Floating Multi-Window Cluster */
.hero-floating-cluster {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-main {
  width: 92%;
  z-index: 2;
  animation: gentleFloat 7s ease-in-out infinite;
}

.hero-float-main .window-media {
  aspect-ratio: 16 / 10;
}

.hero-float-sub {
  position: absolute;
  bottom: -24px;
  left: -18px;
  width: 56%;
  z-index: 4;
  border-color: rgba(255, 215, 0, 0.5);
  animation: gentleFloatReverse 6s ease-in-out infinite;
}

.hero-float-sub .window-media {
  aspect-ratio: 16 / 9;
}

.floating-hud-badge {
  position: absolute;
  top: -18px;
  right: -10px;
  z-index: 5;
  background: rgba(8, 10, 14, 0.88);
  border: 1px solid var(--gold-primary);
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--glow-gold-heavy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-badge-num {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

.hud-badge-text {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-light);
  max-width: 135px;
  line-height: 1.3;
}

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

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

/* ==========================================================================
   FEATURED AERIAL CINEMATOGRAPHY SECTION (#cinematography)
   ========================================================================== */
.cinema-showcase-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-obsidian) 0%, #07090e 50%, var(--bg-obsidian) 100%);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.cinema-floating-deck {
  display: flex;
  flex-direction: column;
  gap: 7.5rem;
}

.cinema-stage-item {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

.cinema-stage-item.stage-reverse {
  grid-template-columns: 0.75fr 1.25fr;
}

.cinema-stage-item.stage-reverse .cinema-window-group {
  order: 2;
}

.cinema-stage-item.stage-reverse .cinema-slate-card {
  order: 1;
}

.cinema-window-group {
  position: relative;
}

.cinema-main-window .window-media {
  aspect-ratio: 16 / 10;
}

/* Viewfinder Crosshair & Guides inside Cinema Windows */
.cinema-frame-guides {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.guide-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.guide-crosshair::before,
.guide-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 215, 0, 0.45);
}

.guide-crosshair::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.guide-crosshair::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
}

.window-expand-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(8, 10, 14, 0.85);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.window-expand-btn svg {
  width: 14px;
  height: 14px;
}

.window-expand-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  box-shadow: var(--glow-gold);
}

/* Picture-in-Picture Zoomed Cockpit Monitor Window */
.cinema-pip-window {
  position: absolute;
  bottom: -28px;
  right: -24px;
  width: 260px;
  z-index: 5;
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.2);
}

.pip-crop-Simulation {
  width: 100%;
  height: 135px;
  overflow: hidden;
  position: relative;
}

/* Zoom directly into the cockpit HD monitor on the right side of 01.jpeg */
.pip-crop-Simulation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 86% 42%;
  transform: scale(2.4);
  transform-origin: 84% 42%;
}

.pip-telemetry {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--gold-primary);
  background: rgba(5, 6, 8, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Floating Telemetry Overlay Cards on Video Stages */
.floating-telemetry-card {
  position: absolute;
  bottom: -24px;
  z-index: 5;
  background: rgba(8, 10, 15, 0.88);
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), var(--glow-gold);
  min-width: 245px;
}

.floating-telemetry-card.tele-left {
  left: -22px;
}

.floating-telemetry-card.tele-right {
  right: -22px;
}

.tele-row {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tele-row:last-child {
  border-bottom: none;
}

.tele-key {
  color: var(--text-muted);
}

.tele-val {
  color: var(--gold-primary);
  font-weight: 700;
}

/* Floating Video Controls Bar inside Video Windows */
.cinema-video-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 8, 12, 0.82);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.vc-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.vc-btn:hover,
.vc-btn.active-audio {
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  border-color: var(--gold-primary);
  box-shadow: var(--glow-gold);
}

/* Floating Production Slate Card */
.cinema-slate-card {
  background: linear-gradient(145deg, rgba(16, 19, 26, 0.78), rgba(8, 10, 14, 0.9));
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 2.6rem 2.4rem;
  backdrop-filter: blur(18px);
  box-shadow: var(--glow-subtle);
  position: relative;
}

.slate-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.slate-num {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg-obsidian);
  background: var(--gold-primary);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 1px;
}

.slate-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-primary);
  font-weight: 600;
}

.cinema-slate-card h3 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.cinema-slate-card h3 span {
  font-style: italic;
  color: var(--gold-warm);
  font-weight: 400;
}

.cinema-slate-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.slate-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.meta-lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.meta-val {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 600;
}

/* --- Fullscreen Video Modal --- */
.video-theater-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-theater-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.theater-close-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2600;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 18, 24, 0.75);
  border: 1px solid var(--border-gold);
  color: var(--text-light);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theater-close-btn:hover {
  background: var(--gold-primary);
  color: var(--bg-obsidian);
}

.theater-stage {
  width: 100vw;
  height: 100vh;
  max-width: none;
}

.theater-video-frame {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater-video-frame video {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  object-fit: contain;
  display: block;
}

/* --- Scroll-Reveal Motion Choreography --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* --- Responsive Breakpoints for Hero & Floating Cinema Stage --- */
@media (max-width: 1080px) {
  .hero-stage-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  #home .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  #home .hero-subtitles,
  #home .hero-actions {
    justify-content: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cinema-stage-item,
  .cinema-stage-item.stage-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cinema-stage-item.stage-reverse .cinema-window-group {
    order: 1;
  }

  .cinema-stage-item.stage-reverse .cinema-slate-card {
    order: 2;
  }
}

@media (max-width: 768px) {
  #home {
    padding: 6.5rem 1.25rem 3.5rem;
  }

  .viewfinder-hud {
    display: none;
  }

  #home .hero-title {
    font-size: 2.8rem;
  }

  .hero-floating-cluster {
    min-height: auto;
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-float-main,
  .hero-float-sub {
    position: relative;
    width: 100%;
    left: auto;
    bottom: auto;
  }

  .floating-hud-badge {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    justify-content: center;
  }

  .cinema-floating-deck {
    gap: 4.5rem;
  }

  .cinema-pip-window {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .floating-telemetry-card,
  .floating-telemetry-card.tele-left,
  .floating-telemetry-card.tele-right {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .cinema-video-controls {
    width: calc(100% - 1.5rem);
    justify-content: center;
    bottom: 10px;
    padding: 0.3rem 0.4rem;
  }

  .vc-btn {
    font-size: 0.6rem;
    padding: 0.32rem 0.6rem;
  }

  .cinema-slate-card {
    padding: 1.75rem 1.4rem;
  }

  .cinema-slate-card h3 {
    font-size: 1.65rem;
  }

  .slate-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INSTAGRAM STUDIO FEED & AUTO-PLAYING REELS EXPERIENCE (.ig-feed-body)
   ========================================================================== */

.ig-top-header {
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-right-Utilities {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.version-switch-pill {
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.version-switch-pill:hover {
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  box-shadow: var(--glow-gold);
}

/* --- Instagram Studio Profile Hero (#home.ig-profile-hero) --- */
#home.ig-profile-hero {
  min-height: auto !important;
  height: auto !important;
  padding: 1.75rem 1.5rem 1.25rem !important;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.1) 0%, var(--bg-obsidian) 70%);
  display: block !important;
}

.ig-container {
  max-width: 1140px;
  margin: 0 auto;
}

.ig-profile-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.4rem;
  align-items: center;
  background: rgba(12, 14, 20, 0.75);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 2rem 2.4rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--glow-subtle);
  margin-bottom: 1.4rem;
}

.ig-avatar-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ig-story-ring {
  width: 128px;
  height: 128px;
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(135deg, #ffd700 0%, #ff6b00 50%, #d4af37 100%);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.3);
}

.ig-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  border: 4px solid var(--bg-obsidian);
}

.ig-handle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-bottom: 1.15rem;
}

.ig-studio-name {
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.ig-studio-name span {
  font-weight: 700;
  color: var(--gold-primary);
}

.ig-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.ig-verified-badge svg {
  width: 14px;
  height: 14px;
}

.ig-profile-actions {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
}

.ig-btn-compact {
  padding: 0.6rem 1.3rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

.ig-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ig-stat {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.ig-stat strong {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 0.25rem;
}

.ig-bio-headline {
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.ig-bio-details {
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* --- Story Highlights Multi-Row Grid (Zero Horizontal Scroll) --- */
.ig-stories-wrapper {
  width: 100%;
  margin-bottom: 0.75rem;
}

.ig-stories-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 1.15rem 0.85rem;
  justify-items: center;
  align-items: start;
  overflow: visible;
  padding: 0.75rem 0.25rem 1.25rem;
  width: 100%;
}

.ig-stories-scroll-btn {
  display: none !important;
}

.ig-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-main);
  width: 100%;
  text-align: center;
  transition: transform 0.25s ease;
}

.ig-story-item:hover {
  transform: translateY(-3px);
}

.story-thumb-ring {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--gold-primary), #ff7b00, var(--gold-dark));
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ig-story-item:hover .story-thumb-ring,
.ig-story-item.active .story-thumb-ring {
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
}

.story-thumb-ring img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 2.5px solid var(--bg-obsidian);
  display: block;
}

.ig-story-item span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-story-item:hover span {
  color: var(--gold-primary);
}

/* --- Feed Filter Tabs --- */
.ig-feed-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.ig-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.ig-tab-btn.active,
.ig-tab-btn:hover {
  color: var(--gold-primary);
  border-color: rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.07);
}

/* --- Main Two-Column Feed Layout --- */
.ig-main-feed-section {
  padding: 2rem 1.5rem 6rem;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

.ig-layout-grid {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(0, 360px);
  gap: 2.5rem;
  align-items: start;
}

.ig-feed-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* --- Individual Instagram Feed Post Card --- */
.ig-post-card {
  background: rgba(11, 13, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.ig-post-card.is-playing-reel,
.ig-post-card:hover {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 215, 0, 0.12);
}

.ig-post-header {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  background: transparent;
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.ig-post-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.ig-post-author > div {
  min-width: 0;
  flex: 1;
}

.ig-mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  flex-shrink: 0;
}

.ig-author-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-v-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ig-post-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-post-badge {
  font-family: monospace;
  font-size: 0.66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Post Media Viewport --- */
.ig-post-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #020305;
  overflow: hidden;
  cursor: pointer;
}

.ig-main-media,
.ig-feed-video {
  width: 100%;
  max-width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.ig-main-media.academy-certificate-img {
  max-height: 680px;
  object-fit: contain;
  background: radial-gradient(circle at center, #181612 0%, #050608 100%);
  margin: 0 auto;
}

/* Picture-in-Picture Monitor Box on Image 01 */
.ig-pip-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 210px;
  background: rgba(6, 8, 12, 0.92);
  border: 1px solid var(--gold-primary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
}

.ig-pip-tag {
  font-family: monospace;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--gold-primary);
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.8);
}

.ig-pip-crop {
  width: 100%;
  height: 105px;
  overflow: hidden;
}

.ig-pip-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 86% 42%;
  transform: scale(2.4);
  transform-origin: 84% 42%;
}

.ig-video-status-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: monospace;
  font-size: 0.64rem;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.78);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.35);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.ig-video-overlay-controls {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 6;
  background: #07090e;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.85rem;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.vc-seek-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
  padding: 0 0.25rem;
  position: relative;
  z-index: 7;
}

.vc-seek-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--gold-primary) 0%,
    var(--gold-primary) var(--seek-pct, 0%),
    rgba(255, 255, 255, 0.25) var(--seek-pct, 0%),
    rgba(255, 255, 255, 0.25) 100%
  );
  outline: none;
  cursor: pointer;
  touch-action: none;
  pointer-events: auto;
  margin: 6px 0;
}

.vc-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 2px solid #06080c;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
  cursor: grab;
  transition: transform 0.12s ease;
}

.vc-seek-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.2);
}

.vc-seek-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 2px solid #06080c;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
  cursor: grab;
  transition: transform 0.12s ease;
}

.vc-seek-slider:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.2);
}

.vc-time-label {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.ig-media-btn {
  background: rgba(6, 8, 12, 0.85);
  color: var(--text-light);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.ig-expand-photo-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.ig-media-btn:hover,
.ig-media-btn.active-audio {
  background: var(--gold-primary);
  color: var(--bg-obsidian);
  border-color: var(--gold-primary);
}

/* --- Post Action Bar & Caption --- */
.ig-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem 0.5rem;
  min-width: 0;
}

.ig-action-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}

.ig-icon-btn {
  background: none;
  border: none;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.ig-icon-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ig-icon-btn.like-btn.active {
  color: #ff3b30;
}

.ig-icon-btn:hover {
  transform: scale(1.06);
  color: var(--gold-primary);
}

.ig-telemetry-pill {
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-post-caption {
  padding: 0.95rem 1.35rem 1.15rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-main);
  overflow-wrap: break-word;
  word-break: break-word;
}

.ig-post-caption strong {
  color: var(--text-light);
  margin-right: 0.3rem;
}

.ig-hashtags {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--gold-warm);
  overflow-wrap: break-word;
}

/* --- Editorial Text Interlude Cards Inside Feed --- */
.ig-editorial-card {
  background: linear-gradient(155deg, rgba(16, 19, 27, 0.92), rgba(8, 10, 14, 0.96));
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  box-shadow: var(--glow-subtle);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.editorial-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.65rem;
  color: var(--text-light);
}

.editorial-title span {
  font-style: italic;
  color: var(--gold-warm);
}

.editorial-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.ig-services-compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
}

.ig-services-compact .service-card {
  padding: 1.5rem;
  min-width: 0;
  width: 100%;
}

.ig-fleet-embedded {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  width: 100%;
  max-width: 100%;
}

/* --- Living Legends & Dunkirk Editorial Card & Media Strip --- */
#legends-content-panel,
#dunkirk-content-panel {
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#legends-content-title,
#dunkirk-content-title {
  font-size: 1.85rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

#legends-content-desc,
#dunkirk-content-desc {
  min-height: 3.4em;
  line-height: 1.7;
  margin-bottom: 0;
}

#legends-visual-box,
#dunkirk-photo-view {
  height: 500px;
  min-height: 500px;
  max-height: 500px;
  background: #050608;
}

#legends-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: opacity 0.22s ease, transform 0.5s ease;
}

#dunkirk-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.22s ease, transform 0.5s ease;
}

.legends-thumb-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dunkirk-thumb-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legends-thumb-item {
  background: rgba(12, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.legends-thumb-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 6px;
  display: block;
}

.legends-thumb-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.legends-thumb-item:hover,
.legends-thumb-item.active,
.boeing-inline-video-link.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.22);
}

@media (max-width: 640px) {
  #legends-content-panel,
  #dunkirk-content-panel {
    min-height: 8.5rem;
  }
  #legends-content-title,
  #dunkirk-content-title {
    font-size: 1.4rem;
  }
  #legends-content-desc,
  #dunkirk-content-desc {
    min-height: 4.8em;
  }
  .legends-thumb-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .dunkirk-thumb-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #legends-visual-box,
  #dunkirk-photo-view {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }
}

/* --- Right Column Sticky Feed Monitor Sidebar --- */
.ig-sidebar-column {
  position: sticky;
  top: 1.25rem;
  min-width: 0;
  align-self: start;
}

.ig-sticky-widget {
  background: rgba(11, 13, 18, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.15rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--glow-subtle);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: monospace;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.widget-tc {
  color: var(--text-muted);
}

.widget-now-playing {
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.now-playing-lbl {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.widget-now-playing h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-now-playing p {
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-playlist {
  flex: 1 1 auto;
  min-height: 180px;
  overflow-y: auto;
  padding-right: 0.35rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.4) rgba(255, 255, 255, 0.04);
}

.widget-playlist::-webkit-scrollbar {
  width: 5px;
}

.widget-playlist::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.widget-playlist::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.38);
  border-radius: 6px;
}

.widget-playlist::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

.widget-playlist h5 {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(11, 13, 18, 0.96);
  padding: 0.15rem 0 0.55rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.48rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.8rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  margin-bottom: 0.2rem;
}

.playlist-item:hover,
.playlist-item.active {
  background: rgba(255, 215, 0, 0.14);
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--gold-primary);
}

.pl-num {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.pl-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-tag {
  font-family: monospace;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.widget-cta-box {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  flex-shrink: 0;
}

.widget-cta-box p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.widget-classic-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--gold-primary);
  text-decoration: none;
}

.widget-classic-link:hover {
  text-decoration: underline;
}

/* --- Zero-Drift & Mobile-First Responsive Feed Architecture --- */
.ig-feed-body section,
.ig-feed-body header,
.ig-feed-body footer,
.ig-feed-body .container,
.ig-feed-body .ig-container {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1080px) {
  .ig-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .ig-sidebar-column {
    display: none;
  }

  /* Eliminate negative horizontal margins from legacy carousels that cause left/right drift */
  .ig-feed-body .services-grid,
  .ig-feed-body .bts-carousel {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

@media (max-width: 768px) {
  /* Mobile-First Profile Hero (No Top Header Overlap) */
  #home.ig-profile-hero {
    padding: 0.85rem 0.65rem 0.75rem !important;
    overflow-x: clip;
  }

  .ig-profile-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    border-radius: 14px;
  }

  .ig-story-ring {
    width: 88px;
    height: 88px;
    padding: 3px;
  }

  .ig-handle-row {
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .ig-studio-name {
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: 2px;
    width: 100%;
  }

  .ig-verified-badge {
    font-size: 0.62rem;
    padding: 0.2rem 0.55rem;
  }

  .ig-profile-actions {
    margin: 0.25rem auto 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .ig-btn-compact {
    padding: 0.55rem 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .ig-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    text-align: center;
  }

  .ig-stat {
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.38rem 0.35rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .ig-stat strong {
    display: block;
    font-size: 0.95rem;
    margin-right: 0;
    margin-bottom: 0.1rem;
  }

  .ig-bio-headline {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }

  .ig-bio-details {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* Mobile Story Highlights Grid (Zero Horizontal Scroll) */
  .ig-stories-wrapper {
    margin-bottom: 0.4rem;
  }

  .ig-stories-bar {
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    gap: 0.85rem 0.45rem;
    padding: 0.35rem 0.15rem 0.85rem;
    max-width: 100%;
    overflow: visible;
  }

  .story-thumb-ring {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    padding: 2px;
  }

  .story-thumb-ring img {
    border-radius: 6px;
    border-width: 2px;
  }

  .ig-story-item span {
    font-size: 0.62rem;
  }

  /* Mobile Feed Filter Tabs */
  .ig-feed-tabs {
    gap: 0.35rem;
    padding-top: 0.75rem;
    width: 100%;
  }

  .ig-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.3rem;
    font-size: 0.64rem;
    letter-spacing: 0.8px;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .ig-tab-btn svg {
    width: 13px;
    height: 13px;
  }

  /* Mobile Main Feed Stream & Cards */
  .ig-main-feed-section {
    padding: 0.5rem 0.5rem 3.5rem;
  }

  .ig-feed-column {
    gap: 1.35rem;
  }

  .ig-post-card {
    border-radius: 14px;
  }

  .ig-post-header {
    padding: 0.7rem 0.85rem;
    gap: 0.5rem;
  }

  .ig-post-author {
    gap: 0.6rem;
  }

  .ig-mini-avatar {
    width: 34px;
    height: 34px;
  }

  .ig-author-name {
    font-size: 0.82rem;
  }

  .ig-post-location {
    font-size: 0.68rem;
  }

  .ig-main-media,
  .ig-feed-video {
    max-height: 420px;
  }

  .ig-main-media.academy-certificate-img {
    max-height: 540px;
    object-fit: contain;
  }

  .ig-video-overlay-controls {
    gap: 0.3rem;
    padding: 0.45rem 0.55rem;
  }

  .vc-time-label {
    font-size: 0.56rem;
  }

  .ig-media-btn {
    padding: 0.28rem 0.48rem;
    font-size: 0.55rem;
    letter-spacing: 0.6px;
  }

  .ig-expand-photo-btn {
    bottom: 10px;
    right: 10px;
  }

  .ig-post-caption {
    padding: 0.75rem 0.85rem 0.95rem;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .ig-hashtags {
    font-size: 0.75rem;
    margin-top: 0.35rem;
  }

  /* Editorial Cards Inside Feed on Mobile */
  .ig-editorial-card {
    padding: 1.25rem 0.9rem;
    border-radius: 14px;
  }

  .editorial-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .editorial-lead {
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  /* Embedded Services Carousel Inside Editorial Card */
  .ig-services-compact {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .ig-services-compact .service-card {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.15rem 1rem !important;
  }

  /* Embedded Fleet Tabs Inside Editorial Card */
  .ig-editorial-card .fleet-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 12px;
    padding: 0.35rem;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
  }

  .ig-editorial-card .fleet-tab-btn {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.72rem;
    border-radius: 8px;
    text-align: center;
  }

  .ig-editorial-card .fleet-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  /* Lower Sections Mobile Padding & Overflow Prevention */
  .ig-feed-body section {
    padding: 3.5rem 0.85rem;
    overflow-x: clip;
  }

  .ig-feed-body .volcano-card {
    padding: 1.75rem 1rem;
  }

  .ig-feed-body .volcano-badge {
    left: 1rem;
    font-size: 0.6rem;
    padding: 0.35rem 0.8rem;
  }

  .ig-feed-body .bts-card {
    flex: 0 0 84vw;
    max-width: 84vw;
  }
}

/* ==========================================================================
   MOBILE ORIENTATION RULES, ROTATE NOTE & OSCARS DUAL-IMAGE SHOWCASE
   ========================================================================== */

/* Default hidden on desktop and mobile horizontal/landscape */
.mobile-portrait-rotate-note {
  display: none;
}

/* Dual-photo showcase inside Academy of Motion Picture Arts & Sciences — The Oscars post */
.oscars-dual-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  background: #050608;
  padding: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.oscars-dual-media-grid .oscars-media-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.18);
  background: #080a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.oscars-dual-media-grid .oscars-media-item .ig-main-media {
  width: 100%;
  height: 460px;
  max-height: 460px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s ease;
}

.oscars-dual-media-grid .oscars-media-item .ig-main-media.academy-certificate-img {
  object-fit: contain;
  object-position: center center;
  background: #050608;
  padding: 0.35rem;
}

.oscars-dual-media-grid .oscars-media-item:hover .ig-main-media {
  transform: scale(1.02);
}

.oscars-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.38);
  color: var(--gold-primary);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  pointer-events: none;
}

/* Default 5 across on desktop & tablet landscape */
.portfolio-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

/* Mobile Vertical (Portrait) ONLY:
   1. Show the horizontal viewing tip note right before the square story icons
   2. Hide the video playback UI controls (play/pause, +/-10s, scrub bar, mute, fullscreen)
   3. Display Blockbuster Filmography 3 across */
@media (max-width: 768px) and (orientation: portrait) {
  .mobile-portrait-rotate-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.32);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    margin: 0.1rem 0.15rem 0.75rem;
    color: var(--gold-primary);
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.38;
    text-align: left;
  }

  .mobile-portrait-rotate-note svg {
    flex-shrink: 0;
    color: var(--gold-primary);
    transform: rotate(90deg);
  }

  .ig-video-overlay-controls {
    display: none !important;
  }

  .oscars-dual-media-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .oscars-dual-media-grid .oscars-media-item .ig-main-media {
    height: auto;
    max-height: 440px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  .portfolio-card {
    height: 215px !important;
    border-radius: 6px !important;
  }

  .portfolio-card-content {
    padding: 0.55rem 0.45rem !important;
  }

  .movie-credit {
    font-size: 0.44rem !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.2 !important;
  }

  .movie-title {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.18rem !important;
  }

  .movie-desc {
    font-size: 0.54rem !important;
    line-height: 1.22 !important;
    margin-top: 0.15rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .movie-award-badge {
    font-size: 0.44rem !important;
    padding: 0.12rem 0.28rem !important;
    margin-top: 0.25rem !important;
  }
}

/* Mobile Horizontal (Landscape):
   1. Ensure full video playback UI controls (+/-10s, scrub bar, play/pause, mute, fullscreen) are shown
   2. Display Blockbuster Filmography 5 across */
@media (max-width: 932px) and (orientation: landscape) {
  .mobile-portrait-rotate-note {
    display: none !important;
  }

  .ig-video-overlay-controls {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
  }

  .vc-rewind-btn,
  .vc-ff-btn,
  .vc-seek-wrap {
    display: flex !important;
  }

  .portfolio-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.6rem !important;
  }

  .portfolio-card {
    height: 230px !important;
  }

  .portfolio-card-content {
    padding: 0.65rem 0.55rem !important;
  }

  .movie-credit {
    font-size: 0.48rem !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 0.2rem !important;
  }

  .movie-title {
    font-size: 0.8rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.2rem !important;
  }

  .movie-desc {
    font-size: 0.58rem !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .movie-award-badge {
    font-size: 0.48rem !important;
    padding: 0.15rem 0.32rem !important;
    margin-top: 0.25rem !important;
  }
}
