:root {
  --ink: #2f343b;
  --muted: #78828d;
  --paper: #f7f8f8;
  --line: #41515d;
  --blue: #34a4c8;
  --green:#8dbd37;
  --teal: #45b7bf;
  --slate: #4d6372;
  --gray: #8b9699;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 18%, rgba(52, 164, 200, .08), transparent 28%),
    radial-gradient(circle at 84% 74%, rgba(141, 189, 55, .1), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, var(--paper) 52%, #edf0f0 100%);
}

.timeline-page {
  min-height: 100vh;
  padding: 48px 18px 64px;
  overflow: hidden;
}

.timeline-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  position: relative;
}

.timeline-shell::before,
.timeline-shell::after {
  position: absolute;
  z-index: 0;
  color: rgba(47, 52, 59, .035);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.timeline-shell::before {
  content: "20";
  top: 6%;
  right: -3%;
}

.timeline-shell::after {
  content: "31";
  bottom: 2%;
  left: -4%;
}

.timeline-heading {
  position: relative;
  z-index: 1;
  width: min(330px, 100%);
  margin: 0 0 -30px;
}

.timeline-heading p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.timeline-heading h1 {
  margin: 0;
  color: #32373f;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.9rem, 7vw, 5.2rem);
  line-height: .9;
  text-transform: uppercase;
}

.timeline {
  --center: 50%;
  position: relative;
  z-index: 1;
  min-height: 1240px;
  padding: 18px 0 28px;
}

.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--center);
  width: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(var(--blue), var(--blue)) 0 7% / 100% 18% no-repeat,
    linear-gradient(var(--teal), var(--teal)) 0 32% / 100% 18% no-repeat,
    linear-gradient(var(--green), var(--green)) 0 58% / 100% 18% no-repeat,
    linear-gradient(var(--slate), var(--slate)) 0 83% / 100% 17% no-repeat,
    #d4dadd;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), 0 0 0 1px rgba(45, 58, 66, .12);
}

.timeline-spine::before,
.timeline-spine::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translateX(-50%);
  border: 3px solid var(--slate);
  border-radius: 50%;
  background: #fff;
}

.timeline-spine::before {
  top: -6px;
}

.timeline-spine::after {
  bottom: -6px;
}

.spine-glow {
  position: absolute;
  inset: 0 -9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(52, 164, 200, .24), transparent 30%, rgba(141, 189, 55, .2) 68%, transparent);
  filter: blur(7px);
  opacity: .65;
}

.timeline-item {
  --accent: var(--blue);
  --arm: 200px;
  position: relative;
  width: 50%;
  min-height: 168px;
  margin-top: -7px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}

.timeline-item:first-of-type {
  margin-top: 56px;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  margin-right: auto;
  padding-right: 270px;
  text-align: right;
}

.timeline-item.right {
  margin-left: auto;
  padding-left: 270px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 65px;
  width: var(--arm);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 18px rgba(50, 62, 70, .08);
}

.timeline-item.left::before {
  right: 32px;
}

.timeline-item.right::before {
  left: 32px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 61px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}

.timeline-item.left::after {
  left: calc(100% - var(--arm) - 45px);
}

.timeline-item.right::after {
  right: calc(100% - var(--arm) - 45px);
}

.node {
  position: absolute;
  z-index: 2;
  top: 45px;
  width: 46px;
  height: 46px;
  border: 7px solid #edf1f1;
  border-radius: 50%;
  background: #f9fbfb;
  box-shadow:
    0 0 0 2px rgba(51, 64, 73, .1),
    0 10px 22px rgba(42, 57, 66, .15),
    inset 0 0 0 5px #fff;
}

.node::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px rgba(47, 52, 59, .18);
}

.timeline-item.left .node {
  right: -23px;
}

.timeline-item.right .node {
  left: -23px;
}

.badge {
  position: absolute;
  top: 3px;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 4px solid var(--accent);
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 28px rgba(44, 58, 65, .12), inset 0 0 0 7px #f4f6f6;
}

.badge::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--accent);
  border-left-color: var(--accent);
  opacity: .85;
}

.badge::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid var(--accent);
  border-left: 9px solid transparent;
  transform: rotate(-16deg);
}

.timeline-item.left .badge {
  left: 2px;
}

.timeline-item.right .badge {
  right: 2px;
}

.timeline-item.right .badge::before {
  transform: rotate(180deg);
}

.timeline-item.right .badge::after {
  right: auto;
  left: 3px;
  transform: rotate(166deg);
}

.badge svg {
  width: 38px;
  height: 38px;
  fill: var(--ink);
}

.content {
  position: relative;
  padding-top: 14px;
}

.content time {
  display: block;
  color: #3d4249;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(3rem, 5.5vw, 7.25rem);
  font-weight: 700;
  line-height: .82;
}

.content h2 {
  margin: 25px 0 9px;
  color: var(--accent);
  font-size: 2.28rem;
  line-height: 1.1;
}

.content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.84rem;
  line-height: 1.58;
}

.color-blue {
  --accent: var(--blue);
}

.color-green {
  --accent: var(--green);
}

.color-teal {
  --accent: var(--teal);
}

.color-slate {
  --accent: var(--slate);
}

.color-gray {
  --accent: var(--gray);
}

.timeline-item.is-active .node {
  animation: nodePulse 1.4s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(51, 64, 73, .1),
      0 10px 22px rgba(42, 57, 66, .15),
      inset 0 0 0 5px #fff;
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(51, 64, 73, .1),
      0 10px 22px rgba(42, 57, 66, .15),
      inset 0 0 0 5px #fff,
      0 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
  }
}

.orbit-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  /*margin: 92px auto 0;*/
 /* padding: 56px 0 24px; */
}

/*.orbit-shell::before {
  content: "";
  position: absolute;
  inset: 0 50% auto 50%;
  height: 1px;
  transform: translateX(-50%);
  width: min(760px, 84vw);
  background: linear-gradient(90deg, transparent, rgba(52, 164, 200, .45), rgba(141, 189, 55, .4), transparent);
}*/

.orbit-heading {
  position: relative;
  width: min(620px, 100%);
  margin-bottom: 28px;
}

.orbit-heading p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 1.78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.orbit-heading h2 {
  margin: 0;
  color: #32373f;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: .88;
  text-transform: uppercase;
}

.orbit-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
  min-height: 640px;
  padding: 46px 0;
}

.orbit-timeline::before {
  content: "";
  position: absolute;
  inset: 86px 5% 86px;
  border-radius: 54% 46% 48% 52% / 44% 56% 44% 56%;
  border: 8px solid transparent;
  background:
    linear-gradient(#f7f8f8, #f7f8f8) padding-box,
    conic-gradient(from 195deg, var(--blue), var(--green), var(--teal), var(--slate), var(--blue)) border-box;
  opacity: .34;
  filter: drop-shadow(0 18px 28px rgba(50, 62, 70, .08));
}

.orbit-timeline::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 42px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 2px dashed rgba(52, 164, 200, .5);
  background:
    radial-gradient(circle at center, rgba(52, 164, 200, .2) 0 3px, transparent 4px),
    radial-gradient(circle at center, transparent 0 48px, rgba(141, 189, 55, .14) 49px 66px, transparent 67px);
}

.orbit-card {
  position: relative;
  z-index: 1;
  min-height: 232px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(65, 81, 93, .13);
  border-top: 5px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .78)),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%);
  box-shadow: 0 18px 36px rgba(40, 53, 61, .12);
  opacity: 0;
  transform: translateY(26px) rotate(-1deg);
  transition: opacity .65s ease, transform .65s ease, box-shadow .35s ease;
}

.orbit-card::before {
  content: "";
  position: absolute;
  top: -21px;
  left: 22px;
  width: 28px;
  height: 28px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 8px 18px rgba(40, 53, 61, .18);
}

.orbit-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 50%;
  opacity: .45;
}

.orbit-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.orbit-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  margin-top: 90px;
}

.orbit-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
  margin-top: 16px;
}

.orbit-card:nth-child(4) {
  grid-column: 4;
  grid-row: 1;
  margin-top: 126px;
}

.orbit-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
  margin-top: -18px;
}

.orbit-card:nth-child(6) {
  grid-column: 2;
  grid-row: 2;
  margin-top: 62px;
}

.orbit-card:nth-child(7) {
  grid-column: 1;
  grid-row: 2;
  margin-top: 8px;
}

.orbit-card.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.orbit-card.is-active {
  box-shadow: 0 24px 46px color-mix(in srgb, var(--accent) 20%, rgba(40, 53, 61, .14));
}

.orbit-year {
  display: inline-grid;
  min-width: 100px;
  min-height: 60px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 3.35rem;
  font-weight: 700;
  line-height: 1;
  background: var(--accent);
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 10% 50%);
}

.orbit-card h3 {
  margin: 0 0 10px;
  color: #32373f;
  font-size: 2.08rem;
  line-height: 1.2;
}

.orbit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.86rem;
  line-height: 1.58;
}

@media (max-width: 880px) {
  .timeline-page {
    padding-top: 34px;
  }

  .timeline-heading {
    margin-bottom: 18px;
  }

  .timeline {
    --center: 44px;
    min-height: 0;
    padding-left: 0;
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    min-height: 178px;
    margin: 0 0 18px;
    padding: 0 0 0 126px;
    text-align: left;
  }

  .timeline-item:first-of-type {
    margin-top: 0;
  }

  .timeline-item::before,
  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 44px;
    right: auto;
    top: 68px;
    width: 68px;
    height: 5px;
  }

  .timeline-item::after,
  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 105px;
    right: auto;
    top: 63px;
  }

  .timeline-item.left .node,
  .timeline-item.right .node {
    left: 21px;
    right: auto;
    top: 46px;
  }

  .timeline-item.left .badge,
  .timeline-item.right .badge {
    position: relative;
    inset: auto;
    float: right;
    width: 68px;
    height: 68px;
    margin: 6px 2px 10px 14px;
    border-width: 3px;
  }

  .timeline-item.left .badge::before,
  .timeline-item.right .badge::before {
    inset: -9px;
    border-width: 3px;
  }

  .timeline-item.left .badge::after,
  .timeline-item.right .badge::after {
    right: 2px;
    left: auto;
    bottom: -8px;
    transform: rotate(-16deg);
  }

  .badge svg {
    width: 30px;
    height: 30px;
  }

  .content time {
    font-size: 3rem;
  }

  .orbit-shell {
    margin-top: 58px;
    padding-top: 42px;
  }

  .orbit-timeline {
    display: block;
    min-height: 0;
    padding: 34px 0 10px 48px;
  }

  .orbit-timeline::before {
    inset: 0 auto 0 18px;
    width: 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(var(--blue), var(--green), var(--teal), var(--slate), var(--blue));
    opacity: .5;
    filter: none;
  }

  .orbit-timeline::after {
    display: none;
  }

  .orbit-card,
  .orbit-card:nth-child(n) {
    min-height: 0;
    margin: 0 0 24px;
  }

  .orbit-card::before {
    left: -45px;
  }
}

@media (max-width: 520px) {
  .timeline-page {
    padding-inline: 14px;
  }

  .timeline {
    --center: 28px;
  }

  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    padding-left: 88px;
  }

  .timeline-item::before,
  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 28px;
    width: 48px;
  }

  .timeline-item::after,
  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 69px;
  }

  .timeline-item.left .node,
  .timeline-item.right .node {
    left: 5px;
  }

  .timeline-item.left .badge,
  .timeline-item.right .badge {
    width: 58px;
    height: 58px;
  }

  .content h2 {
    font-size: 1.08rem;
  }

  .content p {
    font-size: .82rem;
  }
}
