/* ============================================================
   ONWARDPATH — TIMELINE SECTION
   timeline.css — vertical scroll, no animations, no JS needed
   ============================================================ */

/* ── LOCAL TOKENS ── */
.tl-section {
  --tl-purple: #4f46e5;
  --tl-teal:   #0B8FA3;
  --tl-text:   #111827;
  --tl-muted:  #6B7280;
  --tl-light:  #F9FAFB;
  --tl-border: #E5E7EB;
  --tl-serif:  'DM Serif Display', Georgia, serif;
  --tl-sans:   'Inter', sans-serif;
  --tl-radius: 12px;
}

/* ── SECTION ── */
.tl-section {
  background: #ffffff;
  padding: 96px 0 104px;
}

.tl-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── HEADER ── */
.tl-header {
  max-width: 600px;
  margin-bottom: 72px;
}

.tl-eyebrow {
  font-family: var(--tl-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tl-teal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tl-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--tl-teal);
  display: inline-block;
  flex-shrink: 0;
}

.tl-headline {
  font-family: var(--tl-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--tl-text);
  margin-bottom: 16px;
}
.tl-headline em {
  font-style: italic;
  color: var(--tl-purple);
}

.tl-sub {
  font-family: var(--tl-sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--tl-muted);
  line-height: 1.7;
}

/* ── ENTRIES WRAPPER ── */
.tl-entries {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical rule */
.tl-entries::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--tl-border);
}

/* ── SINGLE ENTRY ── */
.tl-entry {
  display: grid;
  grid-template-columns: 144px 1fr;
  gap: 0 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--tl-border);
}
.tl-entry:last-child {
  border-bottom: none;
}

/* ── META COLUMN ── */
.tl-entry-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 0;
  padding-top: 4px;
  position: relative;
}

/* Dot on the vertical rule */
.tl-entry-meta::after {
  content: '';
  position: absolute;
  right: -58px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--tl-purple);
  z-index: 1;
}

.tl-year {
  font-family: var(--tl-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--tl-text);
  line-height: 1;
  margin-bottom: 10px;
  text-align: right;
}

.tl-tag {
  display: inline-block;
  font-family: var(--tl-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  text-align: center;
}
.tag-founding  { background: rgba(79,70,229,.08);  color: #4f46e5; }
.tag-delivery  { background: rgba(11,143,163,.09);  color: #0B8FA3; }
.tag-partner   { background: rgba(180,120,30,.10);  color: #8a5e10; }
.tag-vertical  { background: rgba(16,185,129,.09);  color: #0a7a4e; }
.tag-aem       { background: rgba(79,70,229,.08);   color: #4f46e5; }
.tag-product   { background: rgba(11,143,163,.09);  color: #0B8FA3; }

/* ── BODY COLUMN ── */
.tl-entry-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── PHOTO AREA ── */
.tl-entry-photo {
  border-radius: var(--tl-radius);
  overflow: hidden;
  background: var(--tl-light);
  border: 1px solid var(--tl-border);
  flex-shrink: 0;
}
.tl-entry-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Single photo — fixed aspect */
.tl-entry-photo:not(.tl-photo-duo):not(.tl-photo-trio):not(.tl-photo-badge-wrap):not(.tl-photo-perzo) {
  aspect-ratio: 4 / 3;
}

/* Duo: stacked pair */
.tl-photo-duo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  background: none;
  border: none;
}
.tl-photo-duo img {
  border-radius: var(--tl-radius);
  border: 1px solid var(--tl-border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tl-photo-duo .tl-photo-secondary {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center top;
}
.tl-photo-duo .tl-photo-top {
  object-position: center 15%;
}
.tl-photo-duo .tl-contain {
  object-fit: contain;
  background: var(--tl-light);
  padding: 16px;
}

/* Trio: one wide + two small */
.tl-photo-trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  overflow: visible;
  background: none;
  border: none;
}
.tl-photo-trio img {
  width: 100%;
  border-radius: var(--tl-radius);
  border: 1px solid var(--tl-border);
  object-fit: cover;
  display: block;
}
.tl-photo-trio .tl-photo-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.tl-photo-trio .tl-photo-secondary {
  aspect-ratio: 1 / 1;
}

/* Logo/product image — contained, no crop */
.tl-photo-contain {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: unset;
  min-height: 180px;
  padding: 32px 24px;
}
.tl-photo-contain img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Badge wrap — centered badge, no crop */
.tl-photo-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: unset;
  min-height: 180px;
  padding: 32px 24px;
  overflow: visible;
}
.tl-badge-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Perzo dark card */
.tl-photo-perzo {
  background: linear-gradient(145deg, #0f1c2e 0%, #0c3040 100%);
  border: none;
  aspect-ratio: unset;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-perzo-card {
  padding: 28px 24px;
  width: 100%;
}
.tl-perzo-wordmark {
  font-family: 'DM Mono', monospace, var(--tl-sans);
  font-size: 28px;
  font-weight: 500;
  color: #F0F0F0;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.tl-perzo-wordmark span { color: var(--tl-teal); }
.tl-perzo-sub {
  font-family: var(--tl-sans);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4a6a7a;
  margin-bottom: 20px;
}
.tl-perzo-divider {
  width: 32px;
  height: 1px;
  background: rgba(11,143,163,.3);
  margin-bottom: 20px;
}
.tl-perzo-stats {
  display: flex;
  gap: 16px;
}
.tl-perzo-stat {
  flex: 1;
  border-left: 1px solid rgba(11,143,163,.25);
  padding-left: 12px;
}
.tl-perzo-num {
  font-family: var(--tl-serif);
  font-size: 24px;
  color: var(--tl-teal);
  line-height: 1;
  margin-bottom: 4px;
}
.tl-perzo-label {
  font-family: var(--tl-sans);
  font-size: 11px;
  color: #4a6a7a;
  line-height: 1.4;
}

/* ── CONTENT AREA ── */
.tl-entry-content {}

.tl-entry-logo {
  margin-bottom: 16px;
}
.tl-origin-logo {
  max-width: 160px;
  height: auto;
  display: block;
}

.tl-entry-headline {
  font-family: var(--tl-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--tl-text);
  margin-bottom: 14px;
}

.tl-entry-body-text {
  font-family: var(--tl-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--tl-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.tl-entry-body-text:last-child { margin-bottom: 0; }

.tl-community-note {
  font-size: 14px;
  color: #9CA3AF;
  border-left: 2px solid var(--tl-border);
  padding-left: 14px;
  margin-top: 18px;
}

/* ── CREDENTIAL STRIP ── */
.credential-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--tl-border);
}
.cs-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cs-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cs-logo {
  display: block;
  object-fit: contain;
}
.cs-logo-mbe,
.cs-logo-wbe { width: 160px; height: 160px; object-fit: contain; }

.cs-statement {
  font-family: var(--tl-sans);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: var(--tl-muted);
  line-height: 1.6;
  max-width: 340px;
  border-left: 2px solid var(--tl-border);
  padding-left: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tl-entries::before { left: 0; display: none; }

  .tl-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tl-entry-meta {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .tl-entry-meta::after { display: none; }

  .tl-year { font-size: 28px; margin-bottom: 0; text-align: left; }

  .tl-entry-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .tl-container { padding: 0 20px; }
  .tl-section   { padding: 64px 0 72px; }
  .tl-header    { margin-bottom: 48px; }
  .cs-logos     { gap: 24px; }
  .cs-logo-oracle,
  .cs-logo-adobe { width: 130px; }
  .cs-logo-mbe,
  .cs-logo-wbe   { width: 60px; height: 60px; }
}