@import url("type-tokens.css?v=2");

/* About: shared typography and spacing */
.about-page {
  --about-ink: var(--gray-800);
  --about-muted: var(--gray-500);
  --about-line: var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 104px;
  padding-bottom: 100px;
  width: 100%;
  color: var(--about-ink);
}

.about-page section {
  width: 100%;
  min-width: 0;
}

.about-page h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.45;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.about-page h3 {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -.035em;
  word-break: keep-all;
}

.about-page p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.about-page .medium-text {
  font-size: var(--type-16, 16px);
  line-height: 1.85;
  color: var(--about-muted);
}

.about-eyebrow,
.about-page .large-text,
.about-page .small-text {
  font-size: var(--type-12, 12px);
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--action-primary);
}

/* Classroom hero */
#about-banner-container {
  min-height: 510px;
  padding: 160px var(--space-32) 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.38)), url('../img/about_bn.webp') center / cover;
}

#about-bn-title {
  width: min(350px, 85%);
}

#about-bn-title svg {
  display: block;
  width: 100%;
  height: auto;
}

#about-bn-title svg path {
  fill: var(--gray-white);
}

#about-bn-lead {
  color: var(--gray-white);
  text-align: center;
  font-size: 19px;
  line-height: 1.8;
  letter-spacing: -.025em;
}

.about-hero-caption {
  color: var(--gray-300);
  font-size: var(--type-12, 12px);
  letter-spacing: .06em;
}

/* Learning journey */
#about-features,
#about-objective {
  max-width: var(--public-frame-width);
  padding: 0 var(--space-40);
  margin: 0 auto;
}

.about-section-heading,
#about-ob-title-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-bottom: var(--space-40);
}

.about-section-heading h2 {
  margin-top: -8px;
}

.about-section-heading > p:last-child {
  font-size: var(--type-16, 16px);
  line-height: 1.85;
  color: var(--about-muted);
}

.about-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--about-line);
  border-bottom: 1px solid var(--about-line);
}

.about-journey-card {
  padding: 26px var(--space-24) 30px;
  min-width: 0;
}

.about-journey-card:first-child {
  padding-left: 0;
}

.about-journey-card:last-child {
  padding-right: 0;
}

.about-journey-card + .about-journey-card {
  border-left: 1px solid var(--about-line);
}

.about-step {
  display: block;
  font-size: var(--type-12, 12px);
  letter-spacing: .075em;
  color: var(--gray-500);
}

.about-page .about-icon {
  display: block;
  width: 80px;
  height: 80px;
  flex: none;
  margin: var(--space-24) 0 var(--space-20);
  color: var(--gray-800);
  fill: none;
}

.about-journey-card h3 {
  font-size: 19px;
  margin-bottom: var(--space-12);
}

.about-journey-card > p {
  font-size: var(--type-14, 14px);
  line-height: 1.85;
  color: var(--about-muted);
}

.about-ai-note {
  margin-top: var(--space-32);
  padding: 34px var(--space-40);
  background: var(--gray-100);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: var(--space-40);
  align-items: center;
}

.about-ai-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 76px;
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: 1;
  color: var(--action-primary);
}

.about-ai-number span {
  display: block;
  margin-top: var(--space-12);
  font-size: var(--type-12, 12px);
  font-weight: 500;
  letter-spacing: .1em;
}

.about-ai-copy h3 {
  margin: 6px 0 10px;
}

.about-ai-copy > p:last-child {
  font-size: var(--type-14, 14px);
  line-height: 1.85;
  color: var(--about-muted);
}

/* Instructor */
#about-instructor {
  background: var(--gray-100);
  padding: 72px var(--space-40);
}

#about-instructor-con {
  max-width: var(--public-content-width);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: var(--space-64);
  align-items: center;
}

#about-instructor-img {
  width: 100%;
  aspect-ratio: 468 / 545;
  border-radius: var(--radius-card);
  background: url('../img/profile01.webp') center / cover;
}

#about-instructor-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

#about-instructor-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

#about-instructor-imgs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: var(--space-16);
  max-width: var(--public-content-width);
  margin: var(--space-32) auto 0;
}

.about-instructor-thumb {
  height: 160px;
  border-radius: var(--radius-control);
  background-position: center 35%;
  background-size: cover;
}

.about-instructor-thumb:nth-child(1) {
  background-image: url('../img/profile02.webp');
}

.about-instructor-thumb:nth-child(2) {
  background-image: url('../img/profile03.webp');
}

.about-instructor-thumb:nth-child(3) {
  background-image: url('../img/profile04.webp');
}

.about-instructor-thumb:nth-child(4) {
  background-image: url('../img/profile05.webp');
}

/* Values */
#about-ob-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

#about-ob-con {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--space-24);
}

.about-ob-card {
  padding: 28px;
  border: 1px solid var(--about-line);
  border-radius: var(--radius-card);
}

.about-ob-card-title h3 {
  margin: 14px 0 var(--space-12);
  font-size: 25px;
}

.about-ob-card-title h3 b {
  font-weight: 600;
}

.about-ob-card .medium-text {
  font-size: var(--type-14, 14px);
}

/* Career proof */
#about-career-container {
  padding: 72px var(--space-40);
  background: var(--gray-800);
}

#about-career-title-area,
#about-career-area {
  max-width: var(--public-content-width);
  margin: 0 auto;
}

#about-career-title-area {
  margin-bottom: var(--space-40);
}

#about-career-title-area .large-text {
  color: var(--brand-lime);
}

#about-career-title-area h2 {
  color: var(--gray-white);
  margin-top: var(--space-12);
}

#about-career-list {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 0;
  border-top: 1px solid var(--gray-700);
  border-left: 1px solid var(--gray-700);
}

.about-career-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 90px;
  padding: 18px;
  border-right: 1px solid var(--gray-700);
  border-bottom: 1px solid var(--gray-700);
}

.about-career-logo a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.about-career-logo img {
  width: 100%;
  max-width: 120px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}

/* Closing */
#about-slog {
  padding: 0 var(--space-24);
  text-align: center;
}

#about-slog h2 {
  font-size: clamp(24px,3vw,40px);
}

#about-slog .large-text {
  margin-top: 14px;
  color: var(--about-muted);
  letter-spacing: 0;
  font-size: var(--type-16, 16px);
}

.about-contact-link {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 15px var(--space-24);
  margin-top: 30px;
  border-radius: var(--radius-control);
  background: var(--action-primary);
  color: var(--gray-white);
  font-size: var(--type-14, 14px);
  font-weight: 600;
}

.about-contact-link:hover {
  background: var(--action-primary-hover);
}

.about-contact-link span {
  color: inherit;
}

.about-contact-link:focus-visible {
  outline: 2px solid var(--action-primary);
  outline-offset: 5px;
}

@media (max-width: 1023px) {
  .about-page {
    gap: 76px;
  }

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

  .about-journey-card {
    padding: 26px var(--space-24);
  }

  .about-journey-card:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .about-journey-card:nth-child(n+3) {
    border-top: 1px solid var(--about-line);
  }

  #about-instructor-con {
    gap: var(--space-32);
  }

  #about-instructor-img {
    align-self: start;
  }

  #about-career-list {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .about-ob-card {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .about-page {
    gap: 60px;
    padding-bottom: var(--space-64);
  }

  .about-page h2 {
    font-size: 26px;
  }

  #about-banner-container {
    min-height: 390px;
    padding: var(--space-120) var(--space-20) 50px;
    gap: var(--space-24);
  }

  #about-bn-title {
    width: 250px;
  }

  #about-bn-lead {
    font-size: var(--type-14, 14px);
  }

  .about-hero-caption {
    font-size: var(--type-12, 12px);
  }

  #about-features,
  #about-objective {
    padding: 0 var(--space-20);
  }

  .about-section-heading,
  #about-ob-title-area {
    gap: 14px;
    margin-bottom: 28px;
  }

  .about-section-heading > p:last-child,
  .about-page .medium-text {
    font-size: var(--type-16, 16px);
  }

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

  .about-journey-card,
  .about-journey-card:first-child,
  .about-journey-card:last-child,
  .about-journey-card:nth-child(3) {
    padding: var(--space-24) 0;
    display: grid;
    grid-template-columns: 68px minmax(0,1fr);
    column-gap: var(--space-20);
  }

  .about-journey-card + .about-journey-card {
    border-left: 0;
    border-top: 1px solid var(--about-line);
  }

  .about-step {
    grid-column: 2;
    font-size: var(--type-12, 12px);
    margin-bottom: var(--space-8);
  }

  .about-page .about-icon {
    width: 68px;
    height: 68px;
    margin: 0;
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
  }

  .about-journey-card h3 {
    grid-column: 2;
    font-size: var(--type-18, 18px);
    margin-bottom: var(--space-8);
  }

  .about-journey-card > p {
    grid-column: 2;
    font-size: var(--type-14, 14px);
    line-height: 1.8;
  }

  .about-ai-note {
    grid-template-columns: minmax(0,1fr);
    padding: 26px var(--space-24);
    gap: var(--space-24);
    margin-top: var(--space-24);
  }

  .about-ai-number {
    font-size: 58px;
    display: flex;
    align-items: center;
    gap: var(--space-20);
  }

  .about-ai-number span {
    margin: 0;
  }

  .about-ai-copy h3 {
    font-size: 21px;
  }

  #about-instructor {
    padding: var(--space-40) var(--space-20);
  }

  #about-instructor-con {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
  }

  #about-instructor-img {
    max-height: 420px;
    aspect-ratio: 1 / 1.05;
    background-position: center 30%;
  }

  #about-instructor-imgs {
    gap: var(--space-8);
    margin-top: var(--space-24);
  }

  .about-instructor-thumb {
    height: auto;
    aspect-ratio: .8;
    border-radius: var(--radius-control);
  }

  #about-ob-con {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-12);
  }

  .about-ob-card {
    padding: var(--space-24);
  }

  .about-ob-card-title h3 {
    font-size: 23px;
    margin: var(--space-8) 0;
  }

  #about-career-container {
    padding: 44px var(--space-20);
  }

  #about-career-list {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .about-career-logo {
    padding: var(--space-16) 10px;
    height: 72px;
  }

  #about-career-title-area {
    margin-bottom: 28px;
  }

  #about-slog h2 {
    font-size: 24px;
  }
}

/* Instructor profile: accessible disclosure, closed by default. */
.about-page .instructor-name {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:var(--space-8) 14px;
  margin:0;
}

.about-page .instructor-name strong {
  font-size:24px;
  color:var(--about-ink,var(--gray-800));
}

.about-page .instructor-name span {
  font-size:14px;
  color:var(--about-muted);
}

.about-page .instructor-identity {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-16);
  flex-wrap:wrap;
}

.about-page .instructor-name {
  flex-direction:column;
  gap:var(--space-4);
}

.about-page .profile-open-button {
  display:inline-flex;
  align-items:center;
  gap:var(--space-16);
  min-height:44px;
  padding:var(--space-8) 14px;
  background:transparent;
  border:1px solid var(--gray-200);
  border-radius:var(--radius-small);
  font:inherit;
  font-size:14px;
  color:var(--gray-700);
  cursor:pointer;
  white-space:nowrap;
}

.about-page .profile-open-button:hover {
  border-color:var(--action-primary);
  color:var(--action-primary);
}

.about-page :is(.profile-open-button, .profile-close-button):focus-visible {
  outline:2px solid var(--action-primary);
  outline-offset:4px;
}

html.profile-dialog-open {
  overflow:hidden;
}

.about-page dialog.instructor-profile {
  width:min(900px,calc(100vw - 48px));
  max-width:none;
  max-height:85dvh;
  padding:0;
  margin:auto;
  border:0;
  border-radius:var(--radius-card);
  background:var(--gray-white);
  color:var(--gray-800);
  overflow:auto;
  overscroll-behavior:contain;
  box-shadow:0 24px 80px #0004;
}

.about-page dialog.instructor-profile::backdrop {
  background:rgba(15,13,20,.6);
}

.about-page .profile-dialog-bar {
  position:sticky;
  top:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-16);
  padding:var(--space-12) var(--space-32);
  border-bottom:1px solid var(--gray-200);
  background:var(--gray-white);
}

.about-page .profile-dialog-bar > span {
  color:var(--gray-500);
  font-size:11px;
  letter-spacing:.1em;
}

.about-page .profile-close-button {
  display:flex;
  align-items:center;
  gap:var(--space-12);
  padding:var(--space-8);
  min-height:44px;
  font:inherit;
  font-size:14px;
  background:none;
  border:0;
  cursor:pointer;
}

.about-page .profile-close-button span {
  font-size:24px;
}

.about-page .instructor-profile-body {
  margin:0;
  padding:var(--space-32);
  background:var(--gray-white);
}

.about-page .profile-eyebrow {
  margin:0 0 var(--space-12);
  color:var(--action-primary);
  font-size:12px;
  letter-spacing:.1em;
}

.about-page .profile-intro {
  max-width:860px;
}

.about-page .profile-intro h3 {
  margin:0 0 var(--space-20);
  font-size:28px;
}

.about-page .instructor-profile h3 span {
  font-size:14px;
  color:var(--about-muted);
  font-weight:400;
  margin-left:10px;
}

.about-page .instructor-profile :is(p, li) {
  font-size:15px;
  line-height:1.7;
  color:var(--about-muted);
  word-break:keep-all;
  overflow-wrap:break-word;
  text-wrap:pretty;
}

.about-page .profile-intro > p + p {
  margin-top:var(--space-12);
}

.about-page .profile-section {
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:var(--space-32);
  margin-top:var(--space-32);
  padding-top:var(--space-32);
  border-top:1px solid var(--gray-200);
}

.about-page .profile-section > h3 {
  font-size:16px;
  line-height:1.6;
  color:var(--action-primary);
}

.about-page .profile-section > h3 span {
  display:block;
  margin:6px 0 0;
}

.about-page .profile-entries article + article {
  margin-top:28px;
}

.about-page .profile-entries h4 {
  font-size:20px;
  line-height:1.5;
  word-break:keep-all;
}

.about-page .profile-entries h4 span {
  margin-left:var(--space-8);
  font-size:14px;
  color:var(--about-muted);
  font-weight:400;
}

.about-page .profile-entries .profile-role {
  margin:6px 0 10px;
  color:var(--action-primary);
  font-weight:500;
}

.about-page .profile-entries h5 {
  margin:var(--space-16) 0 var(--space-8);
  font-size:15px;
}

.about-page .profile-entries ul {
  margin:var(--space-8) 0 0;
  padding-left:18px;
  list-style:disc;
}

.about-page .profile-entries li + li {
  margin-top:var(--space-4);
}

@media(max-width:767px) {
  .about-page .instructor-profile-body {
    padding:var(--space-24) var(--space-20);
  }

  .about-page .profile-section {
    grid-template-columns:1fr;
    gap:18px;
    margin-top:var(--space-24);
    padding-top:var(--space-24);
  }

  .about-page .profile-section > h3 span {
    display:inline;
    margin-left:10px;
  }

  .about-page .profile-entries h4 {
    font-size:18px;
  }

  .about-page .instructor-profile :is(p, li) {
    font-size:14px;
  }
}

.about-page #about-instructor-img {
  align-self:start;
}

@media(max-width:767px) {
  .about-page dialog.instructor-profile {
    width:calc(100vw - 24px);
    max-height:90dvh;
  }

  .about-page .profile-dialog-bar {
    padding:var(--space-8) var(--space-16);
  }

  .about-page .instructor-identity {
    align-items:flex-start;
  }

  .about-page .instructor-name strong {
    font-size:22px;
  }

  .about-page .instructor-name span {
    font-size:13px;
  }
}

.about-page #about-instructor-text > .instructor-identity {
  margin-top:var(--space-16);
}

.about-page #about-instructor-text > .profile-open-button {
  align-self:flex-start;
  margin-top:var(--space-8);
}

/* Reading text and supporting metadata use distinct semantic roles. */
.about-page .medium-text {
  color:var(--text-muted);
}
