/* ── academic.css — page-specific styles only ── */
/* Relies on index.css for tokens, reset, body, animations, scroll-line, links */

/* ── Layout ── */
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 0;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-out-expo) 0.1s both;
}

.topbar-id {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: none !important;
}

.topbar-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.topbar-nav a {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.2s;
}

.topbar-nav a:hover {
  color: var(--text-secondary);
  border-bottom: none;
}

/* ── Hero ── */
.hero {
  padding: 96px 0 64px;
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.15s both;
  border-bottom: none;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-title span {
  display: block;
  padding-left: 0.08em;
  color: var(--text-secondary);
}

.hero-divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.3s both;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 540px;
}

.entry {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) both;
}

.entry:nth-child(1) { animation-delay: 0.35s; }
.entry:nth-child(2) { animation-delay: 0.44s; }
.entry:nth-child(3) { animation-delay: 0.53s; }

.entry-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.entry-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.entry-year {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.entry p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ── Achievement list ── */
.achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.achievements li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.achievements li::before {
  content: "▪";
  color: var(--text-muted);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Entry rule (between sections) ── */
.entry-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: 56px;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-out-expo) 0.5s both;
}

/* ── Image thumbnails ── */
.img-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.img-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  width: fit-content;
}

.img-thumb {
  display: block;
  width: 160px;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--border);
  opacity: 0.65;
  transition: opacity 0.25s, border-color 0.25s;
  filter: grayscale(15%);
}

.img-trigger:hover .img-thumb {
  opacity: 1;
  border-color: var(--accent);
}

.img-caption {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 7px;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 3, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-inner {
  position: relative;
  max-width: 680px;
  width: 100%;
  transform: translateY(14px);
  transition: transform 0.35s var(--ease-out-expo);
}

.modal-backdrop.open .modal-inner {
  transform: translateY(0);
}

.modal-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.modal-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Footer ── */
.footer {
  padding: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out-expo) 0.75s both;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom: none;
}

.footer-year {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── Vertical rule ── */
.v-rule {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 0.8s both;
}

.v-rule-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.v-rule-text {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 48px; }
  .v-rule { display: none; }
  .topbar-nav { gap: 14px; }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .img-thumb { width: 130px; }
}