/* George Yiasemis — Personal Academic Website */

:root {
  --bg: #f7f5f2;
  --bg-alt: #efecea;
  --bg-elevated: #fffcf8;
  --surface: #ffffff;
  --text: #121820;
  --text-muted: #5c6573;
  --text-faint: #8b939e;
  --accent: #0f5568;
  --accent-light: #1a7a94;
  --accent-bright: #23a3c3;
  --accent-soft: #dceef4;
  --accent-glow: rgba(26, 122, 148, 0.12);
  --gold: #b8893a;
  --gold-soft: rgba(184, 137, 58, 0.12);
  --direct-bg: #0a2533;
  --direct-mid: #123347;
  --border: rgba(18, 24, 32, 0.08);
  --border-strong: rgba(18, 24, 32, 0.14);
  --shadow-sm: 0 1px 2px rgba(18, 24, 32, 0.04), 0 4px 16px rgba(18, 24, 32, 0.04);
  --shadow: 0 2px 8px rgba(18, 24, 32, 0.04), 0 12px 40px rgba(18, 24, 32, 0.07);
  --shadow-lg: 0 8px 24px rgba(18, 24, 32, 0.06), 0 32px 64px rgba(18, 24, 32, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-serif: "Fraunces", "Georgia", serif;
  --font-sans: "DM Sans", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
  --max-width: 1140px;
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --section-gap: 5rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -30%, var(--accent-glow), transparent 70%),
    radial-gradient(circle at 100% 0%, rgba(184, 137, 58, 0.05), transparent 40%);
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  margin-top: 0;
}

h3 { font-size: 1.2rem; }

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 252, 248, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-home {
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(26, 122, 148, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 10%, rgba(184, 137, 58, 0.07), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 3.5rem;
  align-items: start;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(145deg, var(--accent-light), var(--gold));
  opacity: 0.35;
  filter: blur(0);
  z-index: 0;
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--surface);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.hero-content h1 .name-suffix,
.tagline .name-suffix,
.cv-header .name-suffix {
  font-weight: 500;
  color: var(--text-muted);
}

.hero-content h1 .name-suffix {
  font-size: 0.52em;
  letter-spacing: 0.02em;
}

.tagline .name-suffix,
.cv-header .tagline .name-suffix {
  font-size: 0.72em;
}

.hero-content .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0.65rem 0 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.hero-content .affiliation {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.hero-content .affiliation a {
  color: var(--accent-light);
  font-weight: 500;
}

.hero-content > p {
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-content > p strong {
  color: var(--text);
  font-weight: 600;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.hero-keywords span {
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero .affiliation {
  color: var(--text-muted);
  max-width: 60ch;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease-out), color 0.2s;
}

.social-btn:hover {
  border-color: rgba(26, 122, 148, 0.35);
  box-shadow: var(--shadow);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.social-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Sections */
section {
  padding: var(--section-gap) 0;
}

section.section-alt,
#about,
#news,
#experience,
#awards {
  background: var(--bg-alt);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.section-header {
  margin-bottom: 2.75rem;
  max-width: 42rem;
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.section-header h2 {
  position: relative;
  padding-bottom: 0;
  margin-bottom: 0.65rem;
}

.section-header h2::after {
  display: none;
}

.section-header p,
.section-header-note {
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
}

.section-header-note {
  font-size: 0.95rem;
  color: var(--text-faint);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.25s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(26, 122, 148, 0.18);
}

.card h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.15rem;
}

.card .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.35rem;
}

/* Research highlights */
.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.highlight-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.highlight-list li:hover {
  border-color: rgba(22, 120, 160, 0.3);
  box-shadow: var(--shadow);
}

.highlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0 !important;
  font-size: 0.92rem;
}

.highlight-links a {
  font-weight: 600;
  text-decoration: none;
}

.highlight-links a:hover {
  text-decoration: underline;
}

.highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-soft), #c5e4f0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
}

/* News & highlights */
.news-grid {
  display: grid;
  gap: 2rem;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out), border-color 0.25s, transform 0.35s var(--ease-out);
}

.news-card--split {
  grid-template-columns: minmax(280px, 42%) 1fr;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 122, 148, 0.18);
  transform: translateY(-3px);
}

.news-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafb 0%, #eef2f6 100%);
  overflow: hidden;
  padding: 1rem;
  min-height: 200px;
  border-bottom: 1px solid var(--border);
}

.news-card--split .news-card-image {
  border-bottom: none;
  border-right: 1px solid var(--border);
  min-height: 100%;
  align-self: stretch;
}

.news-card-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.news-card-image--photo img {
  max-height: min(360px, 50vh);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.news-card-image--portrait img {
  max-height: min(420px, 55vh);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.card-thesis-cover {
  display: block;
  margin: 1rem auto 0;
  max-width: 148px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow-sm);
}

.card-thesis-cover img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s var(--ease-out);
}

.card-thesis-cover:hover img {
  transform: scale(1.02);
}

.card--thesis {
  display: flex;
  flex-direction: column;
}

.card--thesis .card-thesis-cover {
  align-self: center;
}

.news-card:hover .news-card-image img {
  transform: scale(1.02);
}

.news-card-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.news-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8a6528;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.news-card p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.news-card p:last-of-type {
  margin-bottom: 0;
}

.news-card-note {
  font-size: 0.88rem !important;
  font-style: italic;
}

.news-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.news-card-links a,
.paper-card-links a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--accent-light);
  position: relative;
}

.news-card-links a::after,
.paper-card-links a::after {
  content: " →";
  opacity: 0;
  transform: translateX(-4px);
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.news-card-links a:hover::after,
.paper-card-links a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.news-card-links a:hover,
.paper-card-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.cv-software-entry .cv-entry-meta {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* DIRECT showcase */
.direct-section {
  padding: var(--section-gap) 0;
  background: transparent;
}

.direct-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
  background:
    linear-gradient(155deg, var(--direct-bg) 0%, var(--direct-mid) 45%, #0f3d52 100%);
  border-radius: calc(var(--radius) + 6px);
  padding: 3.25rem 3.5rem;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 32px 80px rgba(10, 37, 51, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
}

.direct-showcase::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -25%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, rgba(35, 163, 195, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.direct-showcase::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(184, 137, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.direct-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.direct-showcase-content {
  position: relative;
  z-index: 1;
}

.direct-title {
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.direct-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 1.25rem;
  font-weight: 400;
}

.direct-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.direct-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.direct-stat {
  display: flex;
  flex-direction: column;
}

.direct-stat-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.direct-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-direct-primary {
  background: #fff;
  color: var(--direct-bg);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-direct-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: var(--direct-bg);
  text-decoration: none;
}

.btn-direct-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 500;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-direct-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
}

.direct-challenges {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.direct-showcase-figure {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.direct-showcase-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Paper highlights */
.paper-grid {
  display: grid;
  gap: 2rem;
}

.paper-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) 1.12fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out), border-color 0.25s, transform 0.35s var(--ease-out);
}

.paper-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 122, 148, 0.18);
  transform: translateY(-3px);
}

.paper-card-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f5f8fa 0%, #eef2f6 100%);
  padding: 1.25rem;
  min-height: 240px;
  border-right: 1px solid var(--border);
}

.paper-card-figure img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.paper-card-figure--portrait img {
  max-height: 320px;
  width: auto;
  max-width: 100%;
}

.paper-card-body {
  padding: 1.75rem 2rem;
}

.paper-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.paper-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.22rem;
  line-height: 1.35;
  font-family: var(--font-serif);
}

.paper-card p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.paper-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.paper-card-links a {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.paper-card-links a:hover {
  text-decoration: none;
}

.paper-card-compact {
  grid-template-columns: 1fr;
}

.paper-card-compact .paper-card-body {
  grid-column: 1 / -1;
}

.research-footer {
  margin-top: 2rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(26, 122, 148, 0.2);
  max-width: 760px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.35rem 1.6rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.timeline-item:hover {
  border-color: rgba(26, 122, 148, 0.2);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 7px);
  top: 1.6rem;
  width: 14px;
  height: 14px;
  background: var(--accent-bright);
  border-radius: 50%;
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px rgba(26, 122, 148, 0.25);
}

.timeline-item .period {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-item h3 {
  margin: 0.25rem 0;
}

.timeline-item .org {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Publications page */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(15, 85, 104, 0.25);
  transform: translateY(-1px);
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-item {
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s var(--ease-out);
}

.pub-item:hover {
  padding-left: 0.35rem;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-item.hidden {
  display: none;
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.pub-authors {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.pub-authors .me {
  font-weight: 600;
  color: var(--text);
}

.pub-venue {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pub-link {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out);
}

.pub-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.pub-year-heading {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--text);
  margin: 3rem 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-strong);
  position: relative;
}

.pub-year-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3rem;
  height: 2px;
  background: var(--gold);
}

.pub-year-heading:first-child {
  margin-top: 0;
}

/* CV page */
.cv-page .cv-body {
  max-width: 800px;
}

.cv-timeline {
  position: relative;
  margin: 0;
  padding: 0.15rem 0 0.15rem 1.75rem;
  border-left: 2px solid rgba(26, 122, 148, 0.22);
}

.cv-timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}

.cv-timeline-item:last-child {
  margin-bottom: 0;
}

.cv-timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 6px);
  top: 0.45rem;
  width: 10px;
  height: 10px;
  background: var(--accent-bright);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(26, 122, 148, 0.2);
}

.cv-timeline--compact .cv-timeline-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.cv-timeline--compact .cv-timeline-item::before {
  top: 0.35rem;
}

.cv-timeline-year {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cv-timeline--compact .cv-timeline-item p {
  margin: 0;
}

.cv-entry {
  margin-bottom: 0;
}

.cv-entry-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.25rem;
}

.cv-date {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.cv-list-compact {
  margin: 0;
  padding-left: 1.25rem;
}

.cv-list-compact li {
  margin-bottom: 0.5rem;
}

.cv-honors-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle {
    display: none !important;
  }

  .cv-page section {
    padding: 0.5rem 0;
  }

  body {
    background: white;
    font-size: 11pt;
  }
}

/* Legacy resume actions (unused) */
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-light);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.4rem 0.95rem;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.award-item {
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.award-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.award-item .year {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: linear-gradient(165deg, #0a1820 0%, #121820 50%, #0f2530 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Contact strip */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  padding: 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.75rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.contact-strip span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-strip a {
  color: var(--accent-light);
  font-weight: 500;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
.section-tight {
  padding-top: 0;
  padding-bottom: var(--section-gap);
}

.direct-showcase-content {
  position: relative;
  z-index: 1;
}

.direct-showcase-figure {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  :root {
    --section-gap: 3.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 252, 248, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .site-header {
    position: sticky;
  }

  .nav-inner {
    position: relative;
  }

  .hero-home {
    padding: 3rem 0 2.5rem;
  }

  .hero-photo-wrap::before {
    inset: -5px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-photo-wrap {
    max-width: 240px;
    margin: 0 auto;
  }

  .social-row {
    justify-content: center;
  }

  .contact-strip {
    flex-direction: column;
    gap: 0.75rem;
  }

  .direct-showcase {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .direct-showcase-figure {
    order: -1;
  }

  .direct-stats {
    gap: 1.25rem;
  }

  .paper-card {
    grid-template-columns: 1fr;
  }

  .paper-card-body {
    padding: 1.5rem;
  }

  .news-card,
  .news-card--split {
    grid-template-columns: 1fr;
  }

  .news-card--split .news-card-image {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 180px;
    padding: 0.85rem;
  }

  .news-card-image img {
    max-height: min(280px, 45vh);
  }

  .news-card-body {
    padding: 1.5rem;
  }
}
