/* ==========================================================================
   ENLIGHTENED REPUBLIC — ABOUT PAGE
   Builds on landing.css (homepage tokens, nav, hero, section-label/title,
   buttons, featured-card, footer). Only about-specific pieces live here.
   ========================================================================== */

/* --- Vertical rhythm ------------------------------------------------------
   Every section gets the same padding; adjacent sections drop their top
   padding so the gap between any two sections is one even step. */
.about-section {
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
  position: relative;
  z-index: 2;
}
.about-section + .about-section { padding-top: 0; }
.about-section .section-title { margin-bottom: 2rem; }

/* --- Hero: homepage hero language, sized for an inner page ---------------- */
.about-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(4.5rem, 12vh, 7rem) 0 clamp(3.5rem, 8vh, 5.5rem);
  overflow: hidden;
}
.about-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero-title.about-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.9;
  margin-bottom: 1.25rem;
}
.about-hero .hero-sub { margin-bottom: 1.25rem; }
.about-hero .hero-lede { margin-bottom: 0; }

/* --- Core premise prose ---------------------------------------------------- */
.about-prose { max-width: 62ch; }
.about-prose p { color: var(--bone); font-size: 1rem; line-height: var(--body-leading); margin-bottom: 1.1rem; }
.about-prose blockquote {
  margin: 1.6rem 0 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--teal);
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.06), transparent);
  color: var(--ash);
  font-size: 1rem;
  line-height: var(--body-leading);
}

/* --- Grids ----------------------------------------------------------------- */
.about-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .about-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .about-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .about-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .about-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Cards: same metrics as the homepage join/service cards ---------------- */
.about-card {
  --tone: var(--teal);
  --tone-glow: var(--teal-glow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  padding: 2rem 1.5rem;
  border: 2px solid color-mix(in srgb, var(--tone) 25%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 5%, transparent), rgba(10, 10, 26, 0.8));
  transition: border-color 180ms, transform 180ms, box-shadow 180ms;
}
a.about-card:hover,
.about-card:hover {
  border-color: var(--tone);
  transform: translateY(-4px);
  box-shadow: 0 0 30px var(--tone-glow), 0 10px 40px rgba(0, 0, 0, 0.3);
}
.about-card.tone-teal   { --tone: var(--teal);   --tone-glow: var(--teal-glow); }
.about-card.tone-pink   { --tone: var(--pink);   --tone-glow: var(--pink-glow); }
.about-card.tone-purple { --tone: var(--purple); --tone-glow: var(--purple-glow); }
.about-card.tone-yellow { --tone: var(--yellow); --tone-glow: rgba(255, 230, 0, 0.35); }

.about-ico { font-size: 1.6rem; line-height: 1; }
.about-card h3 {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tone);
  text-shadow: 0 0 6px var(--tone-glow);
}
.about-card p { color: var(--ash); font-size: 1rem; line-height: var(--body-leading); }
.about-link {
  margin-top: auto;
  font-family: var(--font-label);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yellow);
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255, 230, 0, 0.3);
}

.about-more { margin-top: 1.6rem; color: var(--ash); font-size: 1rem; }
.about-more a {
  color: var(--teal);
  text-decoration: none;
  text-shadow: 0 0 6px var(--teal-glow);
  border-bottom: 1px dashed var(--teal);
}
.about-more a:hover { color: var(--bone); border-bottom-color: var(--bone); }

/* --- Crew cards: fixed square portrait slot -------------------------------- */
.crew-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  flex-shrink: 0;
  margin-bottom: 0.6rem;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--tone);
  background: rgba(10, 10, 26, 0.9);
  box-shadow: 0 0 14px var(--tone-glow);
}
.crew-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
/* Algen's interim art is a 16:9 desk scene: zoom in on his face. */
.crew-portrait-crop img {
  position: absolute;
  width: 300%;
  height: auto;
  max-width: none;
  left: -100%;
  top: -18px;
}
.crew-badge {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-title);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--tone);
  text-shadow: 0 0 10px var(--tone-glow);
}
.crew-role {
  font-family: var(--font-label);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.75;
  margin-top: -0.3rem;
}

/* --- Closing CTA panel (homepage featured-card look) ----------------------- */
.featured-card.about-cta { grid-template-columns: 1fr; gap: 0; }
.about-cta .section-title { margin-bottom: 1rem; }
.about-cta .section-desc { margin-bottom: 2rem; }
.about-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (max-width: 520px) {
  .about-buttons .btn { flex: 1 1 100%; text-align: center; padding-left: 1rem; padding-right: 1rem; }
}
/* Five buttons fit on one row at desktop widths with slightly tighter sides. */
@media (min-width: 521px) {
  .about-buttons .btn { padding-left: 1.1rem; padding-right: 1.1rem; }
}
