:root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1e222b;
    --text: #f3f5f7;
    --muted: #a5adba;
    --line: #2c3442;
    --line-active: #e8edf5;
    --dot: #2c3442;
    --dot-active: #ffffff;
    --radius: 22px;
    --content-width: 480px;
    --center-width: 120px;
    --section-padding: clamp(80px, 10vw, 140px);
    --item-gap: clamp(24px, 4vw, 48px);
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
  }

  img {
    display: block;
    width: 100%;
    height: auto;
  }

  .timeline {
    position: relative;
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    padding: var(--section-padding) 0;
  }

  .timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: var(--line);
    pointer-events: none;
  }

  .timeline__line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--line-active);
    will-change: height;
  }

  .timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--center-width) minmax(0, 1fr);
    align-items:flex-start
    gap: var(--item-gap);
    min-height: 75vh;
  }

  .timeline__center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
  }

  .timeline__dot {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dot);
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 2px var(--dot);
    transition:
      transform 0.3s ease,
      background 0.3s ease,
      box-shadow 0.3s ease;
  }

  .timeline__item.is-active .timeline__dot,
  .timeline__item.is-passed .timeline__dot {
    background: var(--dot-active);
    box-shadow: 0 0 0 2px var(--dot-active);
    transform: scale(1.08);
  }

  .timeline__col {
    min-width: 0;
  }

  .timeline__content,
  .timeline__media {
    max-width: var(--content-width);
  }

  .timeline__content {
    padding: clamp(24px, 3vw, 36px);
    background: rgba(23, 26, 33, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transform: translateY(18px);
    opacity: 0.28;
    transition:
      transform 0.35s ease,
      opacity 0.35s ease,
      border-color 0.35s ease;
  }

  .timeline__media {
    /*overflow: hidden;*/
    aspect-ratio: 10 / 8;
    transform: translateY(18px);
    opacity: 0.28;
    transition:
      transform 0.35s ease,
      opacity 0.35s ease,
      border-color 0.35s ease;
  }

  .timeline__media img {
    width:auto;
    /*height: 100%;
    max-height:400px;*/
      height:auto;
      max-height:400px;
    object-fit: cover;
      margin:0px auto;
  }

  .timeline__item.is-active .timeline__content,
  .timeline__item.is-active .timeline__media,
  .timeline__item.is-passed .timeline__content,
  .timeline__item.is-passed .timeline__media {
    transform: translateY(0);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.14);
  }

  .timeline__item:nth-of-type(even) .timeline__content,
  .timeline__item:nth-of-type(even) .timeline__media {
    margin-left: auto;
  }

  .timeline__eyebrow {
    margin: 0 0 10px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .timeline__content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 2vw, 2.4rem);
    line-height: 1.1;
  }

  .timeline__content p:last-child {
    margin-bottom: 0;
    color: #d3d9e3;
    line-height: 1.65;
  }

  @media (max-width: 980px) {
    .timeline {
      width: min(100% - 32px, 900px);
    }

    .timeline__line {
      left: 24px;
      transform: none;
    }

    .timeline__item {
      grid-template-columns: 48px 1fr;
      gap: 18px;
      min-height: auto;
      padding: 42px 0;
    }

    .timeline__center {
      grid-column: 1;
      grid-row: 1 / span 2;
      align-items: start;
      justify-content: center;
      padding-top: 20px;
    }

    .timeline__col {
      grid-column: 2;
    }

    .timeline__content,
    .timeline__media {
      max-width: none;
      margin: 0;
    }

    .timeline__col--media {
      order: 2;
    }

    .timeline__col--content {
      order: 1;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .timeline__line-fill,
    .timeline__dot,
    .timeline__content,
    .timeline__media {
      transition: none;
    }
  }