@font-face {
  font-family: "Qinghe About";
  src: url("assets/about-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --paper: #faf9f6;
  --cool: #f6fafa;
  --ink: #303636;
  --accent: #306f6c;
  --rule: #d9e5e2;
  --gutter: clamp(24px, 6vw, 96px);
  --system: system-ui, "Microsoft YaHei", sans-serif;
  --serif: "Qinghe About", "Source Han Serif SC", "Songti SC", SimSun, serif;
}
html:lang(en) { --serif: Georgia, serif; }
* { box-sizing: border-box; }
body { margin: 0; color: #4a4a4a; background: var(--paper); font: 400 16px/1.75 var(--system); }
h1,h2,h3,p,dl,dd,ul,ol { margin: 0; }
h1,h2 { color: var(--ink); font-family: var(--serif); }
h2 { font-size: 32px; font-weight: 400; line-height: 44px; letter-spacing: 1px; }
h3, #events h4 { color: var(--ink); font: 500 18px/28px var(--system); }
h2 + p, p + p { margin-top: 14px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; top: 0; left: 16px; transform: translateY(-110%); z-index: 9; background: white; padding: 8px 16px; }
.skip:focus { transform: none; }
.wrap { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.block { padding-block: 72px; }
.cool { background: var(--cool); }
.eyebrow, small, .note { font-size: 12px; line-height: 18px; }
.eyebrow { color: var(--accent); letter-spacing: 2px; margin-bottom: 9px; }
.note { color: #6e6e6e; line-height: 1.7; }
.source { color: var(--accent); text-underline-offset: 4px; text-decoration-color: #a6c2bf; }
.source:hover { text-decoration-color: currentColor; }
.source span { white-space: nowrap; }
.mast { background: var(--paper); }
.about-banner {
  display: grid;
  align-items: center;
  min-height: 264px;
  background: linear-gradient(90deg, rgb(13 65 62 / 56%), transparent 67%),
              url("assets/about-banner.webp") center / cover, #567e7a;
}
.about-subtitle { margin: 6px 0 0; color: #fff; font: 400 12px/18px var(--system); letter-spacing: 2px; }
.about-banner h1, .professor-bio h3 { color: #fff; font: 500 42px/60px var(--serif); letter-spacing: 0; }
.about-body { padding-block: 48px; }
.brand-intro, .research-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  column-gap: 72px;
}
.brand-copy h2, #research-title { margin-bottom: 18px; }
.brand-copy p, .research p, #events p { color: hsl(0 0% 50%); font-weight: 300; }
.brand-copy p, .research p, .professor-bio .professor-summary { font-size: 13px; line-height: 27px; }
.brand-copy p + p, .research p + p { margin-top: 12px; }
.brand-art, .research-art { width: 100%; height: 264px; object-fit: cover; object-position: center 54%; }
.platforms { margin-top: 36px; }
.platforms-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 24px; }
.platforms-heading h3, .award-block > h3 { font-size: 16px; font-weight: 700; }
.platforms-heading a { margin-left: auto; color: var(--accent); font-size: 14px; line-height: 24px; white-space: nowrap; }
.platforms ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; }
.platforms li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  grid-template-areas: "number plaque" "title plaque";
  align-content: start;
  gap: 6px 12px;
  padding-block: 12px;
  border-top: 1px solid var(--rule);
}
.plaque-slot { grid-area: plaque; align-self: start; position: relative; width: 100%; aspect-ratio: 3 / 2; }
.plaque-slot img { width: 100%; height: 100%; object-fit: contain; }
.plaque-slot--pair img { position: absolute; width: 76%; height: 72%; }
.plaque-slot--pair img:first-child { top: 0; right: 0; }
.plaque-slot--pair img:last-child { bottom: 0; left: 0; }
.platform-no { grid-area: number; }
.platform-no, .awards time { color: var(--accent); font: italic 21px/1.4 Georgia, serif; }
.platforms h4 { grid-area: title; }
.platforms h4, .awards h4 { margin: 0; color: var(--ink); font: 300 12px/24px var(--system); }
.platforms h4 small { display: block; font-size: 10px; line-height: 18px; }
.platforms a, .awards a { text-decoration: none; }
.platforms a span, .awards a span { color: var(--accent); font-size: .82em; }
.platforms a:hover, .platforms a:focus-visible, .awards a:hover, .awards a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.platforms p { font-size: 14px; line-height: 1.75; }
.products { margin-bottom: 24px; }
.three { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.research { max-width: 720px; }
.brand-copy p, .research p { text-align: justify; text-align-last: left; }
html:lang(en) .brand-copy p, html:lang(en) .research p, html:lang(en) .professor-summary { text-align: left; }
.research a { color: inherit; text-decoration: none; }
.research a:hover, .research a:focus-visible { color: var(--accent); }
.research sup { font-size: 10px; line-height: 0; vertical-align: super; }
.award-block { margin-top: 54px; }
.awards { margin-top: 24px; }
.awards article { display: grid; align-content: start; gap: 6px; padding-block: 12px; border-top: 1px solid var(--rule); }
#events time { font-family: Georgia, serif; color: var(--accent); }
.team { margin-top: 48px; }
.professor-banner { position: relative; isolation: isolate; overflow: hidden; background: #161616; color: #faf9f6; min-height: 420px; display: grid; align-items: center; }
.professor-banner picture { display: contents; }
.professor-portrait { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.professor-bio { margin-left: 38%; padding: 36px 42px 36px 0; }
.professor-bio p { margin-top: 12px; font: 300 13px/24px var(--system); color: #f1efed; }
.professor-bio h3 { font-size: 36px; line-height: 48px; }
.professor-bio .professor-roles { color: #c4dfdb; font-size: 12px; line-height: 18px; margin: 6px 0 18px; }
.professor-roles span { display: inline-block; }
.professor-summary { text-align: justify; text-align-last: left; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 18px; padding-top: 12px; border-top: 1px solid #666; }
.stats > div { display: grid; grid-template-rows: auto 1fr; align-items: start; }
.stats dd { grid-row: 1; }
.professor-bio .quantity { white-space: nowrap; }
.stats dd { color: #fff; font: 400 clamp(36px,4vw,54px)/1.1 Georgia,serif; }
.stats dd span { font-size: .55em; vertical-align: super; }
.stats dt { margin-top: 6px; color: #c4dfdb; font: 400 12px/18px var(--system); }
.professor-bio .patent-source { margin: 24px 0 0; color: #ced9d7; font-size: 10px; line-height: 18px; }
.patent-source .source { color: inherit; }
.honors-title, .timeline-head h3 { color: inherit; font: 700 16px/24px var(--system); }
.honors-title { margin: 36px 0 12px; }
.honors { display: grid; gap: 0 24px; list-style: none; padding: 0; }
.honors li { display: grid; align-content: start; justify-items: start; gap: 6px; border-top: 1px solid var(--rule); padding: 12px 0; }
.honors time { color: var(--accent); font: italic 18px/24px Georgia,serif; }
.honors a { font: 300 12px/24px var(--system); color: var(--ink); text-decoration: none; }
.honors a span, .honors a:is(:hover,:focus-visible) { color: var(--accent); }
.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.product { display: block; text-decoration: none; }
.product-stage {
  --stand-width: 72%;
  --stand-depth: clamp(15px, 2.2vw, 30px);
  --stand-edge: clamp(5px, .65vw, 9px);
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.62;
}
.product.eye .product-stage, .product.body .product-stage { --stand-width: 60%; }
.product.skin .product-stage { --stand-width: 94%; }
/* Widths account for the visible carton inside each transparent pack shot. */
.scalp .product-set { width: 55%; --box-contact: 51% 26%; --box-radius: 51%; --bottle-contact: 79% 61%; --bottle-radius: 22%; }
.eye .product-set { width: 30.6%; --box-contact: 42% 56%; --box-radius: 44%; --bottle-contact: 86% 68%; --bottle-radius: 16%; }
.body .product-set { width: 32.6%; --box-contact: 36% 57%; --box-radius: 36%; --bottle-contact: 82% 56%; --bottle-radius: 20%; }
.skin .product-set { width: 76%; --box-contact: 40% 31%; --box-radius: 42%; --bottle-contact: 69% 68%; --bottle-radius: 12%; }
.product-stage::before, .product-stage::after {
  content: "";
  position: absolute;
  left: calc((100% - var(--stand-width)) / 2);
  width: var(--stand-width);
}
.product-stage::before {
  bottom: 4px;
  height: calc(var(--stand-depth) + var(--stand-edge));
  border-radius: 50% / calc(var(--stand-depth) / 2);
  background: linear-gradient(100deg, #d3dfdb, #e6ede9 32%, #d7e2de 72%, #bfceca);
  box-shadow: 0 5px 7px -4px rgb(42 77 69 / 28%);
}
.product-stage::after {
  bottom: calc(4px + var(--stand-edge));
  height: var(--stand-depth);
  border-radius: 50%;
  background: linear-gradient(110deg, #f4f7f3, #e3ece7);
  box-shadow: inset 0 -1px 1px rgb(255 255 255 / 75%);
}
.product-set {
  position: absolute;
  z-index: 1;
  bottom: calc(4px + var(--stand-edge) + var(--stand-depth) * .26);
  inset-inline: 0;
  margin-inline: auto;
  transform-origin: center bottom;
  transition: transform .25s;
}
.product-set::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6%;
  height: 20%;
  background:
    radial-gradient(ellipse var(--box-radius) 21% at var(--box-contact), #34483e55, transparent),
    radial-gradient(ellipse var(--bottle-radius) 15% at var(--bottle-contact), #293d366e, transparent),
    var(--extra-contact, linear-gradient(transparent, transparent));
}
.skin .product-set { --extra-contact: radial-gradient(ellipse 11% 15% at 90% 67%, #293d366e, transparent); }
.product-set img { position: relative; width: 100%; height: auto; }
.product:hover .product-set { transform: scale(1.025); }
.product h3 { margin-top: 12px; text-align: center; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; }
.controls { display: flex; align-items: center; gap: 8px; }
.controls button { height: 48px; width: 48px; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.controls button:disabled { opacity: .38; cursor: default; }
#events {
  --timeline-inset: max(var(--gutter), calc((100% - 1200px) / 2));
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  padding: 0 var(--timeline-inset) 18px;
  margin: 12px 0 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--timeline-inset);
  background: linear-gradient(#aac8c3, #aac8c3) left 66px / 100% 1px no-repeat;
}
#events::-webkit-scrollbar { display: none; }
@media (any-pointer: fine) {
  #events { cursor: grab; user-select: none; scroll-snap-type: none; }
}
#events.is-dragging, #events.is-dragging a { cursor: grabbing; scroll-snap-type: none; }
#events li { flex: 0 0 clamp(276px, 30%, 360px); scroll-snap-align: start; }
#events time { display: block; position: relative; padding-bottom: 12px; font-size: 40px; line-height: 54px; }
#events time::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
#events h4 { margin: 18px 0 0; }
#events h4 a { text-decoration: none; }
#events h4 a:is(:hover, :focus-visible) { color: var(--accent); }
#events h4 { padding-right: 32px; }
#events p { max-width: 310px; margin: 6px 32px 0 0; font-size: 12px; }
@media (min-width: 1141px) {
  .platforms ol, .honors { grid-template-columns: repeat(4, minmax(0, 264px)); justify-content: space-between; }
  .platforms li { column-gap: 6px; }
}
@media (max-width: 1140px) {
  .platforms ol, .honors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .cool + .cool.block { padding-top: 24px; }
  html:lang(en) .stats { gap: 12px; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  html:lang(en) .professor-banner {
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
    align-items: stretch;
  }
  html:lang(en) .professor-banner picture { display: block; position: relative; }
  html:lang(en) .professor-portrait {
    z-index: auto;
    object-position: center 23%;
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }
  html:lang(en) .professor-bio { align-self: center; margin: 0; padding: 30px 26px 30px 18px; }
}
@media (max-width: 900px) {
  :root { --gutter: clamp(20px, 6vw, 40px); }
  .skip { left: 18px; padding: 6px 18px; }
  .about-banner {
    min-height: clamp(160px, 34vw, 224px);
    text-align: center;
    background-image: linear-gradient(90deg, rgb(13 57 54 / 48%), rgb(13 57 54 / 53%)),
                      url("assets/about-banner.webp");
    background-position: center, 58% center;
  }
  .about-banner h1 { font-size: clamp(30px, 5.4vw, 38px); line-height: 1.24; }
  .about-subtitle { margin-top: 6px; letter-spacing: .17em; }
  main h2 { font-size: clamp(23px, 4vw, 28px); font-weight: 500; line-height: 1.4; text-align: center; }
  .about-body, .block { padding-block: clamp(36px, 7vw, 54px); }
  .brand-intro, .research-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: min(100%, 580px);
    margin-inline: auto;
  }
  .brand-copy h2 + p, #research-title + p { margin-top: 0; }
  .brand-copy p, .research p, .professor-bio p {
    font-weight: 400;
    text-align: left;
    text-align-last: auto;
  }
  .brand-copy p, .research p, #events p { color: #586361; }
  .brand-art, .research-art { height: auto; aspect-ratio: 16 / 9; object-position: center; }
  .platforms { width: min(100%, 580px); margin: 36px auto 0; }
  .platforms-heading { display: grid; justify-items: center; gap: 6px; text-align: center; margin-bottom: 18px; }
  .platforms-heading h3, .honors-title, .timeline-head h3 { font-size: 17px; font-weight: 600; line-height: 1.45; }
  .platforms-heading a { margin: 0; white-space: normal; }
  .platforms ol { gap: 12px; }
  .platforms li {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "plaque" "number" "title";
    justify-items: center;
    gap: 6px;
    padding: 12px 0 6px;
    text-align: center;
  }
  .plaque-slot { width: min(100%, 106px); }
  .platform-no { font-size: 18px; }
  .platforms h4 { font-size: 13px; font-weight: 500; line-height: 1.55; text-wrap: balance; }
  .platforms h4 small { font-size: 12px; line-height: 1.5; }
  .platform-place { display: block; white-space: nowrap; }

  .team { width: min(100%, 580px); margin: 36px auto 0; }
  .professor-banner { display: block; min-height: 0; }
  .professor-portrait {
    position: static;
    width: 100%;
    height: clamp(190px, 51vw, 252px);
    object-position: center 17%;
  }
  .professor-bio { margin: 0; padding: 24px clamp(16px, 5vw, 34px); }
  .professor-bio h3, .professor-bio .professor-roles, .professor-bio .patent-source { text-align: center; }
  .professor-bio h3 { font-size: clamp(25px, 5vw, 32px); line-height: 1.32; }
  .professor-bio .professor-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; line-height: 1.55; margin: 12px 0 18px; }
  .professor-roles span { max-width: 100%; }
  .professor-roles .role-divider { display: none; }
  .stats { gap: 6px; text-align: center; }
  .stats dd { font-size: clamp(27px, 8vw, 36px); }
  .stats dt { font-size: 11px; line-height: 1.5; text-wrap: balance; }
  .professor-bio .patent-source { margin-top: 18px; font-size: 11px; }
  .honors-title { margin-top: 30px; text-align: center; }
  .honors { gap: 0 18px; }
  .honors li { padding-block: 12px; }
  .honors a { font-size: 13px; font-weight: 400; line-height: 1.55; }

  .cool + .cool.block { padding-top: 12px; }
  .products { width: min(100%, 540px); margin: 18px auto 30px; gap: 18px 12px; }
  .product h3 { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.45; text-wrap: balance; }
  .timeline-head { gap: 12px; }
  .controls { flex-shrink: 0; gap: 6px; }
  .controls button { padding: 0; border: 1px solid var(--rule); border-radius: 50%; font-size: 20px; }
  #events { margin-top: 12px; background-position: left 56px; }
  #events li { flex-basis: min(calc(81% - 6px), 330px); }
  #events time { font-size: 34px; line-height: 44px; padding-bottom: 12px; }
  #events h4 { margin-top: 18px; padding-right: 18px; font-size: 16px; font-weight: 600; line-height: 1.4; }
  #events p { margin-right: 18px; font-size: 13px; font-weight: 400; line-height: 1.65; }
}
@media (max-width: 600px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honors { grid-template-columns: 1fr; }
  .honors li { grid-template-columns: 48px 1fr; gap: 12px; align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) { .product-set { transition: none; } }
