.about-page {
  position: relative;
  padding: 0 20px 84px;
}

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
  padding-top: 28px;
}

.header-section {
  position: relative;
  overflow: hidden;
  padding: 46px 42px;
  border-radius: 36px;
  border: 1px solid var(--shell-border);
  background: var(--surface-strong);
  box-shadow:
    0 30px 70px rgba(112, 77, 173, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.header-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.78), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(157, 46, 197, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 44%);
}

.header-section > * {
  position: relative;
  z-index: 1;
}

.header-section h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.lead {
  max-width: 60ch;
  margin: 0;
  color: var(--copy-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.about-overview {
  display: grid;
  gap: 24px;
  padding-top: 28px;
}

.about-grid {
  display: grid;
  gap: 24px;
}

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

.about-grid-secondary {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.about-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 30px 28px;
  border-radius: 28px;
  border: 1px solid var(--shell-border);
  background: var(--surface);
  box-shadow:
    0 18px 40px rgba(90, 61, 140, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(157, 46, 197, 0.92), rgba(157, 46, 197, 0));
}

.about-card::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -38px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 46, 197, 0.16), transparent 70%);
  pointer-events: none;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(157, 46, 197, 0.2);
  box-shadow:
    0 26px 50px rgba(90, 61, 140, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.about-card h2,
.about-card p {
  position: relative;
  z-index: 1;
}

.about-card h2 {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 1.48rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.about-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.74;
}

.hero-card {
  align-self: stretch;
  padding: 34px 30px;
  background: linear-gradient(
    135deg,
    rgba(249, 240, 255, 0.98),
    rgba(241, 232, 255, 0.92)
  );
}

.about-card-wide {
  min-height: 100%;
}

html[data-theme="dark"] .header-section {
  border-color: #314157;
  background: linear-gradient(
    135deg,
    rgba(17, 25, 39, 0.96),
    rgba(14, 21, 34, 0.92) 55%,
    rgba(25, 18, 42, 0.9)
  );
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .header-section::before {
  background:
    radial-gradient(circle at 14% 18%, rgba(30, 44, 68, 0.84), transparent 32%),
    radial-gradient(circle at 86% 22%, rgba(161, 96, 235, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(17, 25, 39, 0.16), transparent 44%);
}

html[data-theme="dark"] .lead,
html[data-theme="dark"] .about-card p {
  color: #a7b5c8;
}

html[data-theme="dark"] .about-card {
  border-color: #304158;
  background: linear-gradient(180deg, rgba(20, 29, 46, 0.94), rgba(13, 20, 34, 0.88));
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .hero-card {
  background: linear-gradient(180deg, rgba(30, 24, 50, 0.94), rgba(18, 27, 43, 0.9));
}

@media (max-width: 1080px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .about-page {
    padding: 0 16px 68px;
  }

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

@media (max-width: 720px) {
  .header-section {
    padding: 34px 24px;
    border-radius: 28px;
  }

  .header-section h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .lead {
    font-size: 1rem;
    line-height: 1.72;
  }

  .about-card {
    padding: 24px 20px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-card {
    transition: none;
  }
}
