:root {
  --font-display: 'Syne', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --color-black: #060608;
  --color-charcoal-950: #0a0a0d;
  --color-charcoal-900: #101014;
  --color-charcoal-800: #18181f;
  --color-charcoal-700: #24242d;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.22);

  /* Signature Brand Green (Fills, borders, buttons) */
  --color-brand-green: #2A6852;
  --color-brand-green-hover: #347d63;
  --color-brand-green-light: #439b7b;
  --color-brand-green-glow: rgba(42, 104, 82, 0.35);

  /* High-Contrast Mint for Small Text, Eyebrows & Hovers (≥4.5:1 on noir) */
  --color-brand-mint: #4bbf97;
  --color-brand-mint-hover: #67d4b0;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  background-color: var(--color-black);
  color: #f4f4f6;
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--color-black);
  position: relative;
  min-height: 100vh;
}

/* Headings text-wrap balance & lining numbers */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* Fallback anchor scroll offset */
section[id] {
  scroll-margin-top: 110px;
}

/* Universal Keyboard Focus Indicator (Mint outline, 3px offset) */
:focus-visible {
  outline: 1px solid var(--color-brand-mint) !important;
  outline-offset: 3px !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #060608;
}
::-webkit-scrollbar-thumb {
  background: #23232b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-green);
}

/* Editorial typography classes */
.font-display {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.font-mono-tech {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.font-sans-body {
  font-family: var(--font-sans);
}


/* Brand Accent Helpers */
.text-brand-green {
  color: var(--color-brand-green) !important;
}
.bg-brand-green {
  background-color: var(--color-brand-green) !important;
}
.border-brand-green {
  border-color: var(--color-brand-green) !important;
}
.text-brand-mint {
  color: var(--color-brand-mint) !important;
}
.border-brand-mint {
  border-color: var(--color-brand-mint) !important;
}

/* Header Brand Logo: Exactly matches font height of adjacent text for uniform baseline */
.nav-brand-logo {
  height: 1.35rem; /* Matches baseline and text box of text-lg */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nav-brand-logo {
    height: 1.5rem; /* Matches text-xl line-height */
  }
}

/* ==========================================================================
   Hero Section Layout (Completely Unblocked Centre for Drone Video)
   ========================================================================== */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-top-container {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
}

.hero-bottom-container {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
}

/* Compact hero headline clamp allowing maximum background video visibility */
.hero-editorial-title {
  font-size: clamp(1.9rem, 4.4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.hero-editorial-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.35);
}

/* Subtle 35mm cinema grain overlay */
.cinema-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Minimalist HUD Crosshairs & Grid Lines */
.hud-corner {
  position: relative;
}
.hud-corner::before,
.hud-corner::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
  z-index: 10;
}
.hud-corner::before {
  top: 14px;
  left: 14px;
  border-top: 1px solid;
  border-left: 1px solid;
}
.hud-corner::after {
  bottom: 14px;
  right: 14px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}
.hud-corner:hover::before,
.hud-corner:hover::after {
  border-color: var(--color-brand-mint);
}


/* Custom Interactive Cursor (Desktop) */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, opacity 0.2s ease, background-color 0.2s ease;
}

#cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background-color 0.2s ease;
}

body.cursor-hover #cursor-outline {
  width: 60px;
  height: 60px;
  border-color: var(--color-brand-green);
  background-color: rgba(42, 104, 82, 0.12);
}

body.cursor-hover #cursor-dot {
  background-color: var(--color-brand-green);
  opacity: 0.8;
}

@media (pointer: coarse), (hover: none) {
  #cursor-dot,
  #cursor-outline {
    display: none !important;
  }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Subtle pulse animation for telemetry status */
@keyframes recBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}
.animate-rec-dot {
  animation: recBlink 2.2s ease-in-out infinite;
}

/* ==========================================================================
   Vimeo Background Video (Fullscreen Scale, No Black Bars, Pure Cinema)
   ========================================================================== */
.vimeo-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-color: var(--color-black);
}

/* Still poster behind iframe to eliminate black flash before Vimeo stream loads */
.hero-poster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  filter: saturate(1.04) contrast(1.02);
}

.vimeo-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 100 * 9 / 16 = 56.25vw */
  min-height: 100vh;
  min-width: 177.78vh; /* 100 * 16 / 9 = 177.78vh */
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
  opacity: 0; /* Fades in smoothly once loaded */
  filter: saturate(1.06) contrast(1.03);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.vimeo-bg-iframe.loaded {
  opacity: 1;
}

/* Layered Directional Scrims (Preserves open, vivid center and right) */
/* (a) Left-to-right desktop gradient: darkens behind left-aligned text */
.hero-scrim-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6, 6, 8, 0.72) 0%, rgba(6, 6, 8, 0.45) 35%, rgba(6, 6, 8, 0) 68%);
  pointer-events: none;
  z-index: 3;
  display: none;
}

@media (min-width: 768px) {
  .hero-scrim-left {
    display: block;
  }
}

/* (b) Bottom gradient: solid noir seamlessly blending into marquee with zero visible seam */
.hero-scrim-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--color-black) 0%, rgba(6, 6, 8, 0.85) 35%, rgba(6, 6, 8, 0.3) 70%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* (c) Thin top gradient: under navigation bar */
.hero-scrim-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(6, 6, 8, 0.85) 0%, rgba(6, 6, 8, 0.35) 60%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* Mobile uniform overlay */
.hero-scrim-mobile {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.32);
  pointer-events: none;
  z-index: 3;
}

@media (min-width: 768px) {
  .hero-scrim-mobile {
    display: none;
  }
}


/* ==========================================================================
   Responsive Masonry Gallery Layout (Preserves Natural Aspect Ratio)
   ========================================================================== */
.gallery-masonry {
  column-count: 1;
  column-gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .gallery-masonry {
    column-count: 2;
    column-gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    column-count: 3;
    column-gap: 2rem;
  }
}

.gallery-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  background-color: #0b0b0e;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              opacity 0.3s ease;
  will-change: transform, opacity;
}

.gallery-card:hover {
  border-color: rgba(75, 191, 151, 0.7);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(75, 191, 151, 0.2);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-card:hover img {
  transform: scale(1.035);
  filter: brightness(1.05);
}

.gallery-card:hover .card-overlay,
.gallery-card:focus-visible .card-overlay {
  opacity: 1;
}

/* Card Corner Focus-Lock Animation on hover/focus */
.gallery-card.hud-corner::before,
.gallery-card.hud-corner::after {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.gallery-card.hud-corner:hover::before,
.gallery-card.hud-corner:focus-visible::before {
  transform: translate(3px, 3px);
  border-color: var(--color-brand-mint);
}

.gallery-card.hud-corner:hover::after,
.gallery-card.hud-corner:focus-visible::after {
  transform: translate(-3px, -3px);
  border-color: var(--color-brand-mint);
}

.gallery-card:focus-visible {
  outline: 1px solid var(--color-brand-mint) !important;
  outline-offset: 3px !important;
}

/* Lightbox EXIF Badges */
.exif-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 8px;
  border-radius: 2px;
  color: #e5e7eb;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.exif-badge .exif-key {
  color: #9ca3af;
  font-size: 9px;
}

.exif-badge .exif-val {
  color: #ffffff;
  font-weight: 700;
}

.exif-badge.mint .exif-val {
  color: var(--color-brand-mint);
}

/* ==========================================================================
   Infinite Client Logo Marquee
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 55s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  height: 2.25rem;
  max-height: 2.5rem;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all 0.35s ease;
  user-select: none;
}

@media (min-width: 768px) {
  .client-logo {
    height: 2.75rem;
    max-height: 3rem;
    max-width: 180px;
  }
}

.client-logo:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

/* Lightbox Modal */
#lightbox-modal {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

#lightbox-modal:not(.active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#lightbox-image {
  max-height: 82vh;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* ==========================================================================
   Fleet Specifications & Orthographic Airframe Schematic
   ========================================================================== */
.spec-card {
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  cursor: pointer;
}

.spec-card.highlighted,
.spec-card:hover,
.spec-card:focus-visible {
  border-color: rgba(75, 191, 151, 0.8) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(75, 191, 151, 0.2);
  transform: translateY(-2px);
}

.spec-card-eyebrow-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.spec-node-tag {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.spec-giant-num {
  font-family: var(--font-mono);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.38);
  color: transparent;
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease, text-shadow 0.35s ease;
}

.spec-giant-unit {
  font-family: var(--font-display);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  color: transparent;
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease;
}

.spec-card:hover .spec-giant-num,
.spec-card.highlighted .spec-giant-num,
.spec-card:focus-visible .spec-giant-num {
  color: rgba(75, 191, 151, 0.95);
  -webkit-text-stroke-color: var(--color-brand-mint);
  text-shadow: 0 0 24px rgba(75, 191, 151, 0.35);
}

.spec-card:hover .spec-giant-unit,
.spec-card.highlighted .spec-giant-unit,
.spec-card:focus-visible .spec-giant-unit {
  color: #ffffff;
  -webkit-text-stroke-color: #ffffff;
}

/* Drone Schematic Leader Lines & Interactive Nodes */
.schematic-leader-line {
  stroke: rgba(255, 255, 255, 0.22);
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.schematic-node-circle {
  fill: #060608;
  stroke: rgba(255, 255, 255, 0.35);
  transition: stroke 0.3s ease, fill 0.3s ease, transform 0.3s ease;
}

.schematic-node-text {
  fill: #d1d5db;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: fill 0.3s ease;
}

.schematic-node-group {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.schematic-node-group:hover .schematic-leader-line,
.schematic-node-group.active .schematic-leader-line {
  stroke: var(--color-brand-mint);
  stroke-width: 1.5px;
}

.schematic-node-group:hover .schematic-node-circle,
.schematic-node-group.active .schematic-node-circle {
  stroke: var(--color-brand-mint);
  fill: rgba(42, 104, 82, 0.45);
}

.schematic-node-group:hover .schematic-node-text,
.schematic-node-group.active .schematic-node-text {
  fill: #ffffff;
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track {
    animation: none !important;
    overflow-x: auto;
  }
  #cursor-dot,
  #cursor-outline {
    display: none !important;
  }
}

/* ==========================================================================
   Pannellum 360° Spherical Viewer Styling
   ========================================================================== */
#panorama-360-viewer {
  cursor: grab;
}

#panorama-360-viewer:active {
  cursor: grabbing;
}

.pnlm-container {
  background-color: #060608 !important;
  font-family: var(--font-mono) !important;
}

/* Restyled Load 360° Aerial Flight Button */
.pnlm-load-button {
  background-color: var(--color-brand-green) !important;
  border: 1px solid var(--color-brand-green-hover) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(42, 104, 82, 0.4) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.pnlm-load-button:hover {
  background-color: var(--color-brand-green-hover) !important;
  transform: scale(1.04) !important;
  border-color: var(--color-brand-mint) !important;
}

/* Pannellum Telemetry Caption Box (Space Mono, small uppercase frosted chip) */
.pnlm-panorama-info {
  position: absolute !important;
  bottom: 20px !important;
  left: 20px !important;
  top: auto !important;
  right: auto !important;
  background: rgba(6, 6, 8, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 2px !important;
  padding: 8px 14px !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #f4f4f6 !important;
  z-index: 10 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
}

.pnlm-title-box {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: #ffffff !important;
  margin-bottom: 2px !important;
  padding: 0 !important;
}

.pnlm-author-box {
  font-family: var(--font-mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.16em !important;
  color: var(--color-brand-mint) !important;
  padding: 0 !important;
}

/* Zoom Controls: Relocated to Bottom-Right, Minimalist Square-Cornered Mono Control */
.pnlm-controls-container {
  position: absolute !important;
  bottom: 20px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  z-index: 15 !important;
}

.pnlm-zoom-controls {
  margin: 0 !important;
  background-color: rgba(6, 6, 8, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 2px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  flex-direction: column !important;
}

.pnlm-zoom-in, .pnlm-zoom-out {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: transparent !important;
  color: #ffffff !important;
  font-family: var(--font-mono) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.pnlm-zoom-in {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pnlm-zoom-in:hover, .pnlm-zoom-out:hover {
  background-color: var(--color-brand-green) !important;
  color: #ffffff !important;
}

.pnlm-compass {
  right: 20px !important;
  top: 20px !important;
  opacity: 0.8 !important;
  transition: opacity 0.3s ease !important;
}

.pnlm-compass:hover {
  opacity: 1 !important;
}

/* Touch Device 360° Interaction Gate (Prevents vertical page scroll trapping) */
.pano-touch-gate {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 25;
  cursor: pointer;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pano-touch-gate.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pano-touch-done-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  display: none;
}

.pano-touch-done-btn.active {
  display: inline-flex;
}

@media (pointer: fine) {
  .pano-touch-gate,
  .pano-touch-done-btn {
    display: none !important;
  }
}



/* ==========================================================================
   Aircraft Altitude Indicator: Document-Spanning Physical Scale Track & Dynamic HUD Readout
   ========================================================================== */

/* 1. Full-Document Physical Scale Track (Static to Document, spans top: 0 to bottom: 0) */
#altitude-doc-track {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100px;
  pointer-events: none;
  user-select: none;
  z-index: 30;
}

@media (max-width: 767px) {
  #altitude-doc-track {
    display: none !important;
  }
}

/* Hair-thin vertical track line spanning from hero separator line to document bottom */
.altitude-doc-line {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
}

/* Container for notches positioned along document height */
.altitude-doc-notches {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
}

/* Each Static Document Notch */
.alt-doc-notch {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  line-height: 1;
}

/* Hair-thin horizontal tick marks */
.alt-doc-tick {
  display: block;
  height: 1px;
}

/* Minor sub-notches every 10ft (shorter lines without numbers) */
.alt-doc-notch.minor .alt-doc-tick {
  width: 7px;
  background: rgba(255, 255, 255, 0.38);
}

/* Major notches every 50ft (longer lines with numbers) */
.alt-doc-notch.major .alt-doc-tick {
  width: 14px;
  background: rgba(255, 255, 255, 0.75);
}

/* Ground touchdown notch at 0ft */
.alt-doc-notch.ground-touchdown .alt-doc-tick {
  width: 18px;
  background: #38a67d;
}

/* Static Notch Labels (400 FT, 350 FT, etc.) */
.alt-doc-label {
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.alt-doc-notch.ground-touchdown .alt-doc-label {
  color: #38a67d;
  font-weight: 700;
}

/* 2. Dynamic Viewport Altitude Readout (Fixed to viewport, glides from 33vh to bottom) */
#altitude-hud-readout {
  position: fixed;
  right: 0;
  top: 33vh;
  z-index: 45;
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  will-change: top;
}

@media (max-width: 767px) {
  #altitude-hud-readout {
    display: none !important;
  }
}

/* HUD Telemetry Crosshair Header */
.altitude-hud-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  padding-right: 12px;
}

.altitude-telemetry-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2A6852;
  box-shadow: 0 0 6px #38a67d;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.altitude-telemetry-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
}

/* Readout Box Row with Reticle Pointer */
.altitude-readout-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

/* Crisp Altitude Readout Badge */
.altitude-readout-badge {
  display: flex;
  align-items: baseline;
  background: rgba(6, 6, 8, 0.92);
  border: 1px solid #2A6852;
  padding: 4px 8px;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(42, 104, 82, 0.45), 0 4px 16px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#altitude-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  min-width: 2.5ch;
  text-align: right;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.altitude-unit {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #38a67d;
  letter-spacing: 0.12em;
  margin-left: 3px;
  line-height: 1;
}

/* Crosshair Reticle Pointer connecting badge to track line */
.altitude-pointer-reticle {
  position: relative;
  width: 8px;
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.altitude-pointer-line {
  width: 8px;
  height: 1px;
  background: #2A6852;
}

.altitude-pointer-pip {
  position: absolute;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38a67d;
  box-shadow: 0 0 6px rgba(56, 166, 125, 0.95), 0 0 1px #ffffff;
}

/* ==========================================================================
   PHASE 4: CONTACT SECTION & FLIGHT PATH
   ========================================================================== */

/* Tightened Button Shadow & Gentle Hover (Submits & Navigation CTAs) */
.btn-primary-tight {
  box-shadow: 0 8px 24px -10px rgba(42, 104, 82, 0.55) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease !important;
}

.btn-primary-tight:hover {
  box-shadow: 0 12px 28px -8px rgba(42, 104, 82, 0.7) !important;
  transform: translateY(-1px) !important;
}

/* Contact Flight Path SVG Illustration (Static dashed path) */
#contact-flight-path-svg {
  opacity: 0.24;
  transition: opacity 0.4s ease;
}

#contact-flight-path {
  stroke-dasharray: 6 8;
  stroke-linecap: round;
}

/* Contact Form Input Groups & Animated Underlines */
.field-group {
  position: relative;
}

.field-label {
  transition: color 0.25s ease;
}

.field-input {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.field-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  pointer-events: none;
}

/* Focus State: Label mint, Underline scales in from left */
.field-group:focus-within .field-label,
.field-input:focus ~ .field-label {
  color: var(--color-brand-mint) !important;
}

.field-group:focus-within .field-underline,
.field-input:focus ~ .field-underline {
  transform: scaleX(1);
}

/* Subtle Validation State after blur (:user-invalid and JS .is-invalid fallback) */
.field-input:user-invalid,
.field-group.has-error .field-input,
.field-input.is-invalid {
  border-bottom-color: #d97706 !important;
}

.field-input:user-invalid ~ .field-underline,
.field-group.has-error .field-underline,
.field-input.is-invalid ~ .field-underline {
  background-color: #d97706 !important;
  transform: scaleX(1);
}

.field-group.has-error .field-label,
.field-input:user-invalid:not(:focus) ~ .field-label {
  color: #f59e0b !important;
}

/* Custom Select Component (Assignment Scope) */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.75rem;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.custom-select-trigger:focus {
  outline: none;
}

.custom-select-value {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-value.placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.custom-select-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select.is-open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select.is-open .custom-select-underline,
.custom-select-trigger:focus ~ .custom-select-underline {
  transform: scaleX(1);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(10, 10, 13, 0.98);
  border: 1px solid rgba(75, 191, 151, 0.35);
  border-radius: 4px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(42, 104, 82, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 280px;
  overflow-y: auto;
}

.custom-select.is-open .custom-select-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select-option {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-select-option:hover,
.custom-select-option.is-highlighted {
  background: rgba(42, 104, 82, 0.35);
  color: #ffffff;
}

.custom-select-option[aria-selected="true"] {
  background: rgba(42, 104, 82, 0.65);
  color: var(--color-brand-mint);
  font-weight: 700;
}

/* Touch & Coarse Pointer Media Query: Display native select with matching underline styling */
@media (pointer: coarse) {
  .custom-select {
    display: none !important;
  }

  .native-project-select {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    background: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 0.75rem !important;
    padding-right: 2rem !important;
    color: #ffffff !important;
    font-family: var(--font-sans) !important;
    font-size: 1rem !important;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234bbf97'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 1rem !important;
  }
}

@media (pointer: fine) {
  .native-project-select {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
}

/* Form Success Drawn Checkmark Animation */
.checkmark-draw path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkmarkDraw 0.65s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.2s;
}

@keyframes checkmarkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {

  .checkmark-draw path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }

  .btn-primary-tight:hover {
    transform: none !important;
  }

  .custom-select-options {
    transition: none !important;
  }
}

