/* About: the journey, the values and the team, as one editorial page in the site's tokens. */

.about__bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--canvas);
}

.about__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}

.about__nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.about__nav [aria-current="page"] {
  --btn-fg: var(--ink);
}

@media (max-width: 599.98px) {
  .about__nav .btn--quiet {
    display: none;
  }
}

.about__main {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 0 var(--gutter);
  outline: none;
}

.about__main h2 {
  font-size: var(--t-h2);
}

/* ---------- Hero ---------- */

.about__hero {
  display: grid;
  align-items: center;
  padding: clamp(var(--s-10), 14vh, 9rem) 0 clamp(var(--s-9), 10vh, var(--s-12));
}

.about__hero-text {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}

/* A page from the drawing set: the plant in hidden-line isometric, its data arcs in the neon */
.drawing {
  display: none;
  width: 100%;
  height: auto;
  overflow: visible;
}

.drawing path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.drawing__ground {
  stroke: var(--line-strong);
}

.drawing__line {
  stroke: var(--ink-soft);
}

.drawing__arc {
  stroke: var(--neon);
  stroke-dasharray: 3 4;
}

.drawing .drawing__spark {
  fill: var(--neon);
  stroke: none;
}

@media (min-width: 1100px) {
  .about__hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s-8);
  }

  .drawing {
    display: block;
  }
}

.about__hero h1 {
  font-size: min(var(--t-hero), 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.about__hero h1 span {
  display: block;
}

.about__hero .lede {
  max-width: 40rem;
}

/* Equal columns and equal gaps, each divider exactly halfway across its gap */
.facts {
  --facts-gap: var(--s-8);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--facts-gap);
  width: min(100%, 40rem);
  margin: var(--s-6) 0 0;
  padding: var(--s-5) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.facts li {
  position: relative;
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.facts li + li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--facts-gap) / -2);
  width: 1px;
  background: var(--line);
}

.facts__num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.facts__num span {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.facts__label {
  font-size: var(--t-small);
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Sections: an intro column beside the content ---------- */

.about__section {
  display: grid;
  gap: var(--s-7);
  padding: clamp(var(--s-10), 12vh, 8rem) 0;
  border-top: 1px solid var(--line);
}

/* The team section is the one that should fit a screen: less air above and below */
.about__section--team {
  padding-block: clamp(var(--s-7), 5vh, var(--s-10));
}

.about__intro {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}

.about__intro p {
  max-width: 30rem;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .about__section {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-10);
    align-items: start;
  }

  .about__intro {
    position: sticky;
    top: calc(var(--chrome-h) + var(--s-7));
  }

  .about__section--team {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
  }

  .about__section--team .about__intro {
    position: static;
  }
}

/* ---------- Journey: a drawn line with a marker per step; the next step is the spark ---------- */

.journey {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey li {
  position: relative;
  display: grid;
  gap: var(--s-2);
  padding: 0 0 var(--s-8) var(--s-8);
}

.journey li:last-child {
  padding-bottom: 0;
}

.journey li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1rem;
  bottom: -0.2rem;
  width: 1px;
  background: var(--line-strong);
}

.journey li:last-child::before {
  display: none;
}

.journey li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink-faint);
  background: var(--canvas);
  transform: rotate(45deg);
}

.journey .journey__now::after {
  background: var(--ink);
  border-color: var(--ink);
}

.journey .journey__next::after {
  left: -3px;
  top: 0.15rem;
  width: 15px;
  height: 15px;
  border: 0;
  background: var(--neon);
  transform: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.journey__num {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.journey h3 {
  font-size: 1.125rem;
}

.journey p {
  max-width: 36rem;
  color: var(--ink-soft);
}

/* ---------- Professors: one panel, with the neon as a faint light from its corner ---------- */

.about__band {
  position: relative;
  display: grid;
  gap: var(--s-5);
  margin: 0 0 clamp(var(--s-10), 12vh, 8rem);
  padding: clamp(var(--s-7), 5vw, var(--s-10));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--e2), var(--edge);
  overflow: hidden;
  isolation: isolate;
}

.about__band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -15%;
  bottom: -55%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--neon-wash), transparent);
  pointer-events: none;
}

.about__band p {
  max-width: 40rem;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .about__band {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--s-10);
    align-items: end;
  }

  .about__band .label {
    grid-column: 1 / -1;
  }
}

.about__band + .about__section {
  border-top: 0;
  padding-top: 0;
}

/* ---------- Values: a ruled grid, each value with its own mark ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.value {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-6);
  background: var(--canvas);
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.value p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.value__mark {
  width: 14px;
  height: 14px;
  background: var(--neon);
}

.value--vision .value__mark {
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.value--courage .value__mark {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.value--integrity .value__mark {
  border-radius: 50%;
}

.value--innovation .value__mark {
  transform: rotate(45deg) scale(0.82);
}

/* ---------- How we work ---------- */

.principles {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}

.principles li:first-child {
  padding-top: 0;
  border-top: 0;
}

.principles h3 {
  font-size: 1.0625rem;
}

.principles p {
  color: var(--ink-soft);
}

@media (min-width: 600px) {
  .principles li {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--s-6);
    align-items: baseline;
  }
}

/* ---------- Team ---------- */

/* One column, or all three side by side: never two plus an orphan */
.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8) var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  /* The row gap matches the cards' own, so the shared rows hug their content */
  .team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--s-2);
  }

  /* Side by side, the cards share row tracks: each name, role, bio and tag line starts level with its neighbours' */
  .person {
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
}

.person {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  max-width: 26rem;
}

/* Portraits sized from the window height, so the whole team section fits on one screen */
.person__photo {
  position: relative;
  width: clamp(8rem, 20vh, 12.5rem);
  aspect-ratio: 4 / 5;
  margin: 0 0 var(--s-3);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.person__role {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.person__bio {
  margin-top: var(--s-2);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.person__tags {
  font-size: var(--t-micro);
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* A narrow card breaks the line between phrases, never inside one */
.person__tags span {
  white-space: nowrap;
}

/* ---------- Advisory board: a ruled pair, each advisor led by their years ---------- */

.advisors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.advisor {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-7) var(--s-6);
  background: var(--canvas);
}

.advisor__years {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 1.8vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.advisor__years span {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.advisor__field {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}

.advisor h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

.advisor__text {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- Close ---------- */

.about__close {
  position: relative;
  display: grid;
  gap: var(--s-5);
  justify-items: start;
  padding: clamp(var(--s-10), 14vh, 9rem) 0;
  border-top: 1px solid var(--line);
  isolation: isolate;
}

.about__close::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto auto 0;
  width: min(48rem, 100%);
  height: 80%;
  background: radial-gradient(ellipse 30% 70% at 32% 0%, var(--neon-wash), transparent);
  pointer-events: none;
}

.about__close .lede {
  max-width: 38rem;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.about__foot p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5em;
}

@media (max-width: 599.98px) {
  .facts {
    --facts-gap: var(--s-6);
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--facts-gap);
  }

  .facts li + li::before {
    top: calc(var(--facts-gap) / -2);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }
}

/* Short laptop screens (around 800 px tall): smaller portraits and less air,
   so the whole team section still fits on one screen */
@media (min-width: 700px) and (max-height: 820px) {
  .about__section--team {
    padding-block: var(--s-6);
    gap: var(--s-5);
  }

  .person__photo {
    width: 16vh;
  }
}
