/* ==========================================================================
   SIGNATURE FEATURE: SCROLL-DRIVEN BUILDING DRAWING ANIMATION
   Hand-Drawn Perspective Architectural Sketch Style
   Brand Palette: Charcoal Linework (#1A1A1A), Warm Amber/Orange Tints (#F5A623)
   ========================================================================== */

.sketch-scroll-track {
  position: relative;
  min-height: 280vh; /* Pinned scroll distance for smooth scrubbing */
  background: #FFFFFF;
}

.sketch-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 94px 24px 30px;
  overflow: hidden;
  background: radial-gradient(circle at center, #FFFFFF 0%, #FAFAFA 100%);
  border-bottom: 1px solid var(--color-border);
}

/* Header inside the pinned viewport */
.sketch-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  z-index: 10;
}

.sketch-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-tint);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.sketch-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--color-charcoal);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.sketch-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Canvas Area */
.sketch-canvas-container {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sketch-svg-wrap {
  width: 100%;
  height: 100%;
  max-height: 520px;
  position: relative;
}

.sketch-svg-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.05));
}

/* Dynamic Interactive HUD / Stage Controller */
.sketch-hud {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sketch-hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sketch-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.stage-pill {
  background: var(--color-charcoal);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.stage-name {
  color: var(--color-primary-dark);
}

.sketch-progress-display {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.sketch-progress-track {
  width: 100%;
  height: 6px;
  background: #EAEAEA;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.sketch-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, #FFA726 100%);
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* Optional Scrub Control */
.sketch-scrub-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sketch-scrub-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #D9D9D9;
  border-radius: 2px;
  outline: none;
}

.sketch-scrub-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px var(--color-primary-glow);
}

/* SVG Element Animation Classes */
.guide-line {
  transition: stroke-dashoffset 0.2s ease, opacity 0.3s ease;
}

.wire-path {
  transition: stroke-dashoffset 0.2s ease, opacity 0.3s ease;
}

.shade-panel {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.detail-path {
  transition: stroke-dashoffset 0.2s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .sketch-sticky-wrapper {
    padding-top: 80px;
  }
  .sketch-hud {
    padding: 10px 14px;
  }
  .sketch-scrub-row {
    display: none;
  }
  .sketch-svg-wrap {
    max-height: 380px;
  }
}
