/* =======================================================================
   timeline-light.css  (varian tema terang — 2026-09-10)
   -----------------------------------------------------------------------
   Timeline sejarah Pura Group untuk founder3.html (section HISTORY).
   VARIAN PEMBANDING untuk review manajemen: versi dark ada di
   timeline.css (dipakai founder2.html) — file ini TIDAK menyentuhnya.

   Perbedaan tema vs timeline.css (dark):
   • section background PUTIH polos (permintaan review)
   • kartu milestone PUTIH, teks hitam (revisi 2026-09-10):
     border hitam 2px + REFLEKSI "di atas kaca" di bawah kartu
     (mirroring memudar ala ChronoFlo) + ambient shadow lembut
   • garis (rel canvas, ruler, divider) gelap/hitam di atas putih
   • HUD, hint, tombol nav, ruler: surface putih + border smoke,
     teks neutral-slate/dark (kontras ≥ 4.5:1 utk teks kecil)
   • modal: inner putih, teks gelap, era memakai oranye gelap #c2410c
     (kontras 5.2:1 di atas putih; #ff7324 mentah hanya 2.7:1)
   • fade ujung jalan di canvas larut ke PUTIH (di timeline.js light)

   Struktur class, geometri proyeksi (custom properties --tl-*), dan
   seluruh breakpoint IDENTIK dengan timeline.css — hanya nilai warna
   yang diubah. Semua class ber-prefix `tl-`.
   ======================================================================= */

/* ---- Wrapper section: putih polos full-bleed + override teks judul.
   overflow visible tetap wajib agar position: sticky jalan
   (.set-founder-box-history default overflow: hidden di main.css) ---- */
.tl-box {
  overflow: visible;
  background: #ffffff;
}
.tl-box .set-founder-text-title-history {
  color: #111111;
}
.tl-box .set-founder-box-header-history {
  color: #111111;
}

/* ---- Scene & viewport sticky ---- */
/* width 100% WAJIB: induk .set-founder-box-btn-year-history adalah
   flex dengan align-items:flex-start — tanpa ini scene mengikuti
   lebar konten, bukan lebar kontainer. */
.tl-scene {
  position: relative;
  width: 100%;
  height: 320vh; /* default; dipresisi oleh timeline-light.js setelah layout */
}

.tl-viewport {
  position: sticky;
  top: 0;
  height: 100vh; /* fallback */
  height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ---- Petunjuk arah baca (memudar setelah scroll dimulai) ---- */
.tl-hint {
  position: absolute;
  top: clamp(76px, 10vh, 96px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 140;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  border: 1px solid #dcdcdc;
  color: #444444;
  font-family: Figtree, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: opacity 300ms ease-out;
}
.tl-hint.is-hidden {
  opacity: 0;
}

/* ---- Canvas 3D ---- */
.tl-canvas {
  --tl-focal: 620;     /* jarak fokus proyeksi (px) */
  --tl-spacing: 620;   /* jarak antar event di sumbu kedalaman */
  --tl-horizon: 0.145; /* titik hilang ±14.5% tinggi (referensi polos) */
  --tl-ground: 0.82;   /* titik tanah kartu terdekat — disisakan band
                          ±100px di atas ruler agar kartu fokus (mis. 1908
                          di awal scene) tampil UTUH + refleksinya terlihat;
                          sebelumnya 0.94 = kaki kartu tertutup ruler */
  --tl-rail: 1.7;      /* posisi label tahun di rel kanan (× LANE);
                          LANE sendiri = 26% lebar canvas (dihitung JS) */
  --tl-safe-l: 76px;   /* zona aman tick ruler: bebas tombol fixed
  --tl-safe-r: 170px;     (to-top kiri / Quick Chat kanan) */
  --tl-visible: 7.5;   /* event terlihat pada ruler */
  --tl-card-w: 300px;

  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden; /* kartu keluar frame terpotong rapi */
  /* TRANSPARAN: background putih .tl-box menjadi satu-satunya
     latar — tidak ada seam di tepi canvas. Glow atmosfer di titik
     hilang tetap via .tl-canvas::after (50%/7%). */
  background: transparent;
  cursor: grab;
}
.tl-canvas.is-dragging {
  cursor: grabbing;
}

/* ---- Jalur timeline prosedural (canvas 2D, digambar timeline-light.js
     dengan proyeksi yang sama dengan kartu — responsif otomatis
     karena mengikuti ukuran canvas per breakpoint) ---- */
.tl-roadcanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.tl-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 46% 22% at 50% 14.5%,
    rgb(132 225 255 / 0.14) 0%,
    transparent 70%
  );
}

/* ---- World: wadah kartu. Fallback = baris scroll manual;
   mode 3D (tl-ready) = kanvas absolut yang diisi proyeksi JS ---- */
.tl-world {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  height: 100%;
  padding: 24px;
  overflow-x: auto;
  overflow-y: hidden;
}
.tl-ready .tl-world {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  overflow: visible;
}

/* ---- Item per event: kartu + label tahun. Posisi & skala ditulis
   timeline-light.js; origin = titik tengah-bawah (jangkar "tanah") ---- */
.tl-item {
  width: var(--tl-card-w);
  flex-shrink: 0;
}
.tl-ready .tl-item {
  position: absolute;
  left: 50%;
  top: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

/* ---- Kartu milestone (revisi 2026-09-10: PUTIH, teks hitam,
   border hitam 2px; bayangan = REFLEKSI KACA di bawah kartu,
   mengikuti referensi ChronoFlo) ---- */
.tl-card {
  position: relative;
  display: block;
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  /* ambient shadow sangat lembut; bayangan utama justru refleksi
     mirroring di bawah kartu (blok @supports di bawah) */
  box-shadow: 0 18px 34px rgb(0 0 0 / 0.12);
  transition: transform 200ms ease-out, border-color 200ms ease-out,
    box-shadow 200ms ease-out;
}
/* Refleksi "di atas kaca" ala ChronoFlo: kartu tercermin di bawahnya
   lalu memudar. Jalur CSS ini dipakai Chrome/Edge/Safari; Firefox
   otomatis memakai jalur klon DOM (timeline-light.js + .tl-card__mirror
   di bawah) dengan hasil visual yang disamakan. Mask: 42% bagian atas
   refleksi transparan, terlihat ±42% tepat di bawah kartu, memudar
   ke bawah. Di background putih yang tampak adalah konten gelap kartu
   (border, foto, teks) sebagai bayangan kaca yang realistis. */
@supports (-webkit-box-reflect: below 0) {
  .tl-ready .tl-card {
    -webkit-box-reflect: below 3px
      linear-gradient(transparent 42%, rgb(0 0 0 / 0.42));
  }
}
/* Border tetap hitam di semua state (permintaan review); feedback
   hover/aktif lewat angkat kartu + ambient shadow yang sedikit lebih
   dalam — refleksi kaca tetap menempel mengikuti kartu */
.tl-card:hover,
.tl-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgb(0 0 0 / 0.15);
}

/* ---- Refleksi DOM utk Firefox: browser yang tidak mendukung
   -webkit-box-reflect mendapat klon kartu (dibangun timeline-light.js,
   hanya jika CSS.supports melaporkan tidak ada dukungan) yang dibalik
   scaleY(-1) + mask gradient — semua teknologi standar. Intensitas
   puncak & arah pudar disamakan dengan refleksi CSS di atas. Mask
   memakai koordinat lokal (sebelum flip): bagian bawah klon = area
   yang menempel kartu setelah dibalik. ---- */
.tl-card__mirror {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  width: 100%;
  pointer-events: none;
  transform: scaleY(-1);
  opacity: 0.42;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 42%,
    #000 100%
  );
  mask-image: linear-gradient(to bottom, transparent 42%, #000 100%);
}
.tl-card:focus-visible {
  outline: 2px solid #ff7324;
  outline-offset: 3px;
}

/* chip era di atas gambar — ikut bahasa kartu putih: dasar putih SOLID
   (kontras konsisten di atas foto apa pun) + border hitam + teks oranye
   gelap (kontras 5.2:1). Revisi 2026-09-10: 9px -> 11px & tracking
   dirapatkan agar label era terbaca jelas; bayangan tipis memisahkan
   chip dari foto di bawahnya. */
.tl-card__era {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #111111;
  color: #c2410c;
  font-family: Figtree, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.18);
}
.tl-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f2f2f2;
}
.tl-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}
.tl-card__year {
  font-family: Geist, sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111111;
}
.tl-card__divider {
  height: 2px;
  width: 40px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #84e1ff,
    #81f18e,
    #f9e63f,
    #6ba6ff,
    #ee88ff,
    #ff7324
  );
}
.tl-card__desc {
  font-family: Figtree, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #111111;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Figtree, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
}
.tl-card__more svg {
  transition: transform 200ms ease-out;
}
.tl-card:hover .tl-card__more svg,
.tl-card:focus-visible .tl-card__more svg {
  transform: translateX(3px);
}

/* ---- Label tahun besar di tepi kartu (rel kanan/kiri), ikut skala.
   Di background putih: tinta gelap + glow putih tipis agar tetap
   terbaca saat menimpa garis rel ---- */
.tl-years {
  position: absolute;
  inset: 0;
  /* z:auto — container TIDAK menjadi stacking context; z tiap label
     ditulis per frame senilai kartunya (timeline-light.js) sehingga kartu
     yang lebih dekat menutup label tahun kartu yang lebih jauh.
     (fix bug "1972 tampak di depan kartu 1971"; maks z tetap 90 —
     di bawah nav 120, ruler 130 & modal 200) */
  z-index: auto;
  pointer-events: none;
}
.tl-year {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 50%;
  white-space: nowrap;
  font-family: Geist, sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #111111;
  text-shadow: 0 0 26px rgb(255 255 255 / 0.75);
  will-change: transform, opacity;
}

/* ---- HUD panel kiri-atas (ala "Year: 0923" referensi) — surface putih.
   Revisi 2026-09-10: mengikuti bahasa kartu milestone (putih SOLID +
   shadow lembut) & font dinaikkan agar terbaca tegas.
   Revisi 2026-09-10 (2): BORDER GRADIENT 6 WARNA brand (permintaan
   review) — pola border-box/padding-box: border transparan 2px +
   background ganda (putih solid di padding-box, gradient di
   border-box) sehingga area border menampilkan gradient dengan sudut
   tetap membulat (border-image tidak bisa: mematikan border-radius);
   gradient sama dengan border modal detail (.tl-modal__card).
   Revisi 2026-09-10 (3): sudut membulat disamakan dengan kelas Tailwind
   rounded-md (0.375rem) sesuai permintaan review. ---- */
.tl-hud {
  position: absolute;
  top: clamp(76px, 9vh, 96px); /* di bawah navbar fixed setinggi ±64px */
  left: clamp(12px, 2vw, 28px);
  z-index: 45;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 0.375rem; /* rounded-md */
  border: 1px solid transparent; /* uji coba review: 2px -> 1px */
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(
      135deg,
      #84e1ff,
      #81f18e,
      #f9e63f,
      #6ba6ff,
      #ee88ff,
      #ff7324
    ) border-box;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.12);
}
.tl-hud__title {
  font-family: Figtree, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
}
.tl-hud__year-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: Figtree, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444444;
}
.tl-hud__year-val {
  font-family: Geist, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #141414;
  background: #ff7324;
  padding: 3px 12px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---- Navigasi prev/next: tepi kanan viewport, vertikal tengah —
   terhindar dari Quick Chat (fixed kanan-bawah) & navbar ---- */
.tl-nav {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  top: calc(50% - 48px);
  z-index: 120; /* di atas kartu (maks 90) */
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-hud__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d6d6d6;
  background: rgb(255 255 255 / 0.92);
  color: #111111;
  cursor: pointer;
  transition: border-color 150ms ease-out, opacity 150ms ease-out;
}
.tl-hud__btn:hover {
  border-color: #ff7324;
}
.tl-hud__btn:focus-visible {
  outline: 2px solid #ff7324;
  outline-offset: 2px;
}
.tl-hud__btn[disabled] {
  opacity: 0.3;
  cursor: default;
}
.tl-hud__btn[disabled]:hover {
  border-color: #d6d6d6;
}

/* ---- Ruler era di strip bawah (geser linear mengikuti posisi) ---- */
.tl-ruler {
  position: absolute;
  /* STRIP full-width (permintaan visual); tombol fixed (to-top kiri /
     Quick Chat kanan, z-50 root > stacking sticky) hanya dihindari
     OLEH TICK via zona aman --tl-safe-l/r — bukan oleh strip */
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  z-index: 130; /* di atas kartu: kartu yang dilewati terpotong rapi */
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-top: 1px solid #e5e5e5;
}
.tl-ruler__track {
  position: absolute;
  inset: 0;
}
/* garis ruler */
.tl-ruler__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 1px;
  background: #d9d9d9;
}
.tl-ruler__tick {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px; /* hit area nyata (sebelumnya 0px — klik meleset) */
  height: 100%;
  translate: -50% 0; /* JS hanya menulis transform translateX */
  cursor: pointer;
  border-radius: 6px;
}
.tl-ruler__tick:hover .tl-ruler__yr,
.tl-ruler__tick:focus-visible .tl-ruler__yr {
  color: #111111;
}
.tl-ruler__tick:hover .tl-ruler__dot {
  background: #666666;
}
.tl-ruler__tick:focus-visible {
  outline: 2px solid #ff7324;
  outline-offset: -2px;
}
@media (max-width: 639px) {
  .tl-ruler__tick {
    width: 44px; /* jarak antar tick mobile ±62px — tidak overlap */
  }
}
.tl-ruler__yr {
  position: absolute;
  top: 6px;
  left: 50%; /* anchor tengah kotak hit tick */
  translate: -50% 0;
  font-family: Geist, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #666666;
  font-variant-numeric: tabular-nums;
}
.tl-ruler__dot {
  position: absolute;
  top: 23px;
  left: 50%; /* anchor tengah kotak hit tick */
  translate: -50% 0;
  rotate: 45deg;
  width: 6px;
  height: 6px;
  background: #999999;
}
.tl-ruler__tick.is-active .tl-ruler__yr {
  color: #111111;
  font-weight: 700;
}
.tl-ruler__tick.is-active .tl-ruler__dot {
  background: linear-gradient(135deg, #6ba6ff, #ee88ff, #ff7324);
}
.tl-ruler__eraline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: #ff7324;
  opacity: 0.85;
  pointer-events: none; /* dekoratif — tidak boleh mencegat klik tick */
}
.tl-ruler__eralabel {
  position: absolute;
  bottom: 7px;
  left: 0;
  translate: -50% 0;
  font-family: Figtree, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666666;
  white-space: nowrap;
  pointer-events: none; /* dekoratif — tidak boleh mencegat klik tick */
}

/* ---- Anti-FOUC modal: elemen ber-atribut x-cloak tetap tersembunyi
   sampai Alpine selesai init lalu melepas atributnya (pola yang sama
   dengan news.html). Tanpa ini, modal detail tampil KOSONG sesaat —
   atau selama Alpine belum jalan (koneksi lambat) — saat refresh. ---- */
[x-cloak] {
  display: none !important;
}

/* ---- Modal detail (inner putih; pola border gradient situs tetap) ---- */
.tl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.66);
}
.tl-modal__card {
  position: relative;
  /* Lebar DISAMAKAN dengan popup product/solutions
     (set-subsolution-frame-zoom-product): 300px mobile -> 550px md
     -> 600px 3xl -> 700px 4xl. min(92vw,...) menjaga muat di layar
     sempit tanpa melewati padding .tl-modal 16px. */
  width: min(92vw, 300px);
  padding: 1.5px; /* border gradient 6 warna, rata semua sisi */
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    #84e1ff,
    #81f18e,
    #f9e63f,
    #6ba6ff,
    #ee88ff,
    #ff7324
  );
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}
@media (min-width: 768px) {
  .tl-modal__card {
    width: min(92vw, 550px);
  }
}
/* 3xl (1920) & 4xl (2560) — breakpoint kustom tailwind.config.js */
@media (min-width: 1920px) {
  .tl-modal__card {
    width: 600px;
  }
}
@media (min-width: 2560px) {
  .tl-modal__card {
    width: 700px;
  }
}
.tl-modal__inner {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  /* Tinggi minimal: modal teks pendek (mis. 2025) tetap proporsional
     dan panel video mendapat porsi tinggi yang pantas (paritas
     founder4 Revisi 4b). Revisi 2026-11-19: 220 -> 176 (ritme 8pt) —
     ruang kosong atas/bawah konten pendek menyusut ±35% (keluhan
     "jarak atas-bawah terlalu lebar" pada popup 2021). */
  min-height: 176px;
}
.tl-modal__media {
  position: relative; /* anchor utk video absolute (lihat bawah) */
  /* Rasio media:body 35:65 (revisi 2026-11-19, sebelumnya 30:70) —
     foto sedikit lebih lebar/memanjang; body flex:1 menyerap 65%. */
  width: 35%;
  flex-shrink: 0;
  background: #f2f2f2;
}
.tl-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Video pengganti foto modal (field "video", mis. 2025; paritas
   founder4 Revisi 4/4b): autoplay muted loop. Video 9:16 portrait
   diposisikan ABSOLUTE + object-fit:cover agar TIDAK menentukan
   tinggi modal (tinggi mengikuti teks + min-height inner) — band
   tengahnya di-crop mengisi kolom penuh. */
.tl-modal__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #111111;
}
.tl-modal__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px; /* ritme 8pt (sebelumnya 10px) */
  padding: 20px 24px;
}
.tl-modal__era {
  font-family: Figtree, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* oranye brand digelapkan: #ff7324 di atas putih hanya 2.7:1 */
  color: #c2410c;
}
.tl-modal__year {
  font-family: Geist, sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #111111;
}
.tl-modal__divider {
  /* 2px + pill, menyamakan pola .tl-card__divider yang terbukti stabil:
     garis 1px pada posisi fraksional (offset centering flex) bisa
     DI-SNAP HINGGA HILANG di Chrome w/ display scaling (DPR 1.25/1.5),
     sedangkan Firefox tetap merasterisasi 1px tsb — garis tampak
     "hilang di Chrome, muncul di Firefox" (laporan popup 2023).
     flex-shrink:0 menjaga garis tak pergi saat modal sempit. */
  height: 2px;
  border-radius: 999px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    #84e1ff,
    #81f18e,
    #f9e63f,
    #6ba6ff,
    #ee88ff,
    #ff7324
  );
}
.tl-modal__desc {
  font-family: Figtree, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #444444;
}
@media (min-width: 768px) {
  .tl-modal__desc {
    font-size: 15px;
  }
}
/* Tombol tutup DISAMAKAN dengan popup product/solutions
   (set-subsolution-btn-close-modal): 24x24 putih bulat, ikon X
   gray-700, hover -> merah red-500. */
.tl-modal__close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #374151; /* gray-700 */
  cursor: pointer;
  transition: background 150ms ease-out, color 150ms ease-out;
}
.tl-modal__close:hover {
  background: #ef4444; /* red-500 */
  color: #ffffff;
}
.tl-modal__close:focus-visible {
  outline: 2px solid #ff7324;
  outline-offset: 2px;
}
.tl-modal__close svg {
  width: 100%;
  height: 100%;
  padding: 0.25rem;
}
@media (max-width: 639px) {
  .tl-modal__inner {
    flex-direction: column;
  }
  .tl-modal__media {
    width: 100%;
    height: 150px;
  }
  .tl-modal__media img,
  .tl-modal__media video {
    height: 150px;
  }
}

/* ---- Responsif scene (identik dengan timeline.css) ---- */
@media (max-width: 1023px) {
  .tl-canvas {
    --tl-card-w: 240px;
    --tl-focal: 560;
    --tl-visible: 6.5;
  }
  .tl-card__year {
    font-size: 22px;
  }
}
@media (max-width: 639px) {
  .tl-hint {
    top: 176px; /* di bawah panel HUD agar tidak bertumpuk */
  }
  .tl-canvas {
    --tl-card-w: 196px;
    --tl-rail: 1.35;
    --tl-focal: 520;
    --tl-visible: 7; /* ruler mini-map lebih rapat di strip sempit */
    --tl-horizon: 0.145;
    --tl-safe-l: 50px;  /* mobile: to-top 20-68 / Quick Chat 218-366 */
    --tl-safe-r: 148px;
  }
  .tl-ruler {
    height: 54px; /* strip full-width; tick di zona aman via var canvas */
  }
  .tl-ruler__track::before {
    top: 22px;
  }
  .tl-ruler__dot {
    top: 19px;
  }
  .tl-ruler__eralabel {
    display: none; /* label era cukup di chip kartu di layar kecil */
  }
  .tl-card__desc {
    font-size: 15px;
    -webkit-line-clamp: 3;
  }
  /* chip era: sedikit lebih kecil + tracking rapat agar label panjang
     (mis. SECURITY & ENGINEERING) tetap muat di kartu 196px */
  .tl-card__era {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 8px;
  }
  .tl-card__year {
    font-size: 19px;
  }
  .tl-year {
    font-size: 26px;
  }
  .tl-nav {
    top: auto;
    bottom: 86px; /* di atas Quick Chat (fixed bottom 24 + ±44) */
    flex-direction: row;
  }
  .tl-hud {
    min-width: 0;
    padding: 10px 12px;
  }
}

/* ---- prefers-reduced-motion: matikan transisi dekoratif.
     Proyeksi tetap berjalan karena murni mengikuti posisi scroll
     (direct manipulation), bukan animasi otonom. ---- */
@media (prefers-reduced-motion: reduce) {
  .tl-card,
  .tl-card__more svg,
  .tl-hud__btn,
  .tl-hint {
    transition: none !important;
  }
  .tl-card:hover {
    transform: none;
  }
}
