/* Vertical timeline — center spine + alternating glass cards with floating cutout images */
  .tl-phases {
    position: relative;
    margin-top: clamp(32px, 5vw, 64px);
    padding: clamp(20px, 3vw, 48px) 0;
  }
  .tl-phases::before {
    content: ""; position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--line-2) 4%, var(--line-2) 96%, transparent 100%);
    transform: translateX(-50%);
  }

  .tl-phase {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    padding-bottom: clamp(40px, 5vw, 72px);
  }
  .tl-phase:last-child { padding-bottom: 0; }

  .tl-phase__media {
    grid-column: 1; grid-row: 1;
    display: flex; align-items: center; justify-content: flex-end;
    min-height: 220px;
  }
  .tl-phase__body {
    grid-column: 3; grid-row: 1;
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    padding: clamp(24px, 3vw, 36px);
    background: linear-gradient(160deg, rgba(255,255,255,0.55) 0%, rgba(252,249,243,0.28) 60%, rgba(232,201,163,0.18) 100%);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    transition: transform var(--d-medium) var(--e-out), box-shadow var(--d-medium) var(--e-out);
  }
  .tl-phase__body:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

  .tl-phase.alt .tl-phase__media { grid-column: 3; justify-content: flex-start; }
  .tl-phase.alt .tl-phase__body  { grid-column: 1; }

  /* Center node on the spine */
  .tl-phase__node {
    grid-column: 2; grid-row: 1;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
  }
  .tl-phase__dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--line-2);
    box-shadow: 0 0 0 6px var(--paper);
    position: relative;
    transition: background var(--d-short) var(--e-out), border-color var(--d-short) var(--e-out);
  }
  .tl-phase.is-done .tl-phase__dot   { background: #5fa472; border-color: #5fa472; }
  .tl-phase.is-current .tl-phase__dot { background: var(--accent); border-color: var(--accent); }
  .tl-phase.is-current .tl-phase__dot::after {
    content: ""; position: absolute; inset: -8px;
    border-radius: 50%; border: 2px solid var(--accent);
    animation: tlPulse 1.8s ease-out infinite;
  }
  @keyframes tlPulse { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }

  /* Tail connector */
  .tl-phase__body::before {
    content: ""; position: absolute; top: 50%;
    width: clamp(20px, 3vw, 40px); height: 1px;
    background: var(--line-2);
    transform: translateY(-50%);
  }
  .tl-phase:not(.alt) .tl-phase__body::before { left: calc(-1 * clamp(20px, 3vw, 40px)); }
  .tl-phase.alt .tl-phase__body::before { right: calc(-1 * clamp(20px, 3vw, 40px)); }

  .tl-phase__media img {
    width: 100%; max-width: 280px; height: auto;
    filter: drop-shadow(0 24px 48px rgba(20,17,13,0.18));
    transition: transform 1.4s var(--e-out);
  }
  .tl-phase:hover .tl-phase__media img { transform: scale(1.04) rotate(-1deg); }

  .tl-phase__num { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 11px; letter-spacing: 0.2em; font-weight: 600; }
  .tl-phase__date {
    font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1;
    color: var(--ink);
  }
  .tl-phase__date em { font-style: normal; color: var(--accent); }
  .tl-phase__name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
  .tl-phase__desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
  .tl-phase__status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: var(--r-pill);
    font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
    align-self: start;
    background: rgba(192,139,88,0.16); color: var(--accent-shade);
    border: 1px solid rgba(192,139,88,0.28);
  }
  .tl-phase__status.is-done { background: rgba(95,164,114,0.16); color: #2f6943; border-color: rgba(95,164,114,0.3); }
  .tl-phase__status.is-current { background: var(--accent); color: #fff; border-color: var(--accent); }

  [data-theme="dark"] .tl-phase__body { background: linear-gradient(160deg, rgba(34,29,24,0.7) 0%, rgba(34,29,24,0.42) 60%, rgba(120,80,40,0.18) 100%); border-color: rgba(255,255,255,0.08); }
  [data-theme="dark"] .tl-phase__dot { background: var(--paper); box-shadow: 0 0 0 6px var(--paper); }
  [data-theme="dark"] .tl-phases::before { background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.18) 4%, rgba(255,255,255,0.18) 96%, transparent 100%); }

  /* Mobile — horizontal scroller (matches park amenities pattern) */
  @media (max-width: 980px) {
    .tl-phases {
      position: relative;
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: 0;
      margin-top: clamp(20px, 3vw, 32px);
      padding: 8px var(--gutter) 24px;
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      gap: 14px;
      overflow-x: auto;
      overflow-y: visible;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      scroll-behavior: smooth;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 92%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 92%, transparent 100%);
    }
    .tl-phases::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .tl-phases::before { display: none !important; }
    .tl-phase, .tl-phase.alt {
      flex: 0 0 78vw !important;
      width: 78vw !important;
      max-width: 320px;
      min-width: 240px;
      scroll-snap-align: start;
      display: block !important;
      grid-template-columns: none;
      padding: 0 !important;
    }
    .tl-phase__media, .tl-phase.alt .tl-phase__media { display: none !important; }
    .tl-phase__node, .tl-phase.alt .tl-phase__node { display: none !important; }
    .tl-phase__body, .tl-phase.alt .tl-phase__body {
      grid-column: auto; grid-row: auto;
      padding: 20px;
      width: 100%;
      box-sizing: border-box;
      margin: 0;
    }
    .tl-phase__body::before, .tl-phase.alt .tl-phase__body::before { display: none !important; }
    .tl-phase__date { font-size: 24px; }
  }
