@font-face {
  font-family: 'Junyi Open Sans';
  src: url('/assets/junyi/open-sans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

.junyi-timeline {
  container-type: inline-size;
  position: relative;
  width: 100%;
  margin: 20px 0 40px;
  color: #2b302f;
  font-family: 'Junyi Open Sans', Arial, sans-serif;
  scroll-margin-top: 84px;
}

.junyi-timeline h2 {
  margin: 0 0 24px;
  color: #121514;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.06;
}

.junyi-timeline h2 span {
  display: block;
  color: #343a38;
  font-size: .7em;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.junyi-timeline__plot {
  --profile: polygon(0 96%, 11% 84%, 15% 90%, 24% 86%, 29% 79%, 36% 81%, 44% 73%, 58% 71%, 100% 51%, 100% 100%, 0 100%);
  --plot-stroke: max(2px, .52cqi);
  position: relative;
  overflow: hidden;
  border-bottom: var(--plot-stroke) solid #2b302f;
}
.junyi-timeline__plot::before, .junyi-timeline__plot::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: var(--profile);
}
.junyi-timeline__plot::before { background: #2b302f; }
.junyi-timeline__plot::after { background: #cf893e; transform: translateY(var(--plot-stroke)); }
.junyi-timeline__scale { display: none; }
.junyi-timeline ol { margin: 0; padding: 0; list-style: none; }
.junyi-timeline time { font-size: 1.4em; font-weight: 750; line-height: 1.04; }
.junyi-timeline p { margin: .15em 0 0; font: inherit; line-height: 1.22; }
.junyi-timeline small { font-size: .82em; text-transform: uppercase; }

@media (max-width: 989px) {
  .junyi-timeline__plot {
    --profile: polygon(0 88%, 11% 72%, 15% 79%, 24% 70%, 29% 59%, 36% 62%, 44% 47%, 58% 44%, 100% 13%, 100% 100%, 0 100%);
    height: clamp(7.5rem, 33vw, 12.5rem);
  }
  .junyi-timeline__scale {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    padding-top: .35rem;
    color: #414841;
    font-size: clamp(.625rem, 2.9vw, .8rem);
    font-weight: 700;
    text-align: center;
  }
  .junyi-timeline ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.35rem;
  }
  .junyi-timeline li { border-top: 1px solid #dbd2c2; padding: .55rem .15rem .1rem; font-size: .875rem; overflow-wrap: anywhere; }
  .junyi-timeline time { font-size: 1.22rem; }
}

@media (min-width: 570px) and (max-width: 989px) {
  .junyi-timeline ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 990px) {
  .junyi-timeline { aspect-ratio: 1200 / 393; }
  .junyi-timeline h2 { position: absolute; top: 0; left: 4.6%; margin: 0; font-size: 5.75cqi; }

  .junyi-timeline__plot {
    position: absolute;
    inset: 0 .5% 0 4%;
  }

  .junyi-timeline li {
    position: absolute;
    bottom: var(--ground);
    left: var(--x);
    width: .14cqi;
    height: var(--stem);
    background: #2b302f;
  }

  .junyi-timeline li::before {
    content: '';
    position: absolute;
    left: 50%;
    width: .53cqi;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #2b302f;
    transform: translate(-50%, -50%);
  }

  .junyi-timeline__label {
    position: absolute;
    bottom: calc(100% + .7cqi);
    left: var(--shift);
    width: var(--label-width, 10.5cqi);
    font-size: 1.1cqi;
  }

  .junyi-timeline time { font-size: 2.55cqi; }
}

.classic-about {
  --classic-copper: #cf873f;
  background: #fff;
  color: #454545;
  font-family: 'Junyi Open Sans', Arial, sans-serif;
}

.classic-about .wrap { max-width: 75rem; }
.classic-about-opening { padding-top: 1.25rem; }

.classic-about h1 {
  margin-top: 1.15rem;
  color: #846329;
  font: 600 1.375rem/1.4 'Junyi Open Sans', Arial, sans-serif;
  letter-spacing: 0;
}

.classic-about .junyi-timeline { margin-top: clamp(1.85rem, 4.6vw, 4rem); }
.classic-about .junyi-timeline h2 {
  font-family: 'Junyi Open Sans', Arial, sans-serif;
  letter-spacing: -.025em;
}

.classic-about-company, .classic-about-panels > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.classic-about-company { align-items: center; padding-block: .9rem 1.35rem; }

.classic-about-honors {
  padding: clamp(1.2rem, 3.8vw, 2.5rem);
  border-radius: .65rem;
  background: var(--classic-copper);
  color: #29231e;
}

.classic-about-honors > p { font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.3; text-transform: uppercase; }
.classic-about-honors h2 {
  font: 750 clamp(1.9rem, 4vw, 2.65rem)/1.1 'Junyi Open Sans', Arial, sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.classic-about-honors ul { list-style: none; margin: 1.55rem 0 0; padding: 0; }
.classic-about-honors li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.3rem;
  align-items: center;
  gap: .7rem 1.1rem;
  font-size: .9375rem;
}

.classic-about-honors li + li { margin-top: 1.25rem; }
.classic-honor-title { position: relative; padding-left: 1.15rem; }
.classic-honor-title::before { content: '★'; position: absolute; left: 0; }
.classic-honor-title:only-child { grid-column: 1 / -1; }
.classic-honor-role { font-weight: 650; }

.classic-about-intro h2, .classic-about-panels h2 {
  margin-bottom: 1rem;
  font: 600 clamp(1.35rem, 2.55vw, 2rem)/1.25 'Junyi Open Sans', Arial, sans-serif;
  letter-spacing: -.025em;
}

.classic-about-intro p + p { margin-top: 1rem; }
.classic-about-panels { background: #f7f7f7; }
.classic-about-panels > .wrap { padding-block: clamp(2rem, 5vw, 4rem); }
.classic-about-panels h2 { font-size: 1.2rem; }

.classic-about-photos { padding-block: clamp(1.8rem, 4vw, 3.1rem); }
.classic-about-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.65rem, 1.5vw, 1.3rem);
}
.classic-about-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.classic-about-photos .text-link { margin-top: .9rem; }

@media (max-width: 760px) {
  .classic-about-company, .classic-about-panels > .wrap { grid-template-columns: minmax(0, 1fr); }
  .classic-about-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .classic-about-honors li { grid-template-columns: minmax(0, 1fr); row-gap: .18rem; }
  .classic-honor-role { padding-left: 1.15rem; }
}
