/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #2997ff;
  --accent-dark: #0071e3;
  --border-light: rgba(255, 255, 255, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "Fira Code", "Fira Mono", monospace;
  --radius: 14px;
  --radius-pill: 980px;
  --max-w: 900px;
  --nav-h: 56px;

  /* Liquid Glass — dark context (hero) */
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: blur(32px) saturate(180%) brightness(1.04);

  /* Liquid Glass — light section context */
  --glass-bg-light: rgba(255, 255, 255, 0.84);
  --glass-border-light: rgba(255, 255, 255, 0.72);
  --glass-blur-light: blur(14px) saturate(110%);
  --glass-shadow:
    0 5px 20px rgba(20, 38, 68, 0.06),
    0 1px 3px rgba(20, 38, 68, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --glass-shadow-hover:
    0 10px 28px rgba(20, 38, 68, 0.09),
    0 2px 6px rgba(20, 38, 68, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #060d1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Navigation — dark glass
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(8, 16, 36, 0.7);
  backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.nav-icon:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5.5rem 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2.5rem;
}

/* ============================================================
   Hero — dark, iOS 26 wallpaper aesthetic, two-column
   ============================================================ */
#hero {
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(14, 164, 192, 0.65) 0%, transparent 46%),
    radial-gradient(ellipse at 12% 70%, rgba(10, 70, 170, 0.5) 0%, transparent 44%),
    radial-gradient(ellipse at 92% 88%, rgba(60, 30, 160, 0.35) 0%, transparent 38%),
    radial-gradient(ellipse at 40% 40%, rgba(8, 100, 140, 0.3) 0%, transparent 50%),
    linear-gradient(150deg, #060d1a 0%, #0c1e42 55%, #060d1a 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.28);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

/* Research interest tags — glass on dark */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.interest {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  transition: all 0.2s;
}

.interest:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Hero CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ============================================================
   Code card (hero right column)
   ============================================================ */
.hero-code {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-code::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(14, 164, 192, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot:nth-child(1) { background: rgba(255, 95, 87, 0.8); }
.code-dot:nth-child(2) { background: rgba(255, 189, 46, 0.8); }
.code-dot:nth-child(3) { background: rgba(40, 200, 64, 0.8); }

.code-filename {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 0.3rem;
  transition: opacity 0.16s ease;
}

.code-switcher {
  margin-left: auto;
  display: flex;
  gap: 0.3rem;
}

.code-tab {
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.5;
}

.code-tab:hover {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
}

.code-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
}

.code-snippet {
  transition: opacity 0.16s ease;
}

.code-body {
  padding: 1.25rem 1.35rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
  position: relative;
  z-index: 1;
}

.c-comment { color: rgba(120, 210, 170, 0.65); }
.c-kw      { color: rgba(130, 195, 255, 0.95); }
.c-fn      { color: rgba(255, 220, 130, 0.9); }
.c-str     { color: rgba(255, 160, 110, 0.9); }
.c-num     { color: rgba(200, 180, 255, 0.9); }
.c-base    { color: rgba(255, 255, 255, 0.78); }
.c-metric  { color: rgba(100, 240, 160, 0.95); font-weight: 600; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(41, 151, 255, 0.5);
  box-shadow:
    0 2px 12px rgba(41, 151, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: #3aa3ff;
  box-shadow:
    0 6px 20px rgba(41, 151, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}


/* ============================================================
   Research and experience
   ============================================================ */
#work {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 80% 5%, rgba(144, 205, 244, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 5% 95%, rgba(196, 181, 253, 0.08) 0%, transparent 50%),
    #f7f9ff;
}

#work .section-label {
  color: var(--accent-dark);
}

#research,
#experience {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(29, 29, 31, 0.12);
}

#research .sub-section:first-child { margin-top: 0; }
#research .section-title,
#experience .section-title { letter-spacing: -0.04em; }

.sub-section { margin-bottom: 4rem; }
.sub-section:last-child { margin-bottom: 0; }
.sub-section .section-title { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* ============================================================
   Shared glass card base
   ============================================================ */
.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 52%);
  pointer-events: none;
  border-radius: inherit;
}

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

.glass-card > * { position: relative; z-index: 1; }

/* ============================================================
   Experience cards
   ============================================================ */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.exp-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.exp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 52%);
  pointer-events: none;
  border-radius: inherit;
}

.exp-card:hover {
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}

.exp-card > * { position: relative; z-index: 1; }

/* Dates lead each entry, leaving the full card width for the work details. */
.exp-dates {
  width: auto;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  line-height: 1.4;
  margin: 0;
}

/* Work details use a two-column heading, then span the card below it. */
.exp-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.exp-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  row-gap: 0.2rem;
  align-items: baseline;
  margin-bottom: 0.05rem;
}

.exp-company {
  display: block;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.exp-role {
  display: block;
  text-align: right;
  font-size: 0.88rem;
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.exp-location {
  display: block;
  grid-column: 1;
  font-size: 0.78rem;
  color: var(--muted);
}

.exp-narrative {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

/* Metric badge */
.exp-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  width: fit-content;
}

.exp-metric-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-family: var(--mono);
  line-height: 1;
}

.exp-metric-label {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Tech chip row */
.exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.exp-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.18rem 0.5rem;
}

/* ============================================================
   Publication cards
   ============================================================ */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pub-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 52%);
  pointer-events: none;
  border-radius: inherit;
}

.pub-card:hover {
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}

.pub-card > * { position: relative; z-index: 1; }

.pub-venue {
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-top: 0.15rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.venue-acl {
  background: rgba(0, 82, 204, 0.1);
  color: #0052cc;
  border: 1px solid rgba(0, 82, 204, 0.2);
}

.venue-egu {
  background: rgba(26, 122, 58, 0.1);
  color: #1a7a3a;
  border: 1px solid rgba(26, 122, 58, 0.2);
}

.venue-destine {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.venue-oss {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 0.4rem;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

a.pub-title:hover { color: var(--accent-dark); }
span.pub-title { cursor: default; }

.pub-summary {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   Project cards
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1.5px dashed rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.025);
  color: var(--muted);
  text-align: center;
}

.img-placeholder svg {
  opacity: 0.35;
  flex-shrink: 0;
}

.img-placeholder p {
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
  opacity: 0.65;
}

.project-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.project-img .img-placeholder {
  border-radius: var(--radius) var(--radius) 0 0;
  border: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  aspect-ratio: 16/9;
}

.project-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 52%);
  pointer-events: none;
  border-radius: inherit;
}

.project-card:hover {
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}

.project-card > * { position: relative; z-index: 1; }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem 0;
}

.project-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.project-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(230, 81, 0, 0.1);
  color: #c45000;
  border: 1px solid rgba(230, 81, 0, 0.18);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-bsc {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.2);
}

.badge-tsyl {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.2);
}

.badge-research {
  background: rgba(26, 122, 58, 0.1);
  color: #1a7a3a;
  border-color: rgba(26, 122, 58, 0.2);
}

/* Metric-first card hero */
.project-metric-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  padding: 1.75rem 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background:
    radial-gradient(ellipse at 15% 50%, rgba(41, 151, 255, 0.09) 0%, transparent 65%),
    linear-gradient(160deg, rgba(255,255,255,0.6) 0%, rgba(247,249,255,0.4) 100%);
  flex-shrink: 0;
}

.project-metric-hero-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-dark);
  font-family: var(--mono);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.project-metric-hero-label {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 22ch;
}

/* Video thumbnail with play overlay */
.project-img-video {
  position: relative;
}

.project-img-video .video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background 0.2s;
}

.project-card:hover .video-play {
  background: rgba(0, 0, 0, 0.42);
}

.video-play svg {
  width: 44px;
  height: 44px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  padding: 0.5rem 1.5rem 0;
}

.project-desc strong {
  color: var(--text);
  font-weight: 600;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
}

.project-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.project-event {
  font-size: 0.75rem;
  color: var(--muted);
}

.project-link {
  font-size: 0.8rem;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.75; }

.project-link-details {
  color: var(--muted);
  font-weight: 400;
}

/* ============================================================
   Writing — post lists (musings, learning log)
   ============================================================ */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.post-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 52%);
  pointer-events: none;
  border-radius: inherit;
}

.post-card:hover {
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}

.post-card > * { position: relative; z-index: 1; }

.post-date { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.post-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.post-preview { font-size: 0.88rem; line-height: 1.6; color: var(--muted); margin: 0; }

.empty-state { color: var(--muted); font-size: 0.92rem; font-style: italic; margin-top: 1rem; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 2.5rem 0;
  background: linear-gradient(160deg, #0d1f42 0%, #1a3660 100%);
  border-top: 1px solid rgba(137, 180, 216, 0.15);
  box-shadow: inset 0 1px 0 rgba(137, 180, 216, 0.12);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-code {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
  }

  .interest-tags {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  nav { padding: 0 1rem; }

  .nav-links { gap: 1rem; }

  .nav-links li.hide-mobile { display: none; }

  .container { padding: 0 1.25rem; }

  section { padding: 3.5rem 0; }

  #hero { padding: 3.5rem 0 4rem; }

  .section-title { font-size: 1.6rem; }

  .exp-card { gap: 0.5rem; }
  .exp-head { grid-template-columns: 1fr; column-gap: 0; }
  .exp-role { text-align: left; }
  .exp-location { grid-column: 1; }

  .pub-card { flex-direction: column; gap: 0.75rem; }

  .project-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

}
