/* About page switching and the cooperation contact panel. */
.about-panel[hidden] { display: none; }
.site-content-scroll > #aboutView.about-stage.runhe-page-view {
  height: auto;
  min-height: calc(100svh - var(--site-header-height, 5.125rem));
  flex: 0 0 auto;
  overflow: visible;
}

/* Original design masks: local copy/index shading on desktop, backdrop on small screens. */
@media (min-width: 1024px) {
  .about-content { position: relative; isolation: isolate; background: none; }
  .about-content::before {
    content: "";
    position: absolute;
    inset: -1rem -1.25rem 1.25rem;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(13,20,22,0), rgba(13,20,22,.46) 8%, rgba(13,20,22,.46) 92%, rgba(13,20,22,0));
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 85%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 85%, transparent);
  }
  .about-index button > span:not(.index-number) { position: relative; isolation: isolate; }
  .about-index button > span:not(.index-number)::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 14rem;
    height: 4.75rem;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(13,20,22,0), rgba(13,20,22,.27) 12%, rgba(13,20,22,.27) 88%, rgba(13,20,22,0));
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  }
}
@media (max-width: 1023px) {
  .about-background::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #1D24274D, #1D242799 36%, #1D242799 75%, #1D242780);
  }
}

.about-index button {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 6rem;
  align-items: center;
  gap: 0.6875rem;
  padding: 1.25rem 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
  text-decoration: none;
  transition: none;
}
.about-index button > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.about-index button .index-number { flex: 0 0 auto; }
.about-index button :is(strong, small, .index-number) { color: inherit; }
.about-index button svg { flex: 0 0 auto; margin-left: auto; }
.about-index button:hover:where(:not(.rh-hover-reset)),
.about-index button.active { color: var(--orange); }
.about-index button::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.875rem;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: none;
}
.about-index button.active::after { transform: scaleX(1); }
.about-index button:focus-visible { outline: 2px solid var(--orange); outline-offset: 0.25rem; }

.about-contact[hidden] { display: none; }
.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 1.875rem;
  max-width: 56.25rem;
  margin: 1.375rem auto 0;
  padding: 1.125rem 1.25rem;
  border-top: 1px solid #FFFFFF33;
  border-bottom: 1px solid #FFFFFF33;
  background: #1D242733;
  text-align: left;
}
.about-contact-copy, .about-contact-detail { min-width: 0; }
.about-contact-kicker { margin: 0 0 .4375rem; color: var(--orange); font: 700 .625rem/1.4 Consolas, monospace; letter-spacing: .08em; }
.about-contact-title { margin: 0; color: #fff; font-size: 1.0625rem; font-weight: 700; line-height: 1.45; }
.about-contact-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .875rem 1.125rem; margin-top: .8125rem; }
.about-contact-detail > span { display: block; margin-bottom: .25rem; color: var(--muted-on-dark); font-size: .625rem; line-height: 1.4; }
.about-contact-detail a, .about-contact-detail strong { display: block; color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.about-contact-phones { display: flex; flex-wrap: wrap; gap: 0 .25rem; }
.about-contact-phones b { color: #fff; font-size: .75rem; line-height: 1.55; }
.about-contact-detail a:hover:where(:not(.rh-hover-reset)) { color: var(--orange); }
.about-contact-action { display: inline-flex; align-items: center; gap: .5rem; margin-top: .875rem; padding: .5rem .75rem; border: 1px solid var(--orange); color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1.3; }
.about-contact-action:hover:where(:not(.rh-hover-reset)) { background: var(--orange); color: var(--carbon); }
.about-contact-action svg { width: .875rem; height: .875rem; }
.about-contact-qr { display: flex; align-items: end; gap: .5rem; }
.about-contact-qr-card { display: flex; flex-direction: column; align-items: center; gap: .3125rem; }
.about-contact-qr-card img { display: block; width: 4.75rem; height: 4.75rem; padding: .25rem; background: #fff; object-fit: contain; }
.about-contact-qr-card span { color: var(--muted-on-dark); font-size: .5625rem; line-height: 1.3; white-space: nowrap; }
@media (max-width: 900px) {
  .about-index button { min-height: 5.5rem; padding: 1rem 0; }
}
@media (max-width: 820px) {
  .about-contact { grid-template-columns: 1fr; gap: 1.0625rem; }
  .about-contact-qr { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .about-index button { min-height: 4.75rem; padding: 1rem 0; border-bottom: 1px solid #FFFFFF24; }
  .about-index button:last-child { border-bottom: 0; }
  .about-index button svg { display: block; }
}
@media (max-width: 560px) {
  .about-contact { margin-top: 1.125rem; padding: 1rem 0; background: transparent; }
  .about-contact-title { font-size: 1rem; }
  .about-contact-details { grid-template-columns: 1fr; gap: .625rem; margin-top: .6875rem; }
  .about-contact-detail a, .about-contact-detail strong { font-size: .6875rem; }
  .about-contact-qr-card img { width: 4.5rem; height: 4.5rem; }
}
