/* ---- Timeline Page Styles ---- */
/* Overrides scroll-snap from shared style.css for this long-scroll page */
html {
  scroll-snap-type: none;
}

/* ---- PAGE HEADER ---- */

.timeline-hero {
  text-align: center;
  padding: 120px 24px 60px;
}

.timeline-hero .page-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.timeline-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 20px;
}

.timeline-hero h1 span {
  color: var(--dim);
}

.timeline-hero .subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--dim);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

/* ---- PHASE LABEL ---- */

.phase-label {
  text-align: center;
  padding: 80px 24px 40px;
}

.phase-label h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 8px;
}

.phase-label p {
  font-size: 15px;
  color: var(--dim);
  font-weight: 300;
}

/* ---- TIMELINE VARIABLES ---- */

:root {
  /* Page overrides */
  --text-muted: #3d3d50;
  /* Page-specific colors */
  --accent-glow: rgba(241, 198, 136, 0.15);
  --amber: #e6a817;
  --crew-color: #4a9eff;
}

/* ---- TIMELINE CONTAINER ---- */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* Vertical line spanning the full timeline */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 60px;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .timeline::before {
    left: 44px;
  }
}

/* ---- PRE-LAUNCH MILESTONES ---- */

.milestone {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}

.milestone:last-child {
  margin-bottom: 0;
}

/* Alternate sides */
.milestone.left {
  justify-content: flex-start;
  padding-right: calc(50% + 32px);
  text-align: right;
}

.milestone.right {
  justify-content: flex-end;
  padding-left: calc(50% + 32px);
  text-align: left;
}

@media (max-width: 700px) {
  .milestone.left,
  .milestone.right {
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
    justify-content: flex-start;
  }
}

/* The dot on the line */
.milestone .dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
  transform: translateX(-50%);
  z-index: 2;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.milestone .dot.complete {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.3);
}

.milestone .dot.in-progress {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 12px rgba(230, 168, 23, 0.3);
}

@media (max-width: 700px) {
  .milestone .dot {
    left: 20px;
  }
}

.milestone .content {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s;
}

.milestone:hover .content {
  border-color: var(--text-muted);
}

.milestone.visible .content {
  opacity: 1;
  transform: translateY(0);
}

.milestone .content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}

.milestone .content p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dim);
  font-weight: 300;
  line-height: 1.5;
}

.milestone .content .status {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 8px;
}

.status.complete {
  color: var(--green);
  background: rgba(46, 204, 113, 0.1);
}

.status.in-progress {
  color: var(--amber);
  background: rgba(230, 168, 23, 0.1);
}

.status.upcoming {
  color: var(--text-muted);
  background: rgba(61, 61, 80, 0.2);
}

/* ---- T-ZERO DIVIDER ---- */

.t-zero {
  position: relative;
  text-align: center;
  padding: 80px 24px;
  margin: 40px 0;
}

.t-zero::before {
  display: none;
}

.t-zero .marker {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: var(--bg);
  padding: 16px 32px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.t-zero .marker h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--accent);
  line-height: 1;
}

.t-zero .marker p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---- POST-LAUNCH TIMELINE ---- */

.month-block {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.month-block .line-segment {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.month-block .line-segment.uncrewed { background: var(--line); }
.month-block .line-segment.crewed { background: var(--crew-color); opacity: 0.3; }
.month-block .line-segment.permanent { background: var(--accent); opacity: 0.3; }

@media (max-width: 700px) {
  .month-block .line-segment {
    left: 44px;
  }
}

.month-card {
  position: relative;
  cursor: pointer;
  margin-bottom: 16px;
}

/* Alternate sides for month cards */
.month-card.left {
  width: calc(50% - 32px);
  margin-right: auto;
  text-align: right;
}

.month-card.right {
  width: calc(50% - 32px);
  margin-left: auto;
  text-align: left;
}

@media (max-width: 700px) {
  .month-card.left,
  .month-card.right {
    width: auto;
    margin-left: 52px;
    margin-right: 0;
    text-align: left;
  }
}

/* Dot for month cards */
.month-card .dot {
  position: absolute;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  z-index: 2;
}

.month-card.left .dot {
  right: -39px;
}

.month-card.right .dot {
  left: -39px;
}

.month-card.uncrewed .dot { border-color: var(--text-muted); }
.month-card.crewed .dot { border-color: var(--crew-color); background: var(--crew-color); box-shadow: 0 0 10px rgba(74, 158, 255, 0.3); }
.month-card.permanent .dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

@media (max-width: 700px) {
  .month-card .dot {
    left: -39px !important;
    right: auto !important;
  }
}

.month-card .card-inner {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, background 0.3s;
}

.month-card.visible .card-inner {
  opacity: 1;
  transform: translateY(0);
}

.month-card:hover .card-inner {
  border-color: var(--text-muted);
  background: var(--bg-hover);
}

.month-card .month-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.month-card.crewed .month-label { color: var(--crew-color); }
.month-card.permanent .month-label { color: var(--accent); }

.month-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}

.month-card .summary {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dim);
  font-weight: 300;
}

.month-card .flights {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.month-card .tonnage {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  margin-left: 12px;
  letter-spacing: 0.5px;
}

.month-card .details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-top 0.4s ease;
  padding-top: 0;
}

.month-card.expanded .details {
  max-height: 400px;
  padding-top: 16px;
}

.month-card .details ul {
  list-style: none;
  padding: 0;
}

.month-card .details li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dim);
  font-weight: 300;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.month-card .details li:first-child {
  border-top: none;
}

.month-card .expand-hint {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.month-card:hover .expand-hint {
  color: var(--dim);
}

.month-card.expanded .expand-hint {
  display: none;
}

/* ---- PHASE BADGES (inline in timeline) ---- */

.phase-break {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.phase-break .badge {
  display: inline-block;
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.phase-break .badge.uncrewed-badge {
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.phase-break .badge.crewed-badge {
  color: var(--crew-color);
  border: 1px solid rgba(74, 158, 255, 0.3);
}

.phase-break .badge.permanent-badge {
  color: var(--accent);
  border: 1px solid rgba(241, 198, 136, 0.3);
}

@media (max-width: 700px) {
  .phase-break {
    text-align: left;
    padding-left: 52px;
  }
}

/* ---- LEGEND ---- */

.legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px 24px 60px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.legend-item .swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-item .swatch.s-uncrewed { background: var(--text-muted); }
.legend-item .swatch.s-crewed { background: var(--crew-color); }
.legend-item .swatch.s-permanent { background: var(--accent); }

