.kh-about-history {
  --history-width: min(1180px, calc(100% - 88px));
  --history-text: var(--stage-text);
  --history-muted: var(--stage-muted);
  --history-accent: var(--stage-warm);
  --history-line: var(--stage-line);
  --history-panel: #111e29;
  background: var(--stage);
  color: var(--history-text);
}

.kh-about-history::before {
  background: none;
}

.kh-about-history :is(main, .site-footer) .page-shell {
  width: var(--history-width);
  margin-inline: auto;
}

.kh-about-history main .breadcrumb {
  margin-block: 0;
  padding-block: 20px 0;
  color: var(--history-muted);
  font-size: 13px;
  line-height: 1.8;
}

.kh-about-history .kh-parent-top {
  padding-block: 0 10px;
}

.kh-about-history .kh-parent-navigation a {
  padding: 0;
  border: 0;
  color: var(--history-accent);
  font-size: 14px;
}

.kh-history-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 254px;
  padding: 26px 34px;
  border: 1px solid var(--history-line);
  border-radius: 8px;
  background: linear-gradient(108deg, #182a34, #0d1927);
}

.kh-history-hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -137px;
  width: 578px;
  aspect-ratio: 1;
  background: url("./about-showcase-art.png") 100% 0 / 200% 200% no-repeat;
  opacity: .65;
  mask-image: linear-gradient(90deg, transparent, black 55%),
    linear-gradient(180deg, transparent, black 35%);
  mask-composite: intersect;
  pointer-events: none;
  content: "";
}

.kh-about-history .kh-history-hero .section-kicker {
  margin: 0;
  color: var(--history-accent);
  font-size: 14px;
  font-weight: 700;
}

.kh-history-hero h1,
.kh-history-journey h2 {
  color: var(--history-text);
  font-family: var(--serif);
  line-height: 1.22;
}

.kh-history-hero h1 {
  margin: 7px 0 11px;
  font-size: clamp(39px, 4.2vw, 55px);
}

.kh-history-hero .inner-lead {
  margin: 0;
  color: var(--history-muted);
  font-size: 17px;
}

.kh-about-history .kh-history-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px solid var(--history-line);
  border-radius: 5px;
  background: #0e1b27;
  color: var(--history-accent);
  font-size: 14px;
  font-weight: 700;
}

.kh-history-jump::after {
  content: "↓" / "";
}

.kh-about-history .kh-history-topics,
.kh-about-history .kh-history-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  font-size: 14px;
}

.kh-history-topics {
  padding-block: 6px;
  border-bottom: 1px solid var(--history-line);
}

.kh-history-topics a,
.kh-history-topics [aria-current] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.kh-history-topics [aria-current] {
  font-weight: 700;
}

.kh-history-topics a,
.kh-history-follow a {
  color: var(--history-accent);
}

.kh-history-topics a::after,
.kh-history-action::after,
.kh-history-follow a[data-inline-contact]::after {
  content: "→" / "";
}

.kh-about-history main [id] {
  scroll-margin-top: 110px;
}

.kh-history-journey {
  margin-top: 26px;
}

.kh-history-journey h2 {
  margin: 0 0 8px;
  font-size: 33px;
  text-wrap: balance;
}

.kh-history-journey h2 > span {
  display: inline-block;
}

.kh-history-journey .kh-promo-lead,
.kh-history-details p {
  color: var(--history-muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

.kh-history-journey .kh-promo-lead {
  margin: 0 0 15px;
}

.kh-history-timeline {
  --history-rail: 25px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--history-line);
  border-radius: 7px;
  background: linear-gradient(108deg, #192b35, var(--history-panel));
  list-style: none;
}

.kh-history-timeline::before {
  position: absolute;
  z-index: 1;
  top: 33px;
  bottom: 32px;
  left: var(--history-rail);
  width: 1px;
  background: #b49a73;
  pointer-events: none;
  content: "";
}

.kh-history-timeline li + li {
  border-top: 1px solid var(--history-line);
}

.kh-about-history .kh-history-row {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  min-height: 102px;
  padding: 14px 20px 14px 45px;
  color: var(--history-text);
}

.kh-history-row::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(var(--history-rail) - 4px);
  width: 9px;
  height: 9px;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid var(--history-accent);
  background: #1e2c34;
  pointer-events: none;
  content: "";
}

.kh-history-year {
  color: var(--history-accent);
  font: 600 29px / 1.15 Georgia, serif;
  text-align: left;
  white-space: nowrap;
}

.kh-history-details h3 {
  margin: 0 0 4px;
  color: var(--history-text);
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}

.kh-history-details p {
  margin: 0;
}

.kh-history-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--history-accent);
  font-size: 14px;
  font-weight: 700;
}

.kh-about-history a.kh-history-row:hover {
  background: #1b2b37;
}

.kh-history-jump:hover,
.kh-about-history a.kh-history-row:hover .kh-history-action {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kh-about-history .kh-history-follow {
  justify-content: space-between;
  padding-block: 8px 15px;
}

.kh-history-follow > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 15px;
}

.kh-history-follow a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  max-width: 100%;
}

.kh-history-follow a:not([data-inline-contact])::before {
  content: "←" / "";
}

.kh-about-history .kh-history-follow a[data-inline-contact] {
  padding: 7px 12px;
  border: 1px solid var(--history-line);
  border-radius: 5px;
  background: linear-gradient(108deg, #f6d6a8, #d7ac75);
  color: #131b22;
  font-size: 14px;
  font-weight: 700;
}

.kh-about-history .kh-history-follow a[data-inline-contact]:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kh-about-history :is(main, .site-footer) a:focus-visible {
  outline: 2px solid var(--history-accent);
  outline-offset: 3px;
}

.kh-about-history main .kh-history-row:focus-visible {
  outline-offset: -3px;
}

.kh-about-history .site-footer {
  padding: 0;
  border: 0;
  background: none;
}

.kh-about-history .footer-inner {
  display: grid;
  gap: 5px;
  padding-top: 17px;
  border-top: 1px solid var(--history-line);
}

.kh-about-history .footer-inner > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
}

.kh-about-history .footer-inner p {
  margin: 0;
  color: var(--history-muted);
  font-size: 14px;
}

.kh-about-history .footer-brand {
  color: var(--history-accent);
}

.kh-about-history .footer-nav {
  justify-content: flex-start;
  gap: 2px 16px;
  max-width: none;
}

.kh-about-history .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--history-muted);
  font-size: 13px;
}

.kh-about-history .footer-nav a:hover {
  color: var(--history-accent);
  text-decoration: underline;
}

.kh-about-history .footer-note {
  margin-block: 6px 0;
  padding-block: 0 20px;
  border: 0;
  color: var(--history-muted);
  font-size: 12px;
  text-wrap: pretty;
}

.kh-about-history .kh-contact-float {
  top: 43%;
  right: 0;
  bottom: auto;
  width: 39px;
  min-width: 0;
  min-height: 94px;
  padding: 10px 8px;
  border-radius: 6px 0 0 6px;
  writing-mode: vertical-rl;
  letter-spacing: .14em;
}

@media (max-width: 780px) {
  .kh-about-history .kh-history-row {
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: 14px;
  }

  .kh-history-action {
    grid-column: 2;
  }

  .kh-history-year {
    font-size: 25px;
  }
}

@media (max-width: 700px) {
  .kh-about-history {
    --history-width: calc(100% - 51px);
  }

  .kh-about-history :is(main, .site-footer) .page-shell {
    margin-left: 16px;
    margin-right: 35px;
  }

  .kh-about-history main .breadcrumb {
    padding-top: 17px;
    font-size: 12px;
  }

  .kh-about-history .kh-parent-top {
    padding-bottom: 8px;
  }

  .kh-history-hero {
    min-height: 0;
    padding: 19px 15px;
  }

  .kh-history-hero::after {
    right: -102px;
    bottom: -54px;
    width: 359px;
    opacity: .4;
  }

  .kh-history-hero .inner-lead {
    font-size: 15px;
  }

  .kh-about-history .kh-history-jump,
  .kh-about-history .kh-history-topics,
  .kh-about-history .kh-history-follow {
    font-size: 13px;
  }

  .kh-about-history .kh-history-topics,
  .kh-about-history .kh-history-follow {
    gap: 0 15px;
  }

  .kh-about-history main [id] {
    scroll-margin-top: 80px;
  }

  .kh-history-journey {
    margin-top: 19px;
  }

  .kh-history-journey h2 {
    font-size: 25px;
  }

  .kh-history-journey .kh-promo-lead,
  .kh-history-details p {
    font-size: 14px;
  }

  .kh-about-history .kh-history-follow a[data-inline-contact],
  .kh-about-history .footer-inner p {
    font-size: 13px;
  }

  .kh-history-follow > div {
    gap: 2px 12px;
  }

  .kh-about-history .kh-contact-float {
    width: 30px;
    padding-inline: 5px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .kh-history-journey h2 > span {
    display: block;
  }

  .kh-history-timeline {
    --history-rail: 18px;
  }

  .kh-about-history .kh-history-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
    padding: 12px 12px 13px 34px;
  }

  .kh-history-row::before {
    top: 26px;
  }

  .kh-history-action {
    grid-column: 1;
    font-size: 13px;
  }

  .kh-history-year {
    font-size: 24px;
  }

  .kh-history-details h3 {
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .kh-history-hero h1 {
    font-size: 35px;
  }

  .kh-history-journey h2 {
    font-size: 22px;
  }
}
