/* =========================================================
   about.css — page-specific styles for about.html
   Requires style.css to be loaded first (uses its variables)
   ========================================================= */

/* ---------- Page hero / banner ---------- */
.page-hero {
  position: relative;
  padding: 10rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 20%,
    #000 15%,
    transparent 70%
  );
  opacity: 0.5;
}
.page-hero .hero__glow--1 {
  width: 360px;
  height: 360px;
  top: -140px;
  left: 5%;
}
.page-hero .hero__glow--2 {
  width: 320px;
  height: 320px;
  bottom: -160px;
  right: 5%;
}

.page-hero__inner {
  max-width: 720px;
}
.page-hero h1 {
  margin-bottom: 0.4em;
}
.page-hero p {
  font-size: 1.1rem;
  margin-inline: auto;
  max-width: 52ch;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
}
.breadcrumb li {
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--border);
  opacity: 0.8;
}
.breadcrumb a {
  color: var(--text);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb [aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Story checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--text);
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #04101f;
  background: var(--grad);
}

/* ---------- Vision & Mission ---------- */
.vm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.vm__card {
  position: relative;
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.03)),
    var(--surface);
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.vm__card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  background: var(--grad);
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}
.vm__card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
}
.vm__tag {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
}
.vm__card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.vm__card p {
  margin: 0;
  font-size: 1.02rem;
}

/* ---------- Core values ---------- */
.section__head p {
  margin-top: 0.5rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.value {
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s;
}
.value:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(34, 211, 238, 0.4);
}
.value__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.value h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.value p {
  margin: 0;
  font-size: 0.96rem;
}

/* Center the last card when it sits alone on its row (7 items) */
@media (min-width: 993px) {
  .values {
    grid-template-columns: repeat(4, 1fr);
  }
  .value:last-child:nth-child(4n + 3) {
    grid-column: span 2;
  }
}

/* ---------- Call to action band ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.22),
    rgba(34, 211, 238, 0.08)
  );
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 10%,
    transparent 75%
  );
  opacity: 0.5;
}
.cta h2 {
  max-width: 20ch;
  margin-inline: auto;
}
.cta p {
  max-width: 46ch;
  margin: 0 auto 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .page-hero {
    padding-top: 8.5rem;
  }
  .vm {
    grid-template-columns: 1fr;
  }
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
  .value:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 7.5rem 0 3rem;
  }
  .vm__card {
    padding: 2rem 1.5rem;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .value:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .cta {
    padding: 3rem 1.25rem;
    border-radius: 24px;
  }
}
