/* Highway Hop - About Page Styles */

/* About Hero */
.hhp-91-about-hero {
  background: linear-gradient(135deg, var(--hhp-91-teal) 0%, var(--hhp-91-teal-dark) 100%);
  color: white;
  padding: var(--hhp-91-space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hhp-91-about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 30px,
    rgba(255, 255, 255, 0.05) 30px,
    rgba(255, 255, 255, 0.05) 60px
  );
}

.hhp-91-about-hero h1 {
  color: white;
  margin-bottom: var(--hhp-91-space-md);
}

.hhp-91-about-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Team Story Section */
.hhp-91-team-story {
  background: white;
  border-radius: var(--hhp-91-radius-xl);
  padding: var(--hhp-91-space-xl);
  box-shadow: var(--hhp-91-shadow-lg);
  position: relative;
  overflow: hidden;
}

.hhp-91-team-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--hhp-91-amber), var(--hhp-91-teal), var(--hhp-91-orange));
  background-size: 200% 100%;
  animation: gradient-slide 3s ease-in-out infinite;
}

@keyframes gradient-slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Art References Grid */
.hhp-91-art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--hhp-91-space-lg);
  margin: var(--hhp-91-space-xl) 0;
}

.hhp-91-art-item {
  background: white;
  border-radius: var(--hhp-91-radius-lg);
  padding: var(--hhp-91-space-lg);
  box-shadow: var(--hhp-91-shadow-sm);
  transition: var(--hhp-91-transition);
  text-align: center;
  position: relative;
}

.hhp-91-art-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--hhp-91-amber);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.hhp-91-art-item:hover::after {
  width: 80%;
}

.hhp-91-art-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hhp-91-shadow-md);
}

/* Process Timeline */
.hhp-91-timeline {
  position: relative;
  padding: var(--hhp-91-space-xl) 0;
}

.hhp-91-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--hhp-91-amber), var(--hhp-91-teal));
  transform: translateX(-50%);
}

.hhp-91-timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--hhp-91-space-xl);
  position: relative;
}

.hhp-91-timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.hhp-91-timeline-content {
  flex: 1;
  background: white;
  padding: var(--hhp-91-space-lg);
  border-radius: var(--hhp-91-radius-lg);
  box-shadow: var(--hhp-91-shadow-md);
  margin: 0 var(--hhp-91-space-xl);
  position: relative;
}

.hhp-91-timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  transform: translateY(-50%);
}

.hhp-91-timeline-item:nth-child(odd) .hhp-91-timeline-content::before {
  right: -20px;
  border-left-color: white;
}

.hhp-91-timeline-item:nth-child(even) .hhp-91-timeline-content::before {
  left: -20px;
  border-right-color: white;
}

.hhp-91-timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--hhp-91-amber);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--hhp-91-shadow-md);
  z-index: 1;
}

/* FAQ Accordion */
.hhp-91-faq-accordion {
  background: white;
  border-radius: var(--hhp-91-radius-lg);
  overflow: hidden;
  box-shadow: var(--hhp-91-shadow-md);
  margin-bottom: var(--hhp-91-space-md);
}

.hhp-91-faq-header {
  padding: var(--hhp-91-space-lg);
  background: var(--hhp-91-gray-light);
  cursor: pointer;
  transition: var(--hhp-91-transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hhp-91-faq-header:hover {
  background: var(--hhp-91-amber);
  color: white;
}

.hhp-91-faq-toggle {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.hhp-91-faq-content {
  padding: 0 var(--hhp-91-space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.hhp-91-faq-accordion.active .hhp-91-faq-content {
  padding: var(--hhp-91-space-lg);
  max-height: 200px;
}

.hhp-91-faq-accordion.active .hhp-91-faq-toggle {
  transform: rotate(180deg);
}

/* Sound Design Visualization */
.hhp-91-sound-viz {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 4px;
  height: 60px;
  margin: var(--hhp-91-space-lg) 0;
}

.hhp-91-sound-bar {
  width: 8px;
  background: var(--hhp-91-teal);
  border-radius: var(--hhp-91-radius-sm);
  animation: sound-wave 1.5s ease-in-out infinite;
}

.hhp-91-sound-bar:nth-child(2) { animation-delay: 0.1s; }
.hhp-91-sound-bar:nth-child(3) { animation-delay: 0.2s; }
.hhp-91-sound-bar:nth-child(4) { animation-delay: 0.3s; }
.hhp-91-sound-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes sound-wave {
  0%, 100% { height: 20px; background: var(--hhp-91-teal); }
  50% { height: 60px; background: var(--hhp-91-amber); }
}

/* Animation Keyframes */
@keyframes border-pulse {
  0% {
    opacity: 0;
    border-color: transparent;
    transform: scale(0.95);
  }
  50% {
    border-color: var(--hhp-91-amber);
  }
  100% {
    opacity: 1;
    border-color: var(--hhp-91-teal);
    transform: scale(1);
  }
}

@keyframes scale-from-chip {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
    border-radius: var(--hhp-91-radius-full);
  }
  50% {
    transform: scale(1.1) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    border-radius: var(--hhp-91-radius-lg);
  }
}

/* Animation Classes */
[data-anim="border-pulse"].is-visible {
  animation: border-pulse 1s ease-out forwards;
  border: 2px solid transparent;
}

[data-anim="scale-from-chip"].is-visible {
  animation: scale-from-chip 0.8s ease-out forwards;
}

[data-anim="stagger-up"] .hhp-91-stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim="stagger-up"] .hhp-91-stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-anim="mask-zigzag"].is-visible {
  animation: mask-zigzag 1s ease-out forwards;
}

[data-anim="underline-sweep"].is-visible {
  animation: underline-sweep 0.8s ease-out forwards;
}

[data-anim="blur-to-sharp"].is-visible {
  animation: blur-to-sharp 1s ease-out forwards;
}

[data-anim="tilt-pop"].is-visible {
  animation: tilt-pop 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hhp-91-timeline::before {
    left: 20px;
  }
  
  .hhp-91-timeline-item,
  .hhp-91-timeline-item:nth-child(even) {
    flex-direction: row;
  }
  
  .hhp-91-timeline-content {
    margin-left: var(--hhp-91-space-xl);
    margin-right: 0;
  }
  
  .hhp-91-timeline-content::before,
  .hhp-91-timeline-item:nth-child(even) .hhp-91-timeline-content::before {
    left: -20px;
    right: auto;
    border-right-color: white;
    border-left-color: transparent;
  }
  
  .hhp-91-art-grid {
    grid-template-columns: 1fr;
  }
  
  .hhp-91-about-hero {
    padding: var(--hhp-91-space-xl) 0;
  }
}

@media (max-width: 480px) {
  .hhp-91-team-story {
    padding: var(--hhp-91-space-lg);
  }
  
  .hhp-91-timeline-content {
    padding: var(--hhp-91-space-md);
    margin-left: var(--hhp-91-space-lg);
  }
  
  .hhp-91-sound-viz {
    height: 40px;
  }
  
  .hhp-91-sound-bar {
    width: 6px;
  }
}
/* ===== Утилитарные отступы (используют твои CSS-переменные) ===== */
.mt-xl { margin-top: var(--hhp-91-space-xl); }
.mt-lg { margin-top: var(--hhp-91-space-lg); }
.mt-md { margin-top: var(--hhp-91-space-md); }
.ml-md { margin-left: var(--hhp-91-space-md); }

/* Узкий центрированный контейнер */
.narrow {
  max-width: 800px;
  margin-inline: auto;
}

/* ===== Доступный skip-link без инлайна ===== */
.hhp-91-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 8px 12px;
  background: var(--hhp-91-amber);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
}
.hhp-91-skip-link:focus {
  left: 12px;
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== FAQ accordion (показываем/скрываем контент через класс .active) ===== */
.hhp-91-faq-accordion .hhp-91-faq-content {
  display: none;
}
.hhp-91-faq-accordion.active .hhp-91-faq-content {
  display: block;
}
.hhp-91-faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
