/* timeline.css — Horizontal experience timeline. */

/* Horizontal timeline */
.htl-click-hint {
  position: absolute;
  top: -4px;
  right: calc(100% - 14px);
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  opacity: 0;
  animation: htlHintIn 0.5s ease 0.6s forwards;
}
.htl-click-hint-text {
  font-family: 'Doto', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  white-space: nowrap;
  color: var(--text-color, #fff);
  text-align: right;
  line-height: 1.3;
  animation: htlTextIn 0.4s ease 0.4s forwards;
}
@keyframes htlTextIn {
  from { opacity: 0; transform: translateX(4px); }
  to   { opacity: 0.55; transform: translateX(0); }
}
.htl-click-hint-arrow {
  width: 50px;
  height: 30px;
  flex-shrink: 0;
}
.htl-click-hint-arrow path {
  fill: none;
  stroke: var(--text-color, #fff);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.45;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.htl-click-hint path:nth-child(1) {
  animation: htlDraw 0.8s ease 0.6s forwards;
}
.htl-click-hint path:nth-child(2) {
  animation: htlDraw 0.3s ease 1.3s forwards;
}
.htl-click-hint path:nth-child(3) {
  animation: htlDraw 0.3s ease 1.3s forwards;
}
.htl-click-hint.is-hidden {
  animation: htlHintOut 0.3s ease forwards;
}
@keyframes htlHintIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes htlDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes htlHintOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}

.htl-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 24px 0 16px;
  cursor: grab;
  margin-bottom: 12px;
}
.htl-wrap::-webkit-scrollbar { display: none; }
.htl-wrap.is-dragging { cursor: grabbing; user-select: none; }

.htl-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  min-width: max-content;
  padding: 0 max(40px, calc((100% - 900px) / 2));
}

.htl-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18) 5%, rgba(255,255,255,0.18) 95%, transparent);
  border-radius: 1px;
}

.htl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  min-width: 120px;
  transition: transform 260ms ease;
  flex-shrink: 0;
}
.htl-node:hover { transform: translateY(-2px); }

.htl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(207, 217, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(207, 217, 255, 0.12);
  transition: all 320ms ease;
  flex-shrink: 0;
}

.htl-node.is-active .htl-dot {
  background: #92f3d0;
  border-color: #92f3d0;
  box-shadow: 0 0 0 5px rgba(146, 243, 208, 0.22), 0 0 18px rgba(146, 243, 208, 0.3);
  transform: scale(1.3);
}

.htl-label {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  max-width: 130px;
  transition: color 260ms ease;
}
.htl-node.is-active .htl-label { color: #92f3d0; }

.htl-date {
  font-size: 11px;
  opacity: 0.6;
  text-align: center;
  line-height: 1.2;
}

.htl-detail {
  position: relative;
  margin: 20px 12px 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transition: max-height 380ms cubic-bezier(.2,.8,.2,1),
              opacity 280ms ease,
              padding 380ms cubic-bezier(.2,.8,.2,1),
              margin 380ms ease;
}
.htl-detail.is-open {
  max-height: 420px;
  opacity: 1;
  padding: 16px 20px;
  margin-top: 20px;
}

.htl-detail-date {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.htl-detail-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}
.htl-detail-meta {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.35;
  margin-bottom: 10px;
}
.htl-detail-body {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.45;
}
.htl-word {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  animation: htlWordIn 0.4s forwards cubic-bezier(0.11, 0, 0.5, 0);
}

@keyframes htlWordIn {
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

body.light-mode .htl-track::before {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.14) 5%, rgba(0,0,0,0.14) 95%, transparent);
}
body.light-mode .htl-dot {
  border-color: rgba(17,17,17,0.25);
  background: rgba(17,17,17,0.06);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}
body.light-mode .htl-node.is-active .htl-dot {
  background: #1a8a5e;
  border-color: #1a8a5e;
  box-shadow: 0 0 0 5px rgba(26,138,94,0.18), 0 0 18px rgba(26,138,94,0.2);
}
body.light-mode .htl-node.is-active .htl-label { color: #1a8a5e; }
body.light-mode .htl-detail {
  background: rgba(255,255,255,0.88);
  border-color: rgba(0,0,0,0.12);
  color: #111;
}

.blog-mode .glass-card {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1200px;
  height: 90vh;
  max-height: 90vh;
  padding-top: 44px;
  z-index: 20;
  transition: all 780ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-mode .work-content {
  display: none;
}

.blog-mode .blog-content-block {
  display: flex;
  pointer-events: auto;
  overflow: hidden;
}

.blog-mode .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.blog-mode .center-image {
  opacity: 0;
  pointer-events: none;
}

.blog-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-content-block {
  display: none;
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
  flex-direction: column;
  gap: 16px;
  pointer-events: auto;
  z-index: 2;
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
}
