/* ==========================================================================
   ANIMATION BASE STYLES
   GPU acceleration and animation-ready properties
   ========================================================================== */

/* GPU-accelerated elements */
.schematic-element,
.schematic-cursor-layer,
.interactive-card,
.alert-indicator,
.parallax-element,
.use-case-folder,
.pull-quote {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Prevent flash of unstyled content before JS loads */
.content-section,
.card,
.interactive-card {
  opacity: 1;
}

/* ==========================================================================
   SCHEMATIC/BLUEPRINT ELEMENTS
   ========================================================================== */

.hero-schematic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.schematic-cursor-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.schematic-element {
  position: absolute;
  opacity: 0.6;
}

/* ==========================================================================
   ALERT INDICATORS
   ========================================================================== */

.alert-dashboard {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.alert-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(100, 120, 140, 0.6);
}

.alert-indicator.critical {
  background: rgba(180, 60, 60, 0.8);
}

/* ==========================================================================
   INTERACTIVE CARDS
   ========================================================================== */

.interactive-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: none;
  /* JS handles transitions */
  cursor: pointer;
}

.card-grid {
  display: grid;
  gap: 2rem;
}

/* ==========================================================================
   USE CASE FOLDERS
   ========================================================================== */

.use-case-folder {
  border: 1px solid rgba(180, 60, 60, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.folder-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease;
}

.folder-trigger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.folder-icon {
  width: 20px;
  height: 20px;
  transition: none;
  /* JS handles rotation */
}

.folder-content {
  padding: 0 1.5rem;
  overflow: hidden;
}

.use-case-folder.is-open .folder-content {
  padding: 1.5rem;
}

/* ==========================================================================
   GAP BRIDGE ANIMATION (Challenge Page)
   ========================================================================== */

.gap-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
  padding: 4rem 0;
}

.gap-left,
.gap-right {
  flex: 1;
  max-width: 300px;
  padding: 2rem;
  text-align: center;
}

.gap-left {
  text-align: right;
  padding-right: 3rem;
}

.gap-right {
  text-align: left;
  padding-left: 3rem;
}

.chiron-bridge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ==========================================================================
   PULL QUOTES (Founder's Letter)
   ========================================================================== */

.pull-quote {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  padding: 2rem 0;
  margin: 2rem 0;
  border-left: 3px solid rgba(180, 60, 60, 0.5);
  padding-left: 2rem;
  color: inherit;
}

/* ==========================================================================
   PARALLAX ELEMENTS
   ========================================================================== */

.parallax-element {
  position: absolute;
  pointer-events: none;
}

/* ==========================================================================
   BUTTON STATES
   ========================================================================== */

.btn-primary,
.btn-secondary,
.cta-button {
  transition: none;
  /* JS handles transitions */
  transform-origin: center;
}

/* ==========================================================================
   NAVIGATION ACTIVE STATE
   ========================================================================== */

nav a.active {
  opacity: 1;
  color: rgba(180, 60, 60, 0.9);
}

/* ==========================================================================
   REDUCED MOTION PREFERENCE
   Respect user accessibility settings
   ========================================================================== */

/* ==========================================================================
   LINE REVEAL ANIMATION
   ========================================================================== */

.line-mask {
  overflow: hidden;
  display: block;
}

.line-content {
  display: block;
  transform: translateY(110%);
}

@media (prefers-reduced-motion: reduce) {

  .schematic-element,
  .schematic-cursor-layer,
  .interactive-card,
  .alert-indicator,
  .parallax-element {
    animation: none !important;
    transition: none !important;
    will-change: auto;
  }
}