/* ============================================
   ABOUT PAGE — BLACK & GOLD
   Gold palette: #b49a6a #c4ad7c #d4be8a #9a8255
   Dark palette: #2c2520 #1a1714 #3a332c
   ============================================ */

.ap {
  padding-top: 100px;
  overflow: hidden;
  background: #faf8f5;
}

/* HERO */
.ap-hero {
  text-align: center;
  padding: 6vw var(--spacing-container) 2vw;
  position: relative;
}

.ap-hero-icon {
  margin: 0 auto 2vw;
  opacity: 1;
  font-size: clamp(0.75rem, 1.1vw, 1.1vw);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b49a6a;
}

.ap-hero h1 {
  font-size: clamp(2.5rem, 6vw, 6vw);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #2c2520;
}

.ap-hero h1 em {
  font-style: italic;
  font-weight: 200;
  color: #b49a6a;
}

.ap-hero-sub {
  font-size: clamp(0.65rem, 1vw, 1vw);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #9a8c78;
  margin-top: 1.5vw;
  font-weight: 400;
}

/* STATS */
.ap-stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 4vw);
  padding: 4vw var(--spacing-container) 5vw;
  flex-wrap: wrap;
}

.ap-stat {
  text-align: center;
  min-width: 100px;
}

.ap-stat-num {
  font-size: clamp(2.5rem, 4.5vw, 4.5vw);
  font-weight: 200;
  color: #b49a6a;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ap-stat-label {
  font-size: clamp(0.6rem, 0.85vw, 0.85vw);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a8c78;
  margin-top: 0.6vw;
  font-weight: 400;
}

/* TIMELINE */
.ap-timeline {
  position: relative;
  padding: 0 var(--spacing-container);
  max-width: 1400px;
  margin: 0 auto;
}

.ap-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(180,154,106,0), rgba(180,154,106,0.5) 10%,
    rgba(196,173,124,0.3) 50%,
    rgba(180,154,106,0.5) 90%, rgba(180,154,106,0));
  transform: translateX(-1px);
}

.ap-era {
  display: flex;
  align-items: stretch;
  position: relative;
  margin-bottom: 0;
  min-height: 180px;
}

.ap-era:nth-child(odd) { flex-direction: row; }
.ap-era:nth-child(even) { flex-direction: row-reverse; }

.ap-era-content {
  width: calc(50% - 40px);
  padding: 3vw 2vw;
  position: relative;
}

.ap-era:nth-child(odd) .ap-era-content { text-align: right; }
.ap-era:nth-child(even) .ap-era-content { text-align: left; }

.ap-era-dot {
  position: absolute;
  left: 50%;
  top: 3.5vw;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b49a6a;
  border: 3px solid #faf8f5;
  transform: translateX(-50%) scale(0);
  z-index: 2;
  box-shadow: 0 0 0 2px #b49a6a;
  transition: box-shadow 0.4s ease;
}

.ap-era-dot.active {
  box-shadow: 0 0 0 2px #b49a6a, 0 0 20px rgba(180,154,106,0.4);
}

.ap-era-visual {
  width: calc(50% - 40px);
  display: flex;
  align-items: center;
  padding: 3vw 2vw;
}

.ap-era:nth-child(odd) .ap-era-visual { justify-content: flex-start; }
.ap-era:nth-child(even) .ap-era-visual { justify-content: flex-end; }

.ap-era-year {
  font-size: clamp(0.65rem, 0.9vw, 0.9vw);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #b49a6a;
  text-transform: uppercase;
  margin-bottom: 0.5vw;
}

.ap-era-name {
  font-size: clamp(1.25rem, 2vw, 2vw);
  font-weight: 200;
  color: #2c2520;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.8vw;
}

.ap-era-desc {
  font-size: clamp(0.85rem, 1vw, 1vw);
  color: #7a7068;
  line-height: 1.7;
  font-weight: 300;
}

/* Pattern boxes */
.ap-pattern {
  width: clamp(64px, 5.5vw, 80px);
  height: clamp(64px, 5.5vw, 80px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(180,154,106,0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.ap-pattern:hover {
  transform: scale(1.15) rotate(3deg);
  border-color: #b49a6a;
  box-shadow: 0 8px 30px rgba(180,154,106,0.2);
}

/* Final era */
.ap-era-final .ap-era-dot {
  width: 20px;
  height: 20px;
  background: #2c2520;
  box-shadow: 0 0 0 2px #2c2520, 0 0 0 6px rgba(180,154,106,0.3);
}

.ap-era-final .ap-era-name {
  font-size: clamp(1.5rem, 2.5vw, 2.5vw);
  color: #b49a6a;
}

.ap-pattern-final {
  width: clamp(64px, 5.5vw, 80px);
  height: clamp(64px, 5.5vw, 80px);
  background: #2c2520;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ap-pattern-final:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(44,37,32,0.4);
}

.ap-pattern-final img {
  height: 36px;
  width: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .ap-hero { padding: 80px 30px 20px; }
  .ap-stats { padding: 40px 30px 50px; gap: 30px; }
  .ap-timeline { padding: 0 30px; }
  .ap-era-content { padding: 2vw 1.5vw; }
  .ap-era-visual { padding: 2vw 1.5vw; }
}

@media (max-width: 767px) {
  .ap-hero { padding: 60px 20px 20px; }
  .ap-hero h1 { font-size: clamp(2rem, 10vw, 3.5rem); }
  .ap-stats { padding: 30px 20px 40px; gap: 20px; }
  .ap-stat { min-width: 80px; }
  .ap-timeline { padding: 0 20px 0 40px; }
  .ap-timeline-line { left: 20px; }

  .ap-era,
  .ap-era:nth-child(odd),
  .ap-era:nth-child(even) {
    flex-direction: column;
    padding-left: 30px;
  }
  .ap-era-content,
  .ap-era:nth-child(odd) .ap-era-content,
  .ap-era:nth-child(even) .ap-era-content {
    width: 100%; text-align: left; padding: 20px 0 8px;
  }
  .ap-era-visual,
  .ap-era:nth-child(odd) .ap-era-visual,
  .ap-era:nth-child(even) .ap-era-visual {
    width: 100%; justify-content: flex-start; padding: 0 0 20px;
  }
  .ap-era-dot { left: -23px; top: 24px; width: 12px; height: 12px; }
  .ap-era-final .ap-era-dot { width: 16px; height: 16px; left: -25px; }
}

@media (max-width: 479px) {
  .ap-hero h1 { font-size: 2rem; }
  .ap-hero-sub { font-size: 0.6rem; letter-spacing: 0.2em; }
  .ap-stat-num { font-size: 2rem; }
  .ap-timeline { padding: 0 16px 0 36px; }
  .ap-timeline-line { left: 16px; }
  .ap-era, .ap-era:nth-child(odd), .ap-era:nth-child(even) { padding-left: 26px; }
  .ap-era-dot { left: -19px; }
  .ap-era-final .ap-era-dot { left: -21px; }
}
