/* Premium Video Editor Portfolio CSS */

:root {
  --color-bg: #07090c; /* Deep Obsidian Carbon */
  --color-text: #d8e1ed; /* Cool Ice Silver */
  --color-text-muted: #748396; /* Slate Technical Steel */
  --color-accent: #00e5ff; /* Electric Anamorphic Cyan - premium cinema flare */
  --color-accent-rgb: 0, 229, 255;
  --color-border: #13171e;
  --color-card-bg: #0c0f14;
  
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --slider-pos: 50%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff; /* Normal fallback/flat color, gradient handled by word-inner spans */
  letter-spacing: -0.03em;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

h5 {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 80px;
  position: relative;
}

#ambient-particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent;
  display: block;
}

/* Base Layout Containers */
.max-width-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-width-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections Spacer */
section, header {
  margin-bottom: 120px;
}

@media (max-width: 768px) {
  section, header {
    margin-bottom: 80px;
  }
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  margin-top: 40px;
  margin-bottom: 60px;
  gap: 24px;
}

.hero-video-container {
  position: relative;
  height: 65vh;
  aspect-ratio: 9/16;
  background-color: #121212;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Anamorphic widescreen-to-vertical lens opening transition */
  clip-path: inset(35% 0 35% 0);
  transition: clip-path 1.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-video-container.revealed {
  clip-path: inset(0% 0 0% 0);
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay-play {
  position: absolute;
  width: 64px;
  height: 64px;
  background: rgba(var(--color-accent-rgb), 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(var(--color-accent-rgb), 0.3);
}

.video-overlay-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.hero-video-container:hover .video-overlay-play {
  transform: scale(1.1);
  background: rgba(var(--color-accent-rgb), 1);
}

.hero-video-container.playing .video-overlay-play {
  opacity: 0;
  transform: scale(0.8);
}

.hero-video-container.is-iframe .video-overlay-play {
  display: none !important;
}

.hero-video-container.is-iframe video {
  display: none !important;
}

.hero-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Reel Selector Styling */
.reel-selector-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin-bottom: 10px;
  z-index: 10;
}

.selector-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
}

.reel-selector-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 10px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.selector-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.selector-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.selector-btn.active {
  color: #07090c;
  background: var(--color-accent);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.4);
}

@media (max-width: 768px) {
  .reel-selector-buttons {
    border-radius: 12px;
    padding: 8px;
    width: 95%;
  }
  .selector-btn {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* Title Block Layout */
.title-block {
  max-width: 1000px;
  margin: 0 auto 100px auto;
  padding: 0 24px;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-align for editorial structure */
  text-align: left;
  gap: 28px; /* Clean spacing between elements */
}

.eyebrow-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eyebrow {
  color: var(--color-accent) !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge {
  background: rgba(var(--color-accent-rgb), 0.08);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.title-container h1 {
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff; /* Let the parent be solid white */
  margin: 0;
}

/* Beautiful word-inner silver-iridescent gradient mask */
.word-inner {
  background: linear-gradient(180deg, #ffffff 40%, var(--color-text-muted) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

.title-container .subhead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 800px;
}

/* Creative Horizontal Telemetry Metadata Bar */
.tech-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 14px 28px;
  border-radius: 50px; /* pill shape */
  font-family: var(--font-mono);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  margin-top: 10px;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tel-label {
  color: var(--color-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tel-val {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.telemetry-divider {
  width: 1px;
  height: 14px;
  background-color: var(--color-border);
}

@media (max-width: 576px) {
  .tech-telemetry-bar {
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
    width: 100%;
  }
  .telemetry-divider {
    display: none;
  }
}

/* Project Overview */
.project-overview {
  margin-top: 80px;
  margin-bottom: 160px; /* Strong separation from the creative challenge */
}

.project-overview .section-title {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.project-overview .overview-paragraph {
  font-size: 18px;
  color: var(--color-text);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.creative-challenge {
  margin-bottom: 160px; /* Clear separation before next section */
}

/* Split Section Layout */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .split-section.reverse-split {
    direction: ltr;
  }
  .split-section.reverse-split .text-wrapper {
    order: -1;
  }
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.text-wrapper h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 24px;
}

.challenge-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-weight: 400;
}

/* Twofold Challenge Blocks */
.twofold-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 576px) {
  .twofold-container {
    grid-template-columns: 1fr;
  }
}

.challenge-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 8px;
  position: relative;
  transition: border-color 0.3s ease;
}

.challenge-card:hover {
  border-color: rgba(var(--color-accent-rgb), 0.3);
}

.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.challenge-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
}

.challenge-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Draggable Before/After Slider */
.visual-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.challenge-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.challenge-video-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9/16;
  background-color: #121212;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
}

@media (max-width: 992px) {
  .challenge-video-container {
    margin: 0 auto;
  }
}

/* Waveform Divider */
.divider-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 120px;
}

.waveform-divider {
  width: 100%;
  height: 60px;
  max-width: 800px;
  opacity: 0.55;
  filter: drop-shadow(0 0 2px rgba(var(--color-accent-rgb), 0.2));
}

.waveform-divider path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-waveform 4s ease-out forwards infinite alternate;
}

@keyframes draw-waveform {
  to {
    stroke-dashoffset: 0;
  }
}

/* Workflow Section */
.workflow-title-block {
  margin-bottom: 80px;
}

.text-center {
  text-align: center;
}

.workflow-sub {
  margin-bottom: 100px;
}

.sub-number {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.workflow-sub h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  margin-bottom: 20px;
}

.workflow-sub p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* Audio Mapping Waveform Motif */
.audio-mapping-visual {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.waveform-graphic-box {
  width: 100%;
  height: 100%;
  position: relative;
}

.audio-waveform-graphic {
  width: 100%;
  height: 100%;
}

.waveform-overlay-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--color-accent-rgb), 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.beat-marker-labels {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.beat-marker-labels span {
  position: absolute;
  transform: translateX(-50%);
}

/* Edit Rhythm Timeline Strip CSS */
.timeline-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.timeline-text-header {
  margin-bottom: 48px;
}

.edit-timeline-container {
  width: 100%;
  background: #0d0f12;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.timeline-ruler {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #1a1f26;
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  color: #4a5568;
}

.timeline-track {
  display: flex;
  gap: 4px;
  background: #060708;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #14181f;
  margin-bottom: 32px;
  height: 72px;
  position: relative;
}

/* Timeline Playhead */
.timeline-playhead {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: #e71d36; /* bright red playhead line */
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 0 8px #e71d36;
}

.playhead-time {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #e71d36;
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Active Segment Highlights */
.desc-card {
  padding: 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.desc-card.active-card {
  background: rgba(var(--color-accent-rgb), 0.04);
  border-color: rgba(var(--color-accent-rgb), 0.2);
}

.timeline-segment {
  height: 100%;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.segment-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.segment-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.segment-duration {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* Colors for edit timeline segments representing pace */
.segment-match {
  background: #2b3a4a;
  border-left: 3px solid #ff9f1c;
}
.segment-freeze {
  background: #4a2b2b;
  border-left: 3px solid #e71d36;
}
.segment-ramp {
  background: #1b4d3e;
  border-left: 3px solid #2ec4b6;
}
.segment-fast {
  background: #3c2a4d;
  border-left: 3px solid #9b5de5;
}
.segment-hold {
  background: #2e3532;
  border-left: 3px solid #00f5d4;
}

.timeline-segment:hover {
  filter: brightness(1.25);
  transform: scaleY(1.03);
}

.timeline-descriptions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  text-align: left;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

@media (max-width: 768px) {
  .timeline-descriptions {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.desc-card {
  padding: 4px;
}

.desc-card h5 {
  font-family: var(--font-display);
  font-size: 13px;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  padding-left: 12px;
}

.desc-card h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.desc-card p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Soundboard visual styling section */
.soundboard-visual {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.sfx-board-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.sfx-board-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 4px;
  text-align: center;
}

.sfx-board-subtitle {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  text-align: center;
}

.sfx-pads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.sfx-pad-btn {
  background: #0d0f12;
  border: 1px solid #1c222b;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  position: relative;
  overflow: hidden;
}

.sfx-pad-btn:hover {
  background: #141920;
  border-color: rgba(var(--color-accent-rgb), 0.3);
}

.sfx-pad-btn:active {
  transform: scale(0.97);
}

.pad-icon {
  font-size: 18px;
  margin-bottom: 8px;
}

.pad-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.pad-desc {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* Sound Canvas container */
.sound-wave-canvas-container {
  background: #060708;
  border: 1px solid #14181f;
  border-radius: 6px;
  height: 60px;
  overflow: hidden;
  position: relative;
}

.sound-wave-canvas-container canvas {
  display: block;
}

/* Text Mask Reveal Classes */
.text-mask-reveal {
  /* overflow handled per word span */
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.22em; /* gap between words */
}

.word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: inherit;
  
  /* Gradient text mask applied directly to words during reveal */
  background: linear-gradient(180deg, #ffffff 40%, #c4b9a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.revealed .word-inner {
  transform: translateY(0);
}

/* Post-production Technical Metadata Styling */
.tech-metadata-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  padding: 4px 10px;
  border-left: 2px solid var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.03);
}

.meta-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 50%;
  opacity: 0.4;
}

.tech-metadata-label {
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Magnetic tag overlay for comparisons */
.compare-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 30;
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider-container:hover .compare-tooltip {
  opacity: 1;
  transform: translate(-50%, -130%) scale(1);
}

/* Results Section */
.results-section {
  margin-top: 120px;
  margin-bottom: 120px;
  text-align: center;
}

.results-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}

@media (max-width: 768px) {
  .results-grid {
    flex-direction: column;
    gap: 48px;
    align-items: center;
  }
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 76px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Footer Section */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
  margin-top: 120px;
}

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

.back-link {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.back-link:hover {
  color: #fff;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

.cta-contact {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: #ffffff;
  color: #0a0a0a;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
}

.cta-contact:hover {
  transform: scale(1.05);
  background-color: var(--color-accent);
  color: #ffffff;
}

/* Scroll Entry Animations */
.fade-slide-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-slide-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hard-cut animation for stats (no transition, instant reveal) */
.scroll-hard-cut {
  opacity: 0;
}

.scroll-hard-cut.revealed {
  opacity: 1;
}

/* Animated Waveform Divider Canvas */
#fluid-wave-divider {
  width: 100%;
  height: 70px;
  max-width: 800px;
  background: transparent;
  display: block;
}

/* Minimal Scope Container - RED Camera Viewfinder Styling */
.minimal-scope-container {
  width: 100%;
  background: #070605; /* Solid clinical black */
  border: 1px dashed rgba(229, 91, 52, 0.15); /* Tech border pattern */
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

.scope-header-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}

.scope-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: sfx-pulse 1.8s infinite ease-in-out;
}

@keyframes sfx-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.scope-label-minimal {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.scope-time-minimal {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
}

.scope-canvas-wrapper {
  height: 110px;
  position: relative;
  width: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(229, 91, 52, 0.015) 0%, transparent 80%);
}

.scope-canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scope-markers-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

.marker-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marker-num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.marker-name {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.marker-divider {
  width: 1px;
  height: 24px;
  background-color: var(--color-border);
}
