@font-face {
  font-family: "Helvetica Neue";
  src: local("HelveticaNeue-Bold"), local("Helvetica Neue Bold"), local("HelveticaNeue");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: local("HelveticaNeue"), local("Helvetica Neue");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: local("HelveticaNeue-Light"), local("Helvetica Neue Light"), local("HelveticaNeue");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --header-h: clamp(96px, 14vh, 148px);
  --bg: #0b0c10;
  --surface: #151823;
  --ink: #EAEFF8;
  --muted: #A1AAB7;
  --teal: #31d0c6;

  --year-w: clamp(220px, 22vw, 330px);
  --card-h: clamp(58px, 7vh, 72px);
  --gap: clamp(16px, 1.6vw, 26px);

  --line-w: 1.8px;
  --elbow: 5px;
  --pop-gap: 45px;
  --pop-side: clamp(50px, 6.5vw, 70px);

  --line-color: rgba(49, 208, 198, .95);
}

/* ---- global ---- */
*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.theme-dark {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.4;
}

html {
  scroll-behavior: smooth;
}

/* ===== Video Background ===== */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay for better readability */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 16, .70);
  z-index: -1;
}

/* ===== Boot loader ===== */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 10% 10%, rgba(18, 22, 34, .98), rgba(5, 7, 10, .98));
  transition: opacity .35s ease;
}

.boot-loader.morphing {
  background: transparent !important;
  pointer-events: none;
}

.boot-brand {
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(28px, 7vw, 64px);
  display: flex;
  align-items: baseline;
  gap: .35em;
  color: #fff;
  text-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transform-origin: left top;
  transition: all .8s ease;
}

.boot-beg {
  color: #ffffff;
  opacity: .98;
}

.boot-year {
  color: #00adbb;
}

#siteLogo {
  opacity: 0;
  transition: opacity .4s ease;
}

#siteLogo.show {
  opacity: 1;
}

/* =========================
   HEADER (Desktop)
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(7, 10, 16, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .38);
}

.brand,
.timeline-title {
  display: none !important;
}

.brand img {
  height: calc(var(--header-h) - 16px);
  width: auto;
  display: block;
  object-fit: contain
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: .4px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-title:hover {
  opacity: .9;
}

.brand-accent {
  color: #00adbb;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 24px);
}

.menu-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 16px);
}

.menu-link:hover {
  opacity: .9;
}

.years {
  position: relative;
}

.years-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #eaf2f7;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: clamp(13px, 1.5vw, 15px);
}

.years-btn:hover {
  background: rgba(255, 255, 255, .10);
}

.years-btn:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ===== BIGGER ARROW FOR ARTEFACTS MENU ===== */
.years-btn span {
  font-size: 16px !important;
  transform: scale(1.3);
  margin-left: 2px;
}

.years-list {
  position: absolute;
  right: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow: auto;
  background: #0F1320;
  border: 1px solid #2a3346;
  border-radius: 14px;
  padding: 8px;
  margin: 0;
  list-style: none;
  display: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  z-index: 1000;
}

.years-list.show {
  display: block;
}

.years-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 10px;
  font-weight: 600;
}

.brand-mod {
  margin-left: 6px;
  color: #fff;
  text-decoration: none;
}

.brand-mod img {
  max-height: 19px;
  width: auto;
  display: block;
}

.brand-mod:hover {
  color: #cfe8ff;
}

.hamburger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #2a3346;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #dfe6ff;
  border-radius: 2px;
}

.hamburger span:nth-child(1) {
  top: 12px
}

.hamburger span:nth-child(2) {
  top: 19px
}

.hamburger span:nth-child(3) {
  top: 26px
}

/* ===== MODERN RIGHT-TO-LEFT MOBILE MENU ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  right: -85%;
  width: 85%;
  height: 100vh;
  background: #000000;
  background: linear-gradient(135deg, #000000 0%, #0a0f1c 100%);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
  border-left: 1px solid rgba(49, 208, 198, 0.1);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
  right: 0;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 100px 30px 40px;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  color: #EAEFF8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  text-align: left;
}

.mobile-nav-link:hover {
  background: rgba(49, 208, 198, 0.1);
  border-color: rgba(49, 208, 198, 0.3);
  color: #31d0c6;
  transform: translateX(-4px);
}

.mobile-nav-section {
  width: 100%;
  position: relative;
  margin-bottom: 16px;
}

.mobile-nav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  color: #EAEFF8;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.mobile-nav-title:hover {
  background: rgba(49, 208, 198, 0.1);
  border-color: rgba(49, 208, 198, 0.3);
  color: #31d0c6;
}

.mobile-nav-title::after {
  content: "▾";
  font-size: 18px;
  /* Bigger arrow */
  color: #A1AAB7;
  transition: transform 0.3s ease;
  transform: scale(1.3);
  /* Bigger arrow */
  margin-left: 8px;
}

.mobile-nav-title.open::after {
  transform: rotate(180deg) scale(1.3);
  /* Bigger arrow */
  color: #31d0c6;
}

.mobile-nav-title.open {
  background: rgba(49, 208, 198, 0.15);
  border-color: rgba(49, 208, 198, 0.4);
  color: #31d0c6;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.years-list.mobile {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(15, 19, 32, 0.95);
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  position: relative;
  z-index: 1;
}

.years-list.mobile.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.years-list.mobile li {
  margin: 0;
}

.years-list.mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: #A1AAB7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.years-list.mobile a:hover {
  background: rgba(49, 208, 198, 0.1);
  color: #00C9FF;
  padding-left: 28px;
}

.years-list.mobile li:last-child a {
  border-bottom: none;
}

.mobile-nav-link.mod-link {
  background: rgba(49, 208, 198, 0.1);
  border-color: rgba(49, 208, 198, 0.3);
  margin-bottom: 0;
}

.mobile-nav-link.mod-link:hover {
  background: rgba(49, 208, 198, 0.2);
  border-color: rgba(49, 208, 198, 0.5);
}

.close-mobile-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #EAEFF8;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.close-mobile-menu:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(49, 208, 198, 0.5);
  color: #31d0c6;
  transform: rotate(90deg);
}

.hamburger {
  transition: all 0.3s ease;
  position: relative;
  z-index: 10001;
}

.hamburger.active {
  background: rgba(49, 208, 198, 0.1);
  border-color: rgba(49, 208, 198, 0.4);
}

.hamburger.active span {
  background: #31d0c6;
}

.hamburger span:nth-child(1) {
  top: 14px;
}

.hamburger span:nth-child(2) {
  top: 21px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  width: 20px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  width: 20px;
}

.hamburger span {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLL TO EXPLORE CUE ===== */
.scroll-cue {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #00adbb;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 10;
  pointer-events: none;
}

.scroll-cue.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.scroll-cue-arrow {
  width: 20px;
  height: 20px;
  position: relative;
  animation: float 2s ease-in-out infinite;
}

.scroll-cue-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #00adbb;
  transform: translateX(-50%);
}

.scroll-cue-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #00adbb;
  border-bottom: 2px solid #00adbb;
  transform: translateX(-50%) rotate(45deg);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.scroll-cue-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

/* ---- shell & rail (Desktop) ---- */
.timeline-shell {
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(180deg, rgba(8, 10, 16, .70), rgba(8, 10, 16, .70)), url("../images/bg_image/bgimage.jpg") center/cover no-repeat !important;
}

.timeline-rail {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: 100%;
  padding-inline: clamp(16px, 2vw, 28px);
  scroll-snap-type: x mandatory;
  scroll-padding-left: 28px;
  overscroll-behavior-inline: contain;
}

.timeline-rail {
  scrollbar-width: none
}

.timeline-rail::-webkit-scrollbar {
  height: 0
}

.timeline-intro-block {
  flex: 0 0 clamp(260px, 28vw, 380px);
  padding: 20px 24px;
}

.timeline-intro-block h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
  white-space: nowrap;
}

.timeline-intro-block p {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: #a1aab7;
  margin: 0;
}

.intro-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-card .intro-left {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  margin-right: 20px;
}

.intro-card .intro-left span {
  margin-left: 4px;
}

.intro-card .intro-right {
  font-size: 25px;
  color: #00adbb;
  font-weight: 800;
}

/* ---- year cards (Desktop) ---- */
.year-node {
  flex: 0 0 var(--year-w);
  position: relative
}

.year-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  height: var(--card-h);
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(14, 18, 28, .78);
  border: 1px solid #293147;
  color: #00adbb;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.year-card:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px
}

.year-thumb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f111a;
  border: 1px solid #253048;
  display: flex;
  align-items: center;
  justify-content: center;
}

.year-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== REDUCED YEAR TEXT SIZE ===== */
.year-label {
  font-size: clamp(15px, 1.8vw, 18px);
  /* Reduced from 16px,2vw,20px */
  text-align: left;
  flex: 1;
  white-space: nowrap;
}

.year-static-label {
  position: relative;
  width: 12px;
  height: var(--card-h);
  flex: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00adbb;
  font-weight: 800;
  font-size: 20px;
  user-select: none;
  pointer-events: none;
}

.year-static-label::before {
  content: "|";
  line-height: 1;
}

.year-static-text {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 700;
  color: #00adbb;
  white-space: nowrap;
  pointer-events: none;
}

.year-tick {
  position: relative;
  width: 12px;
  height: var(--card-h);
  flex: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f586b;
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
}

.year-tick::before {
  content: "|";
  line-height: 1
}

.tick-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(.96);
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(24, 28, 38, .98);
  border: 1px solid rgba(84, 100, 130, .35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  font-size: 12px;
  font-weight: 600;
  color: #b7f5e6;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 3;
}

.tick-pop.show {
  opacity: 1;
  transform: translateX(-50%) scale(1)
}

.pop-card {
  position: absolute;
  left: 0;
  width: clamp(180px, 30vw, 350px);
  height: clamp(170px, 20vw, 220px);
  background: var(--surface);
  border: 1px solid #202637;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
  overflow: hidden;
  z-index: 3;

  display: block;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pop-card:link,
.pop-card:visited,
.pop-card:hover,
.pop-card:active,
.pop-card:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}

a.pop-card {
  cursor: pointer;
}

.pop-card.up {
  bottom: calc(100% + var(--pop-gap));
  transform: translateX(5%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .55),
    0 6px 12px rgba(49, 208, 198, .15);
}

.pop-card.down {
  top: calc(100% + var(--pop-gap));
  transform: translateX(-3%);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .55),
    0 -6px 12px rgba(49, 208, 198, .15);
}

.pop-card .thumb {
  height: 70%;
  background: #0f111a
}

.pop-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.pop-card .meta {
  height: 30%;
  padding: 2px 12px;
  background: #111522;
  border-top: 1px solid #1e2433;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pop-card .meta .y {
  color: var(--muted);
  font-size: 12px
}

.connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2
}

.connector .seg {
  position: absolute;
  width: var(--line-w);
  background: var(--line-color);
  border-radius: 2px
}

.year-node.highlighted .connector .seg {
  background: rgba(49, 208, 198, 1);
  box-shadow: 0 0 8px rgba(49, 208, 198, 0.6);
}

.progress.progress-top {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  height: 3px;
  background: #0f1320;
  z-index: 45
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), #5ef2cc)
}

.year-text-only {
  flex: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00adbb !important;
  font-weight: 800;
  font-size: 20px;
  user-select: none;
  pointer-events: none;
  height: var(--card-h);
  position: relative;
}

/* ===== About (Bootstrap modal theming) ===== */
.about-img-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img {
  max-width: 90%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.about-text-col {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== "Twist" animation for Artifacts dropdown ===== */
.twist-list.show li {
  opacity: 1;
  transform: none;
}

.twist-list li {
  opacity: 0;
  transform: rotateY(90deg);
  transform-origin: left center;
}

.twist-list.show li {
  animation: twistIn .35s ease-out forwards;
}

.twist-list.show li:nth-child(1) {
  animation-delay: 0.00s
}

.twist-list.show li:nth-child(2) {
  animation-delay: 0.04s
}

.twist-list.show li:nth-child(3) {
  animation-delay: 0.08s
}

.twist-list.show li:nth-child(4) {
  animation-delay: 0.12s
}

.twist-list.show li:nth-child(5) {
  animation-delay: 0.16s
}

@keyframes twistIn {
  from {
    opacity: 0;
    transform: rotateY(90deg)
  }

  to {
    opacity: 1;
    transform: rotateY(0)
  }
}

.brand-title.logo-hidden {
  opacity: 0;
  visibility: hidden;
}

.brand-title.logo-pop {
  opacity: 1;
  visibility: visible;
  animation: logoPop .48s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes logoPop {
  0% {
    transform: scale(.85);
    filter: blur(2px);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
}

.boot-loader.morphing .boot-brand {
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.boot-loader.fade {
  transition: opacity 0.8s ease-in-out;
}

/* ===== HIGHLIGHT EFFECTS ===== */
.pop-card.highlight {
  animation: glow-pulse 2s ease-in-out;
  box-shadow:
    0 0 0 3px rgba(49, 208, 198, 0.9),
    0 0 25px 10px rgba(49, 208, 198, 0.5),
    0 0 50px 15px rgba(49, 208, 198, 0.3);
  z-index: 1001;
  position: relative;
}

@keyframes glow-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(49, 208, 198, 0.8),
      0 0 0 0 rgba(49, 208, 198, 0.5),
      0 0 0 0 rgba(49, 208, 198, 0.3);
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(49, 208, 198, 0.6),
      0 0 25px 15px rgba(49, 208, 198, 0.4),
      0 0 50px 20px rgba(49, 208, 198, 0.2);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(49, 208, 198, 0),
      0 0 0 0 rgba(49, 208, 198, 0),
      0 0 0 0 rgba(49, 208, 198, 0);
  }
}

.year-card.highlight {
  animation: simple-highlight 2s ease-in-out;
  box-shadow: 0 0 0 2px rgba(49, 208, 198, 0.8);
  border-radius: 18px;
  z-index: 1000;
  position: relative;
}

@keyframes simple-highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(49, 208, 198, 0.7);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(49, 208, 198, 0.4);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(49, 208, 198, 0);
  }
}

/* ===== IMPROVED ARTIFACTS DROPDOWN STYLING ===== */
data-year {
  font-size: 16px !important;
}

.years-list {
  background: rgba(15, 19, 32, 0.98) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(49, 208, 198, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
  padding: 12px !important;
  min-width: 280px !important;
}

.years-list a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px !important;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.years-list a:hover {
  background: rgba(49, 208, 198, 0.1) !important;
  color: #00C9FF !important;
  transform: translateX(4px);
}

.years-list a:last-child {
  margin-bottom: 0;
}

/* ===== MOBILE TIMELINE RAIL ===== */
.mobile-timeline-rail {
  position: fixed;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  width: 70px;
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.98) 0%, rgba(10, 15, 28, 0.98) 100%);
  backdrop-filter: blur(25px);
  border-left: 2px solid rgba(0, 173, 187, 0.2);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.mobile-timeline-rail::-webkit-scrollbar {
  display: none;
}

/* Base mobile year indicator */
.mobile-year-indicator {
  width: 100%;
  text-align: left;
  padding: 10px 8px 10px 20px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  min-height: 32px;
  z-index: 1;
}

/* dot on the left edge */
.mobile-year-indicator::before {
  content: "";
  position: absolute;
  left: 5px;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 5px currentColor;
}

/* Years WITH objects - INCREASED FONT SIZE AND FULLY VISIBLE */
.mobile-timeline-rail .mobile-year-indicator.has-objects {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: rgb(255, 255, 255) !important;
  opacity: 1 !important;
  min-height: 38px !important;
  padding: 13px 8px 13px 20px !important;
}

.mobile-timeline-rail .mobile-year-indicator.has-objects::before {
  width: 11px !important;
  height: 11px !important;
  background: rgba(255, 255, 255, 1) !important;
  opacity: 1 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7) !important;
}

/* Gap years - increased visibility with less space */
.mobile-timeline-rail .mobile-year-indicator.gap-year {
  opacity: 0.7 !important;
  min-height: 20px !important;
  padding: 5px 8px 5px 20px !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.mobile-timeline-rail .mobile-year-indicator.gap-year::before {
  width: 6px !important;
  height: 6px !important;
  opacity: 0.7 !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

/* ACTIVE year styling */
.mobile-timeline-rail .mobile-year-indicator.active {
  color: #00FFF5 !important;
  font-weight: 800 !important;
  font-size: 19px !important;
  padding-left: 20px !important;
  background: linear-gradient(90deg,
      rgba(0, 173, 187, 0.25) 0%,
      rgba(0, 173, 187, 0.05) 100%) !important;
  border-radius: 8px 0 0 8px;
  margin-right: 0;
  text-shadow: 0 0 10px rgba(0, 255, 245, 0.5) !important;
  animation: pulse-active 2s ease-in-out infinite;
}

@keyframes pulse-active {

  0%,
  100% {
    background: linear-gradient(90deg,
        rgba(0, 173, 187, 0.25) 0%,
        rgba(0, 173, 187, 0.05) 100%);
  }

  50% {
    background: linear-gradient(90deg,
        rgba(0, 173, 187, 0.35) 0%,
        rgba(0, 173, 187, 0.1) 100%);
  }
}

.mobile-year-indicator.active::before {
  width: 14px !important;
  height: 14px !important;
  background: #00FFF5 !important;
  left: 3px;
  box-shadow:
    0 0 5px rgba(0, 255, 245, 0.8),
    0 0 15px rgba(0, 255, 245, 0.5),
    0 0 25px rgba(0, 173, 187, 0.3);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 5px rgba(0, 255, 245, 0.8),
      0 0 15px rgba(0, 255, 245, 0.5),
      0 0 25px rgba(0, 173, 187, 0.3);
  }

  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 8px rgba(0, 255, 245, 1),
      0 0 20px rgba(0, 255, 245, 0.7),
      0 0 35px rgba(0, 173, 187, 0.5);
  }
}

/* trail effect for active year */
.mobile-year-indicator.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg,
      rgba(0, 255, 245, 0.6) 0%,
      rgba(0, 255, 245, 0) 100%);
  border-radius: 2px;
  animation: trail-pulse 2s ease-in-out infinite;
}

@keyframes trail-pulse {

  0%,
  100% {
    opacity: 0.5;
    width: 25px;
  }

  50% {
    opacity: 1;
    width: 35px;
  }
}

/* Hover effects for years with objects */
.mobile-year-indicator.has-objects:not(.active):hover {
  color: #00D9FF;
  background: rgba(0, 173, 187, 0.08);
  border-radius: 8px 0 0 8px;
  text-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}

.mobile-year-indicator.has-objects:not(.active):hover::before {
  background: #00D9FF;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.8);
}

/* Gap years get minimal hover effect */
.mobile-year-indicator.gap-year:hover {
  opacity: 0.6;
}

/* =============================================================
   TABLET BREAKPOINTS - ORIENTATION BASED LAYOUT
   ============================================================= */

/* Tablet Portrait (768px - 980px) - Use Mobile Layout */
@media (min-width: 768px) and (max-width: 980px) and (orientation: portrait) {

  :root {
    --header-h: 80px;
    --mobile-card-height: 75vh;
    --mobile-preview-height: 25vh;
    --mobile-placeholder-height: 15vh;
  }

  /* Show mobile timeline rail */
  .mobile-timeline-rail {
    display: flex;
  }

  .timeline-shell,
  .timeline-rail {
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }

  /* Hide desktop menu, show hamburger */
  .menu {
    display: none
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .progress.progress-top {
    display: none
  }

  /* ===== MOBILE HEADER (Sticky) ===== */
  .site-header {
    height: var(--header-h);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 10, 16, .95);
    backdrop-filter: blur(15px);
  }

  .brand-title {
    font-size: 20px;
    letter-spacing: 0.5px;
  }

  .hamburger {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ===== MOBILE TIMELINE SHELL - FIXED BACKGROUND ===== */
  .timeline-shell {
    height: 100vh;
    padding-right: 70px;
    background: linear-gradient(180deg, rgba(8, 10, 16, .70), rgba(8, 10, 16, .70)), url("../images/bg_image/tab_view.jpg") center repeat !important;
    background-attachment: fixed !important;
  }

  /* ===== SMOOTH VERTICAL CARD STACK LAYOUT ===== */
  .timeline-rail {
    height: calc(100vh - var(--header-h));
    width: 100%;
    padding: 0;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: auto;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;

    gap: 0;

    /*Enable proper touch scrolling */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  /* Hide scrollbar but keep functionality */
  .timeline-rail::-webkit-scrollbar {
    display: none;
  }

  .timeline-rail {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* ===== INTRO BLOCK POSITIONING ===== */
  .timeline-intro-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    flex: 0 0 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.4) 0%, rgba(5, 8, 14, 0.6) 100%);
    position: relative;
  }

  .timeline-intro-block h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    white-space: normal;
    color: #FFFFFF;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: -350px;
  }

  .timeline-intro-block p {
    font-size: 1.1rem;
    max-width: 320px;
    color: #A1AAB7;
    line-height: 1.5;
    margin: 0 auto;
    margin-top: 10px;
  }

  /* ===== SMOOTH CONTINUOUS ANIMATION CARD STACK ===== */
  .year-node {
    min-height: 85vh;
    height: var(--mobile-card-height);
    width: 100%;
    flex: 0 0 var(--mobile-card-height);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    position: relative;

    /* Continuous transform animation based on scroll position */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Base styles for all year cards */
  .year-card {
    height: auto;
    width: 100%;
    max-width: 360px;

    flex-direction: column;
    gap: 20px;
    padding: 0;

    background: transparent;
    border: none;

    pointer-events: all;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Year label - scales continuously */
  .year-label {
    order: -1;
    font-weight: 800;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.3);
    letter-spacing: 0.02em;
    width: 100%;
    white-space: normal;
    line-height: 1;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Artifact image - scales continuously */
  .year-thumb {
    order: 1;
    border-radius: 20px;
    border: 2px solid rgba(49, 208, 198, 0.3);
    background: #0f111a;
    pointer-events: all;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .year-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Artifact title - appears only when focused */
  .year-card::after {
    content: attr(data-artifact-title);
    display: block;
    order: 2;

    font-size: 1.5rem;
    font-weight: 600;
    color: #EAEFF8;
    text-align: center;

    margin-top: 24px;
    padding: 0 20px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Focus state - when card is centered */
  .year-node.focus-card .year-label {
    font-size: 4.5rem;
    margin-bottom: 24px;
  }

  .year-node.focus-card .year-thumb {
    width: 340px;
    height: 340px;
    border-width: 2px;
    opacity: 1;
  }

  .year-node.focus-card .year-card::after {
    opacity: 1;
    transform: translateY(0);
  }

  /* Preview state - when card is just below focus */
  .year-node.preview-card .year-label {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
  }

  .year-node.preview-card .year-thumb {
    width: 200px;
    height: 200px;
    border-width: 1.5px;
    opacity: 0.9;
  }

  .year-node.preview-card .year-card::after {
    opacity: 0;
  }

  /* Placeholder state - when card is further away */
  .year-node.placeholder-card .year-label {
    font-size: 2rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
  }

  .year-node.placeholder-card .year-thumb {
    width: 140px;
    height: 140px;
    border-width: 1px;
    opacity: 0.7;
  }

  .year-node.placeholder-card .year-card::after {
    opacity: 0;
  }

  /* ===== HIDE DESKTOP-ONLY ELEMENTS ===== */
  .pop-card,
  .connector,
  .tick-pop {
    display: none !important;
  }

  /* ===== REMOVED PROGRESS DOTS ===== */
  .mobile-progress-dots {
    display: none !important;
  }

  /* ===== MOBILE STATIC LABELS AND TICKS ===== */
  .year-tick {
    display: none !important;
  }

  /* Keep only the special years (2026, 2100) visible */
  .year-text-only {
    display: none !important;
  }

  .year-static-text {
    display: none !important;
  }

  /* ===== ENHANCED MOBILE MENU DESIGN ===== */
  .menu-overlay {
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.98) 0%, rgba(5, 8, 14, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 201, 255, 0.1);
  }

  .mobile-nav-content {
    padding: 100px 24px 40px;
  }

  .mobile-nav-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #EAEFF8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 255, 0.1), transparent);
    transition: left 0.6s ease;
  }

  .mobile-nav-link:hover::before {
    left: 100%;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    background: rgba(0, 201, 255, 0.1);
    border-color: rgba(0, 201, 255, 0.3);
    color: #00adbb;
    transform: translateX(-4px);
  }

  .mobile-nav-title {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    font-size: 17px;
    font-weight: 600;
    color: #EAEFF8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-nav-title:hover,
  .mobile-nav-title:focus {
    background: rgba(0, 201, 255, 0.1);
    border-color: rgba(0, 201, 255, 0.3);
    color: #00adbb;
  }

  .mobile-nav-title.open {
    background: rgba(0, 201, 255, 0.15);
    border-color: rgba(0, 201, 255, 0.4);
    color: #00adbb;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .years-list.mobile {
    background: rgba(15, 19, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
  }

  .years-list.mobile a {
    padding: 16px 20px;
    color: #A1AAB7;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
  }

  .years-list.mobile a:hover,
  .years-list.mobile a:focus {
    background: rgba(0, 201, 255, 0.1);
    color: #00adbb;
    padding-left: 24px;
  }

  .mobile-nav-link.mod-link {
    background: rgba(0, 201, 255, 0.1);
    border-color: rgba(0, 201, 255, 0.3);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-link.mod-link img {
    height: 20px;
    width: auto;
  }

  .mobile-nav-link.mod-link:hover {
    background: rgba(0, 201, 255, 0.2);
    border-color: rgba(0, 201, 255, 0.5);
  }

  .close-mobile-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 201, 255, 0.5);
    color: #00adbb;
  }

  body .mobile-timeline-rail .mobile-year-indicator.has-objects,
  .mobile-timeline-rail button.mobile-year-indicator.has-objects {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgb(255, 255, 255) !important;
    opacity: 1 !important;
    min-height: 38px !important;
    padding: 13px 8px 13px 20px !important;
  }

  /* Force font size for gap years */
  body .mobile-timeline-rail .mobile-year-indicator.gap-year,
  .mobile-timeline-rail button.mobile-year-indicator.gap-year {
    font-size: 10px !important;
    opacity: 0.7 !important;
    min-height: 20px !important;
    padding: 5px 8px 5px 20px !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  /* Force font size for active year */
  body .mobile-timeline-rail .mobile-year-indicator.active,
  .mobile-timeline-rail button.mobile-year-indicator.active {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: rgb(0, 255, 245) !important;
  }

  .scroll-cue {
    bottom: 300px !important;
  }
}

/* Tablet Landscape (768px - 980px) - Use Desktop Layout */
@media (min-width: 768px) and (max-width: 980px) and (orientation: landscape) {

  /* Ensure desktop layout for tablets in landscape */
  .menu {
    display: flex !important;
  }

  .hamburger {
    display: none !important;
  }

  .menu-overlay {
    display: none !important;
  }

  .progress.progress-top {
    display: block !important;
  }

  /* Keep desktop timeline layout */
  .timeline-shell {
    height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .timeline-rail {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    gap: var(--gap);
    flex-direction: row;
    scroll-snap-type: x mandatory;
  }

  .timeline-intro-block {
    display: block;
    flex: 0 0 clamp(260px, 28vw, 380px);
    padding: 20px 24px;
    margin-right: var(--gap);
  }

  .year-node {
    flex: 0 0 var(--year-w);
    min-height: auto;
    height: auto;
    padding: 0;
    background: transparent;
  }

  .year-card {
    flex-direction: row;
    height: var(--card-h);
    padding: 0 16px;
    background: rgba(14, 18, 28, .78);
    border: 1px solid #293147;
    pointer-events: all;
  }

  .year-label {
    order: 0;
    font-size: clamp(15px, 1.8vw, 18px);
    text-align: left;
    margin-bottom: 0;
  }

  .year-thumb {
    order: 0;
    width: 48px;
    height: 48px;
  }

  .pop-card,
  .connector,
  .tick-pop {
    display: block !important;
  }

  .year-card::after {
    display: none;
  }

  .mobile-progress-dots {
    display: none !important;
  }

  /* Hide scroll cue and mobile timeline rail on tablet landscape */
  .scroll-cue {
    display: none !important;
  }

  .mobile-timeline-rail {
    display: none !important;
  }
}

@media (min-width: 981px) {
  .scroll-cue {
    display: none !important;
  }
}

/* =============================================================
   MOBILE RESPONSIVE DESIGN (up to 767px)
   ============================================================= */
@media (max-width: 767px) {
  :root {
    --header-h: 80px;
    --mobile-card-height: 70vh;
    --mobile-preview-height: 25vh;
    --mobile-placeholder-height: 15vh;
  }

  /* Show mobile timeline rail */
  .mobile-timeline-rail {
    display: flex;
  }

  .timeline-shell,
  .timeline-rail {
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }

  /* Hide desktop menu, show hamburger */
  .menu {
    display: none
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .progress.progress-top {
    display: none
  }

  /* ===== MOBILE HEADER (Sticky) ===== */
  .site-header {
    height: var(--header-h);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 10, 16, .95);
    backdrop-filter: blur(15px);
  }

  .brand-title {
    font-size: 20px;
    letter-spacing: 0.5px;
  }

  .boot-brand {
    transform-origin: left center;
  }

  .hamburger {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ===== MOBILE TIMELINE SHELL - FIXED BACKGROUND ===== */
  body .timeline-shell {
    height: 90vh;
    padding-right: 70px;
    background: url("../images/bg_image/bgimage_mobile3.jpg") center no-repeat !important;
    background-attachment: fixed !important;
  }

  /* ===== SMOOTH VERTICAL CARD STACK LAYOUT ===== */
  .timeline-rail {
    height: calc(100vh - var(--header-h));
    width: 100%;
    padding: 0;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: auto;

    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;

    gap: 0;

    /* FIXED: Enable proper touch scrolling */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  /* Hide scrollbar but keep functionality */
  .timeline-rail::-webkit-scrollbar {
    display: none;
  }

  .timeline-rail {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* ===== INTRO BLOCK POSITIONING ===== */
  .timeline-intro-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    flex: 0 0 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 20px;
    /* padding-bottom: 0 !important; */
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.4) 0%, rgba(5, 8, 14, 0.6) 100%);
    position: relative;
  }

  .timeline-intro-block h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    white-space: normal;
    color: #FFFFFF;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: -250px;
  }

  .timeline-intro-block p {
    font-size: 1.1rem;
    max-width: 320px;
    color: #A1AAB7;
    line-height: 1.5;
    margin: 0 auto;
    margin-top: 10px;
  }

  /* ===== SMOOTH CONTINUOUS ANIMATION CARD STACK ===== */
  .year-node {
    min-height: 80vh;
    height: var(--mobile-card-height);
    width: 100%;
    flex: 0 0 var(--mobile-card-height);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Base styles for all year cards */
  .year-card {
    height: auto;
    width: 100%;
    max-width: 320px;

    flex-direction: column;
    gap: 20px;
    padding: 0;

    background: transparent;
    border: none;

    pointer-events: all;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Year label - scales continuously */
  .year-label {
    order: -1;
    font-weight: 800;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.3);
    letter-spacing: 0.02em;
    width: 100%;
    white-space: normal;
    line-height: 1;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Artifact image - scales continuously */
  .year-thumb {
    order: 1;
    border-radius: 20px;
    border: 2px solid rgba(49, 208, 198, 0.3);
    background: #0f111a;
    pointer-events: all;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .year-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Artifact title - appears only when focused */
  .year-card::after {
    content: attr(data-artifact-title);
    display: block;
    order: 2;

    font-size: 1.2rem;
    font-weight: 600;
    color: #EAEFF8;
    text-align: center;

    margin-top: 20px;
    padding: 0 20px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Focus state - when card is centered */
  .year-node.focus-card .year-label {
    font-size: 4rem;
    margin-bottom: 20px;
  }

  .year-node.focus-card .year-thumb {
    width: 280px;
    height: 280px;
    border-width: 2px;
    opacity: 1;
  }

  .year-node.focus-card .year-card::after {
    opacity: 1;
    transform: translateY(0);
  }

  /* Preview state - when card is just below focus */
  .year-node.preview-card .year-label {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
  }

  .year-node.preview-card .year-thumb {
    width: 180px;
    height: 180px;
    border-width: 1.5px;
    opacity: 0.9;
  }

  .year-node.preview-card .year-card::after {
    opacity: 0;
  }

  /* Placeholder state - when card is further away */
  .year-node.placeholder-card .year-label {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
  }

  .year-node.placeholder-card .year-thumb {
    width: 120px;
    height: 120px;
    border-width: 1px;
    opacity: 0.7;
  }

  .year-node.placeholder-card .year-card::after {
    opacity: 0;
  }

  /* ===== HIDE DESKTOP-ONLY ELEMENTS ===== */
  .pop-card,
  .connector,
  .tick-pop {
    display: none !important;
  }

  /* ===== REMOVED PROGRESS DOTS ===== */
  .mobile-progress-dots {
    display: none !important;
  }

  /* ===== MOBILE STATIC LABELS AND TICKS ===== */
  .year-tick {
    display: none !important;
  }

  /* Keep only the special years (2026, 2100) visible */
  .year-text-only {
    display: none !important;
  }

  .year-static-text {
    display: none !important;
  }

  /* ===== ENHANCED MOBILE MENU DESIGN ===== */
  .menu-overlay {
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.98) 0%, rgba(5, 8, 14, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 201, 255, 0.1);
  }

  .mobile-nav-content {
    padding: 100px 24px 40px;
  }

  .mobile-nav-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #EAEFF8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 255, 0.1), transparent);
    transition: left 0.6s ease;
  }

  .mobile-nav-link:hover::before {
    left: 100%;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    background: rgba(0, 201, 255, 0.1);
    border-color: rgba(0, 201, 255, 0.3);
    color: #00adbb;
    transform: translateX(-4px);
  }

  .mobile-nav-title {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    font-size: 17px;
    font-weight: 600;
    color: #EAEFF8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-nav-title:hover,
  .mobile-nav-title:focus {
    background: rgba(0, 201, 255, 0.1);
    border-color: rgba(0, 201, 255, 0.3);
    color: #00adbb;
  }

  .mobile-nav-title.open {
    background: rgba(0, 201, 255, 0.15);
    border-color: rgba(0, 201, 255, 0.4);
    color: #00adbb;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .years-list.mobile {
    background: rgba(15, 19, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
  }

  .years-list.mobile a {
    padding: 16px 20px;
    color: #A1AAB7;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
  }

  .years-list.mobile a:hover,
  .years-list.mobile a:focus {
    background: rgba(0, 201, 255, 0.1);
    color: #00adbb;
    padding-left: 24px;
  }

  .mobile-nav-link.mod-link {
    background: rgba(0, 201, 255, 0.1);
    border-color: rgba(0, 201, 255, 0.3);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-link.mod-link img {
    height: 20px;
    width: auto;
  }

  .mobile-nav-link.mod-link:hover {
    background: rgba(0, 201, 255, 0.2);
    border-color: rgba(0, 201, 255, 0.5);
  }

  .close-mobile-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 201, 255, 0.5);
    color: #00adbb;
  }

  body .mobile-timeline-rail .mobile-year-indicator.has-objects,
  .mobile-timeline-rail button.mobile-year-indicator.has-objects {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: rgb(255, 255, 255) !important;
    opacity: 1 !important;
    min-height: 38px !important;
    padding: 13px 8px 13px 20px !important;
  }

  body .mobile-timeline-rail .mobile-year-indicator.gap-year,
  .mobile-timeline-rail button.mobile-year-indicator.gap-year {
    font-size: 10px !important;
    opacity: 0.7 !important;
    min-height: 20px !important;
    padding: 5px 8px 5px 20px !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  body .mobile-timeline-rail .mobile-year-indicator.active,
  .mobile-timeline-rail button.mobile-year-indicator.active {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: rgb(0, 255, 245) !important;
  }


  .scroll-cue {
    bottom: 230px !important;
  }

}

/* ===== RESPONSIVE ADJUSTMENTS FOR SMALL PHONES ===== */
@media (max-width: 390px) {
  .timeline-shell {
    padding-right: 70px;
    background:
      linear-gradient(180deg, rgba(8, 10, 16, .70), rgba(8, 10, 16, .70)),
      url("../images/bg_image/bgimage.jpg") center/cover no-repeat fixed !important;
  }

  .mobile-timeline-rail {
    width: 70px;
  }

  .mobile-year-indicator {
    padding: 10px 6px 10px 14px;
    font-size: 11px;
  }

  .mobile-year-indicator.active {
    transform: translateX(-6px);
    padding-left: 18px;
    font-size: 14px;
  }

  .timeline-intro-block h1 {
    font-size: 2.2rem;
  }

  .timeline-intro-block p {
    font-size: 1rem;
    max-width: 280px;
  }

  .timeline-intro-block {
    padding: 15px;
  }

  .year-node.focus-card .year-label {
    font-size: 3.5rem;
  }

  .year-node.focus-card .year-thumb {
    width: 250px;
    height: 250px;
  }

  .year-node.preview-card .year-thumb {
    width: 160px;
    height: 160px;
  }

  .year-node.placeholder-card .year-thumb {
    width: 100px;
    height: 100px;
  }

  .mobile-nav-content {
    padding: 80px 20px 30px;
  }

  .mobile-nav-link,
  .mobile-nav-title {
    font-size: 16px;
    padding: 16px 18px;
  }

  .scroll-cue {
    bottom: 200px;
  }

  .scroll-cue-text {
    font-size: 11px;
  }
}

/* ===== LANDSCAPE MODE ADJUSTMENTS ===== */
@media (max-height: 600px) and (orientation: landscape) and (max-width: 767px) {
  :root {
    --mobile-card-height: 60vh;
    --mobile-preview-height: 20vh;
    --mobile-placeholder-height: 12vh;
  }

  .timeline-intro-block h1 {
    font-size: 2rem;
    margin-top: -10px;
    margin-bottom: 15px;
  }

  .timeline-intro-block p {
    font-size: 0.9rem;
    max-width: 300px;
  }

  .year-node.focus-card .year-label {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .year-node.focus-card .year-thumb {
    width: 200px;
    height: 200px;
  }

  .year-node.preview-card .year-thumb {
    width: 140px;
    height: 140px;
  }

  .year-node.placeholder-card .year-thumb {
    width: 90px;
    height: 90px;
  }

  .year-node {
    padding: 20px 20px 10px;
  }

  .scroll-cue {
    bottom: 70px;
  }
}

/* ===== PREVENT ANIMATION ON REDUCED MOTION ===== */
@media (prefers-reduced-motion:reduce) {

  .pop-card,
  .year-card,
  .year-node,
  .timeline-rail {
    transition: none !important;
    animation: none !important;
  }

  .timeline-rail {
    scroll-behavior: auto !important;
  }

  .scroll-cue-arrow {
    animation: none !important;
  }
}