/* About Bakura Edu (templates/about.php). Source: About.dc.html in the identity design project.
 * Heading sizes are scoped to .about-page to win over the older .bakura-support main h2 rule. */
.about-page {
  overflow-x: clip;
  background: var(--cream);
}

.about-eyebrow {
  font: 600 12px/1.6 var(--font);
  letter-spacing: 0.18em;
  color: #765022;
}

.about-eyebrow--rust {
  color: var(--rust);
}

.about-page h1,
.about-page h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

/* Hero */
.about-hero {
  position: relative;
  overflow: hidden;
  background: var(--honey);
}

.about-hero__ring {
  position: absolute;
  width: 820px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  left: -300px;
  bottom: -500px;
  opacity: 0.6;
}

.about-hero__inner,
.about-name,
.about-dna,
.about-cta {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.about-hero__inner {
  position: relative;
  padding: 96px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}

.about-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-page .about-hero h1 {
  font-size: clamp(42px, 6vw, 92px);
  line-height: 1.2;
  text-wrap: balance;
}

.about-hero h1 span {
  color: var(--rust);
}

.about-hero__copy p {
  margin: 0;
  max-width: 46ch;
  font-size: 19px;
  color: var(--bark);
  text-wrap: pretty;
}

.about-hero__art {
  position: relative;
  height: 460px;
}

.about-hero__photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-hero__photo--arch {
  inset-inline-start: 0;
  top: 0;
  width: 58%;
  height: 78%;
  border-radius: 200px 200px 24px 24px;
  background: var(--gold);
}

.about-hero__photo--card {
  inset-inline-end: 0;
  bottom: 0;
  width: 48%;
  height: 62%;
  border-radius: 24px;
  background: var(--ink);
  border: 8px solid var(--honey);
}

.about-hero__emblem {
  position: absolute;
  inset-inline-end: 12%;
  top: 4%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

/* The name */
.about-name {
  padding: 120px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 64px;
  align-items: center;
}

.about-name__art {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.about-name__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed var(--line);
}

.about-name__emblem {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  border-radius: 50%;
}

.about-name__chip {
  position: absolute;
  top: 6%;
  inset-inline-end: 2%;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.about-name__mascot {
  position: absolute;
  inset-inline-start: -8%;
  bottom: -6%;
  width: 46%;
  height: 46%;
  object-fit: contain;
}

.about-name__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-page .about-name h2 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.3;
}

.about-name__copy p {
  margin: 0;
  max-width: 52ch;
  font-size: 18px;
  color: var(--muted);
  text-wrap: pretty;
}

/* Mission */
.about-mission {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.about-mission__glow {
  position: absolute;
  width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(209 149 74 / 0.24), transparent 64%);
  inset-inline-end: -220px;
  top: -280px;
  pointer-events: none;
}

.about-mission__glow::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 1px solid rgb(254 247 224 / 0.08);
  border-radius: 50%;
}

.about-mission__inner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}

.about-mission__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-mission__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.about-mission__label::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.about-mission__label:lang(en) {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-page .about-mission h2 {
  margin: 0;
  max-width: 20ch;
  color: var(--cream);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.35;
  text-wrap: balance;
}

.about-mission h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #f0cf8a, #e8a659 55%, #d1954a);
  background-clip: text;
  color: transparent;
}

.about-mission__copy p {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
  color: rgb(254 247 224 / 0.78);
  text-wrap: pretty;
}

.about-mission__blend {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgb(254 247 224 / 0.14);
  border-radius: 28px;
  background: rgb(254 247 224 / 0.04);
}

.about-mission__blend-title {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sunlight);
}

.about-mission__pillars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-pillar {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-block: 20px;
}

.about-pillar + .about-pillar {
  border-top: 1px solid rgb(254 247 224 / 0.1);
}

.about-pillar__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgb(240 207 138 / 0.12);
  color: var(--sunlight);
}

.about-pillar:nth-child(2) .about-pillar__icon {
  background: var(--sun);
  color: var(--ink);
}

.about-pillar__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.about-pillar__text strong {
  font: 700 20px/1.4 var(--font-display);
  color: var(--cream);
}

.about-pillar__text span {
  font-size: 15px;
  line-height: 1.7;
  color: rgb(254 247 224 / 0.72);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .about-mission__copy > *,
    .about-pillar {
      animation: about-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }

  @keyframes about-rise {
    from {
      opacity: 0;
      translate: 0 20px;
    }

    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

@media (max-width: 959px) {
  .about-mission__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

/* DNA strip */
.about-dna {
  padding: 110px 0;
}

.about-dna__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.about-page .about-dna h2 {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.3;
}

.about-dna h2 span {
  font-family: var(--font);
  color: var(--rust);
}

.about-dna__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: underline;
  text-underline-offset: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.about-dna__genes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-gene {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.about-gene span {
  font: 800 12px var(--font);
  opacity: 0.6;
}

.about-gene:hover {
  transform: translateY(-3px);
}

.about-gene--0 {
  background: var(--ink);
  color: var(--cream);
}

.about-gene--0:hover {
  color: var(--cream);
}

.about-gene--1 {
  background: var(--honey);
  color: var(--ink);
}

.about-gene--2 {
  background: var(--gold);
  color: var(--ink);
}

.about-gene--3 {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--ink);
}

/* Call to action */
.about-cta {
  padding: 0 0 110px;
}

.about-cta__card {
  border-radius: 32px;
  background: var(--honey);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.about-page .about-cta h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.4;
  max-width: 20ch;
}

.about-cta .button {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  white-space: nowrap;
}

.about-cta .button:hover {
  background: var(--bark);
  color: var(--cream);
}

@media (max-width: 700px) {
  .about-hero__inner {
    padding: 64px 0;
  }

  .about-hero__art {
    height: 380px;
  }

  .about-name,
  .about-dna {
    padding: 80px 0;
  }

  .about-mission__inner {
    padding: 80px 0;
  }
}

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

  .about-gene:hover {
    transform: none;
  }
}
