/* static/css/about.css */

.about-hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

.about-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.about-hero .container {
  position: relative;
  z-index: 2;
}

.about-hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.about-hero-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.about-hero-content p {
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
}

.about-hero-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-value {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease;
}

.about-value:hover {
  border-color: rgba(220,38,38,0.25);
}

.about-value-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.about-value h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-strong);
}

.about-value p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-section {
  padding: 6rem 0;
}

.about-section--surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header-center h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}

.section-header-center p {
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

.about-story-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
}

.about-story-intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}

.about-story-intro p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.35rem;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(220,38,38,0.4);
  flex-shrink: 0;
}

.timeline-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(180deg, var(--accent), rgba(220,38,38,0.1));
  margin: 0.5rem 0;
}

.timeline-content {
  padding-bottom: 2.5rem;
}

.timeline-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-strong);
}

.timeline-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.about-quote {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease;
}

.about-quote:hover {
  border-color: rgba(220,38,38,0.25);
}

.about-quote i {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.6;
}

.about-quote p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
  border-color: rgba(220,38,38,0.25);
  transform: translateY(-3px);
}

.team-photo {
  margin-bottom: 1.5rem;
}

.team-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 2rem;
}

.team-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.team-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.team-card > p {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.team-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.team-social a:hover {
  color: var(--text-strong);
  border-color: var(--border-light);
  background: var(--btn-quiet-bg-hover);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.partner-card:hover {
  border-color: var(--border-light);
}

.partner-logo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--accent-muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.partner-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.partner-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.careers-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.careers-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}

.careers-content > p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.careers-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.careers-perk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.careers-perk i {
  color: var(--accent);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.careers-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.careers-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color 0.3s ease;
}

.careers-stat-card:hover {
  border-color: var(--border-light);
}

.careers-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 70px;
}

.careers-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.2s; }

@media (max-width: 1024px) {
  .about-hero {
    padding: 8rem 0 4rem;
  }

  .about-story-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .careers-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .about-hero-values {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero-values > *:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }

  .about-section {
    padding: 5rem 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .about-hero {
    padding: 7rem 0 3rem;
  }

  .about-hero-content h1 {
    font-size: 2rem;
  }

  .about-hero-values {
    grid-template-columns: 1fr;
  }

  .about-hero-values > *:nth-child(3) {
    max-width: 100%;
  }

  .about-quotes {
    grid-template-columns: 1fr;
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }

  .careers-perks {
    grid-template-columns: 1fr;
  }

  .careers-stat-card {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .about-hero {
    padding: 6rem 0 2.5rem;
  }

  .about-hero-content h1 {
    font-size: 1.75rem;
  }

  .about-hero-content p {
    font-size: 1rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 4rem 0;
  }

  .team-card {
    padding: 1.5rem;
  }

  .about-value {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .careers-stat-num {
    font-size: 1.65rem;
    min-width: 56px;
  }
}

.btn--mt-lg { margin-top: 1.5rem; }

/* Pinned story stage. The section holds still while the rail draws through it,
   so you read one step at a time instead of the whole timeline sliding past. */
#story.is-pinned { padding: 0; }

#story.is-pinned .about-story-track {
  position: relative;
  height: calc(100vh + var(--pin, 150vh));
}

#story.is-pinned .about-story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

#story.is-pinned .about-story-stage > .container { width: 100%; }

.about-timeline { position: relative; }

.about-timeline::after {
  content: "";
  position: absolute;
  left: 5px;
  top: var(--y0, 0px);
  width: 2px;
  height: calc(var(--span, 0px) * var(--p, 0));
  background: linear-gradient(180deg, var(--accent), #ff6b6b);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(220,38,38,0.4);
  pointer-events: none;
  z-index: 1;
}

.about-timeline.is-live .timeline-line {
  background: var(--border);
}

.about-timeline.is-live .timeline-dot {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.about-timeline.is-live.is-ready .timeline-dot {
  transition: background 0.35s ease, border-color 0.35s ease,
              box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-timeline.is-live .timeline-item.is-on .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.13), 0 0 12px rgba(220,38,38,0.45);
  transform: scale(1.15);
}

.about-timeline.is-live .timeline-content {
  opacity: 0.38;
  transform: translateY(8px);
}

.about-timeline.is-live.is-ready .timeline-content {
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-timeline.is-live .timeline-item.is-on .timeline-content {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .about-timeline.is-live.is-ready .timeline-content,
  .about-timeline.is-live.is-ready .timeline-dot { transition: none; }
}
