/* ── Horizontal timeline (htimeline) ───────────────────────── */
.htimeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 0.35rem;
}
.htimeline-canvas {
  min-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.htimeline-track-wrap {
  position: relative;
  padding-top: 2rem;
}
.htimeline-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: 2rem;
  bottom: 0;
  pointer-events: none;
  border-radius: 6px;
  background-color: rgba(20, 24, 31, 0.04);
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 7 - 1px),
    rgba(20, 24, 31, 0.07) calc(100% / 7 - 1px),
    rgba(20, 24, 31, 0.07) calc(100% / 7)
  );
}
.htimeline-now {
  position: absolute;
  left: calc(100% * 2 / 3);
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.htimeline-now-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}
.htimeline-now-line {
  flex: 1;
  width: 0;
  border-left: 2px dashed #c0392b;
  min-height: 2.5rem;
  opacity: 0.92;
}
.htimeline-now-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #c0392b;
  margin-top: -1px;
}
.htimeline-milestones {
  position: relative;
  z-index: 1;
  padding: 0.35rem 0 0.85rem;
}
.htimeline-rail {
  position: relative;
  height: 44px;
}
.htimeline-baseline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(20, 24, 31, 0.12),
    rgba(20, 24, 31, 0.28) 50%,
    rgba(20, 24, 31, 0.12)
  );
}
.htimeline-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid var(--background--secondary, #fdfaf4);
  box-shadow:
    0 0 0 1px rgba(20, 24, 31, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.ht-dot-p1 {
  background: linear-gradient(
    145deg,
    rgba(20, 24, 31, 0.55),
    rgba(20, 24, 31, 0.85)
  );
}
.ht-dot-p2 {
  background: linear-gradient(145deg, #14181f, #2a3039);
  box-shadow:
    0 0 0 1px rgba(20, 24, 31, 0.2),
    0 2px 10px rgba(20, 24, 31, 0.22);
}
.ht-dot-p3 {
  background: linear-gradient(145deg, #9a4520, #c86430);
  box-shadow:
    0 0 0 1px rgba(184, 80, 30, 0.25),
    0 2px 10px rgba(184, 80, 30, 0.2);
}
.htimeline-axis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(20, 24, 31, 0.12);
}
.htimeline-axis span {
  font-size: 0.57rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0.4;
}
.htimeline-axis span:first-child {
  text-align: left;
}
.htimeline-axis span:last-child {
  text-align: right;
}

.htimeline-infos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  padding-top: 0.15rem;
}
.htimeline-info {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}
.ht-info-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}
.ht-info-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
  border: none;
  box-shadow: none;
}
.ht-info-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.ht-info-name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}
.ht-info-years {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.45;
  line-height: 1.3;
}
.ht-info-copy {
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0.55;
  margin: 0;
  padding-left: calc(10px + 0.55rem);
}
.htimeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.7rem;
  opacity: 0.48;
  padding-top: 0.1rem;
}
.htimeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ht-lg {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  font-style: normal;
  flex-shrink: 0;
}
.ht-lg-p1 {
  background: linear-gradient(
    135deg,
    rgba(20, 24, 31, 0.5),
    rgba(20, 24, 31, 0.75)
  );
}
.ht-lg-p2 {
  background: #14181f;
}
.ht-lg-p3 {
  background: #b8501e;
}

@media screen and (max-width: 991px) {
  .htimeline-infos {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .ht-info-copy {
    padding-left: 0;
  }
}

/* Road to 2027 — existing NOW line: label + sit just before p3 bar (p3 starts at 70%) */
.timeline-now::before {
  content: "You are here · 2026";
  letter-spacing: 0.03em;
  font-size: clamp(0.58rem, 1.05vw, 0.72rem);
  text-transform: none;
  top: -1.65rem;
  padding: 0 0.45rem;
  max-width: none;
  white-space: nowrap;
}
