.history-page {
  --history-ink: #111318;
  --history-gold: #f1b423;
}

.history-content {
  width: min(1120px,calc(100% - 72px));
}

.history-intro {
  display: grid;
  grid-template-columns: minmax(310px,.8fr) 1.2fr;
  gap: 56px;
  align-items: center;
  padding: 38px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 20%,rgba(251,39,56,.38),transparent 28%),
    linear-gradient(125deg,#101318 0%,#17251e 100%);
  box-shadow: 0 22px 48px rgba(17,19,24,.14);
}

.history-intro-years {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(42px,5vw,70px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.07em;
}

.history-intro-years span {
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: normal;
}

.history-intro-years i {
  width: clamp(38px,5vw,76px);
  height: 2px;
  background: var(--pink);
}

.history-eyebrow {
  margin: 0 0 11px;
  color: #55dc73;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .24em;
}

.history-intro h2 {
  margin: 0;
  font-size: clamp(28px,3.2vw,44px);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: .02em;
}

.history-intro p:last-child {
  max-width: 570px;
  margin: 16px 0 0;
  color: #dce4df;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.9;
}

.history-year-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  margin: 34px 0 86px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(17,19,24,.07);
  backdrop-filter: blur(14px);
}

.history-year-nav a {
  position: relative;
  padding: 15px 8px 13px;
  color: #5e6963;
  border-right: 1px solid var(--line);
  font-size: 15px;
  font-weight: 950;
  text-align: center;
  letter-spacing: .06em;
  transition: color .2s ease,background .2s ease;
}

.history-year-nav a:last-child { border-right: 0; }
.history-year-nav a:hover,.history-year-nav a:focus-visible { color: #fff; background: var(--green); outline: 0; }

.history-year {
  scroll-margin-top: 78px;
  margin: 0 0 112px;
}

.history-year-heading {
  position: relative;
  display: grid;
  grid-template-columns: clamp(180px,23vw,280px) 1fr;
  align-items: end;
  margin-bottom: 35px;
  padding-bottom: 21px;
  border-bottom: 5px solid var(--green);
}

.history-year-heading::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 25%;
  height: 5px;
  background: var(--pink);
  content: "";
}

.history-year-number {
  color: var(--pink);
  font-size: clamp(50px,6.2vw,78px);
  font-weight: 950;
  line-height: .88;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.history-year-heading h2 {
  margin: 0;
  color: var(--history-ink);
  font-size: clamp(23px,2.8vw,34px);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -.025em;
}


.history-card-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 25px;
}

.history-card-grid--banner { grid-template-columns: repeat(2,minmax(0,1fr)); }
.history-feature-grid { margin-bottom: 30px; }

.history-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 13px 32px rgba(17,19,24,.085);
  transition: transform .25s ease,box-shadow .25s ease;
}

.history-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(17,19,24,.14);
}

.history-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef2ef;
  aspect-ratio: 1 / 1;
}

.history-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.75,.2,1);
}

.history-card:hover .history-card-image img { transform: scale(1.035); }

.history-card-link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: rgba(35,38,38,.9);
  border-radius: 50%;
  box-shadow: 0 5px 13px rgba(17,19,24,.22);
}

.history-card-link img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: none !important;
}

.history-card-body {
  position: relative;
  min-height: 116px;
  padding: 19px 20px 21px;
  border-top: 4px solid var(--green);
}

.history-card-body h3 {
  margin: 0;
  color: var(--history-ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.35;
}

.history-card-body p {
  margin: 7px 0 0;
  color: #5d6761;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
}

.history-card.is-grandprix {
  border-color: rgba(241,180,35,.72);
  box-shadow: 0 16px 38px rgba(201,137,0,.17);
}

.history-card.is-grandprix .history-card-body { border-top-color: var(--history-gold); }

.history-grandprix-badge {
  display: inline-block;
  margin: 0 0 9px;
  padding: 5px 8px 4px;
  color: #17140b;
  background: var(--history-gold);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
}

.history-card--feature {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr);
  color: #fff;
  background: var(--history-ink);
}

.history-card--feature .history-card-image {
  aspect-ratio: 1 / 1;
}

.history-card--feature .history-card-body {
  display: flex;
  min-height: 100%;
  padding: 34px;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
  border-left: 7px solid var(--history-gold);
}

.history-card--feature .history-card-body h3 { color: #fff; font-size: clamp(28px,3.2vw,43px); }
.history-card--feature .history-card-body p { color: #dce1de; font-size: 15px; }

.history-card--banner .history-card-image { aspect-ratio: 1 / 1; }
.history-card--banner .history-card-body { min-height: 105px; }
.history-card--banner .history-card-body h3 { font-size: 19px; }

@media (max-width: 900px) {
  .history-intro { grid-template-columns: 1fr; gap: 27px; }
  .history-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-card--feature { grid-template-columns: 1fr; }
  .history-card--feature .history-card-body { min-height: auto; border-top: 6px solid var(--history-gold); border-left: 0; }
}

@media (max-width: 680px) {
  .history-content { width: calc(100% - 30px); }
  .history-intro { padding: 28px 23px 30px; }
  .history-intro-years { gap: 12px; font-size: 42px; }
  .history-intro-years i { flex: 1; }
  .history-intro h2 { font-size: 27px; }
  .history-intro p:last-child { font-size: 14px; }
  .history-year-nav { margin: 24px 0 67px; overflow-x: auto; grid-template-columns: repeat(6,74px); }
  .history-year-nav a { padding: 13px 5px 12px; font-size: 13px; }
  .history-year { margin-bottom: 82px; scroll-margin-top: 64px; }
  .history-year-heading { grid-template-columns: 122px 1fr; margin-bottom: 23px; padding-bottom: 17px; border-bottom-width: 4px; }
  .history-year-heading::after { bottom: -4px; height: 4px; width: 32%; }
  .history-year-number { font-size: 39px; }
  .history-year-heading h2 { font-size: 18px; }
  .history-card-grid,.history-card-grid--banner { gap: 14px; }
  .history-feature-grid { margin-bottom: 17px; }
  .history-card-body { min-height: 104px; padding: 14px 13px 16px; border-top-width: 3px; }
  .history-card-body h3 { font-size: 16px; }
  .history-card-body p { margin-top: 5px; font-size: 11px; line-height: 1.5; }
  .history-card-link { right: 8px; bottom: 8px; width: 40px; height: 40px; }
  .history-card-link img { width: 19px; height: 19px; }
  .history-card--feature .history-card-body { padding: 23px 20px 25px; }
  .history-card--feature .history-card-body h3 { font-size: 27px; }
  .history-card--feature .history-card-body p { font-size: 13px; }
  .history-card--banner .history-card-body { min-height: 99px; }
  .history-card--banner .history-card-body h3 { font-size: 15px; }
}

@media (max-width: 430px) {
  .history-card-grid,.history-card-grid--banner { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-card--feature { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .history-card,.history-card-image img { transition: none; }
}
