@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ───────────────────────────────────────────────── */
:root {
  --background: #f8fbfc;
  --dark: #0c3953;
  --dark-deep: #071f2e;
  --teal: #59c1a9;
  --teal-mid: #3a9e8a;
  --teal-text: #2a7a6d;
  --teal-light: rgba(89, 193, 169, 0.10);
  --teal-glow: rgba(89, 193, 169, 0.20);
  --orange: #f47621;
  --orange-light: rgba(244, 118, 33, 0.08);
  --text: #0d1f2b;
  --text-muted: rgba(13, 31, 43, 0.58);
  --card: #ffffff;
  --soft-card: #ffffff;
  --surface-dark: #0c3953;
  --surface-dark-strong: #071f2e;
  --border-subtle: rgba(12, 57, 83, 0.10);
  --border-medium: rgba(12, 57, 83, 0.18);
  --profile-media-size: 220px;
  --sidebar-width: 360px;
  --nav-bluegreen: rgba(255, 255, 255, 0.13);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', Avenir, 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(12, 57, 83, 0.07);
  --shadow-md: 0 8px 24px rgba(12, 57, 83, 0.10);
  --shadow-lg: 0 20px 50px rgba(12, 57, 83, 0.13);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Utility ─────────────────────────────────────────────────────── */
.teal-text { color: var(--teal-text); font-weight: 600; }

.justified {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ─── Base ────────────────────────────────────────────────────────── */
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle deep-ocean ambient light */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 70% at 10% 15%, rgba(89, 193, 169, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 100% at 88% 75%, rgba(12, 57, 83, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 55% 42%, rgba(89, 193, 169, 0.03) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
  animation: ambientPulse 18s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1; }
}

body.home-layout,
body.default-layout,
body.page-layout { min-height: 100vh; }

a { color: var(--dark); transition: color 0.2s var(--ease); }
a:hover { color: var(--teal-mid); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── Scroll Reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* ─── Navigation ──────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.8rem 4%;
  background: linear-gradient(135deg, var(--dark-deep) 0%, #0e4a66 60%, #1a6b5a 100%);
  border-bottom: 1px solid rgba(89, 193, 169, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(7, 31, 46, 0.35);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: all 0.25s var(--ease);
}


.site-nav a:hover {
  background: rgba(89, 193, 169, 0.22);
  border-color: rgba(89, 193, 169, 0.35);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(89, 193, 169, 0.18);
}

.site-nav a.active {
  background: rgba(89, 193, 169, 0.28);
  border-color: rgba(89, 193, 169, 0.55);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(89, 193, 169, 0.22) inset;
}

/* ─── Layout Shell ────────────────────────────────────────────────── */
.site-main {
  width: 100%;
  flex: 1 0 auto;
}

.home-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - 8rem);
  width: 100%;
}

/* ─── Sidebar ─────────────────────────────────────────────────────── */
.home-sidebar {
  padding: 2rem 1.75rem;
  background:
    linear-gradient(175deg, #0e4460 0%, var(--dark-deep) 50%, #031520 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid rgba(89, 193, 169, 0.12);
  position: relative;
  overflow: hidden;
}

/* Subtle bathymetry-inspired concentric rings */
.home-sidebar::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(89, 193, 169, 0.06),
    0 0 0 30px rgba(89, 193, 169, 0.04),
    0 0 0 60px rgba(89, 193, 169, 0.025),
    0 0 0 90px rgba(89, 193, 169, 0.015);
  pointer-events: none;
}

.home-portrait-wrap {
  display: flex;
  justify-content: center;
}

.home-portrait {
  width: min(100%, var(--profile-media-size));
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(89, 193, 169, 0.45);
  box-shadow: 0 0 0 6px rgba(89, 193, 169, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s var(--ease);
}

.home-portrait:hover {
  box-shadow: 0 0 0 8px rgba(89, 193, 169, 0.14), 0 24px 50px rgba(0, 0, 0, 0.35);
}

.home-logo-block {
  text-align: center;
  display: grid;
  gap: 0.3rem;
  justify-items: center;
}

.home-name {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.home-role {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(89, 193, 169, 0.85);
  text-transform: uppercase;
}

.home-contact {
  padding: 1.1rem 0.8rem 0;
  border-top: 1px solid rgba(89, 193, 169, 0.15);
}

.home-contact p { margin: 0.7rem 0; }

.home-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.13rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.22s var(--ease), gap 0.22s var(--ease),
              transform 0.22s var(--ease);
  transform-origin: left center;
}

.home-contact a:hover {
  color: #fff;
  gap: 0.8rem;
  transform: scale(1.1);
  font-weight: 600;
}

.contact-icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex: 0 0 auto;
  filter: brightness(1) saturate(0.9);
  transition: filter 0.22s var(--ease), transform 0.22s var(--ease);
}

.home-contact a:hover .contact-icon {
  filter: brightness(1.2) saturate(1);
  transform: scale(1.12);
}

.home-affiliations {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(89, 193, 169, 0.15);
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-items: start;
  overflow: hidden;
}

.home-affiliations img {
  /* No max-width — sizes are fixed; overflow is clipped by the container */
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.20));
  transition: filter 0.3s var(--ease);
}

.home-affiliations img:hover {
  filter: drop-shadow(0 6px 16px rgba(89, 193, 169, 0.22)) brightness(1.05);
}

/* Logos fill sidebar width — GYRED is 20% larger than UiB/Bjerknes */
.hero-logo-gyred    { width: 100%; max-width: 317px; height: auto; }
.hero-logo-uib      { width: 100%; max-width: 264px; height: auto; }
.hero-logo-bjerknes { width: 100%; max-width: 276px; height: auto; }

/* ─── Home Content ────────────────────────────────────────────────── */
.home-content {
  padding: 2.5rem 2rem;
}

.home-content-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: clamp(1.75rem, 3vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.home-content-card h1 {
  margin-top: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--dark);
  border-bottom: none;
  padding-bottom: 0;
}

.home-content-card h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 2px;
  margin-top: 0.6rem;
}

.home-content-card h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  padding-bottom: 0.4rem;
  border-bottom: none;
  position: relative;
  padding-left: 1rem;
}

.home-content-card h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--teal-mid));
  border-radius: 2px;
}

.home-content-card p {
  max-width: none;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(13, 31, 43, 0.85);
}

/* ─── Research Keyword Chips ──────────────────────────────────────── */
.research-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  background: var(--teal-light);
  color: var(--teal-text);
  border: 1px solid rgba(89, 193, 169, 0.25);
  transition: all 0.22s var(--ease);
  cursor: default;
}

.chip:hover {
  background: var(--teal-glow);
  border-color: rgba(89, 193, 169, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(89, 193, 169, 0.15);
}

/* ─── Latest Activity Feed ────────────────────────────────────────── */
.news-feed {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Continuous vertical line */
.news-feed::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, rgba(89,193,169,0.15) 100%);
  border-radius: 1px;
}

.news-entry {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 1.5rem;
  padding: 0.85rem 0;
  position: relative;
  align-items: start;
}

.news-entry + .news-entry {
  border-top: 1px dashed rgba(12, 57, 83, 0.08);
}

/* Date label — rendered via ::before using data-date */
.news-entry::before {
  content: attr(data-date);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: right;
  padding-right: 1.25rem;
  padding-top: 0.15rem;
  white-space: pre;
  /* break YYYY-MM-DD across two lines for compactness */
  word-spacing: normal;
}

/* Timeline dot */
.news-entry::after {
  content: '';
  position: absolute;
  left: 84px;
  top: 1.1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(89,193,169,0.35);
  z-index: 1;
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.news-entry:hover::after {
  background: var(--teal-mid);
  box-shadow: 0 0 0 4px rgba(89,193,169,0.25);
}

/* Entry body — right column (grid col 2) */
.news-entry > .news-cat,
.news-entry > strong,
.news-entry > p,
.news-entry > a.news-link {
  grid-column: 2;
}

/* Category badge */
.news-cat {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--orange-light);
  border: 1px solid var(--teal);
  color: var(--dark-deep);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 0.35rem;
  align-self: start;
}

.news-entry > strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.news-entry > p {
  margin: 0 0 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: left;
  hyphens: none;
}

a.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
  margin-bottom: 0.15rem;
}

a.news-link:hover {
  color: var(--teal-mid);
  gap: 0.4rem;
}

/* ─── Lagrangian GIF Figure ───────────────────────────────────────── */
.traj-figure {
  margin: 2rem 0 0;
  position: relative;
}

.traj-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.traj-gif {
  margin-top: 0;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

/* ─── Inner Pages — Layout ────────────────────────────────────────── */
.page-main {
  width: min(1100px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.page-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.page-card h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.page-card h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 2px;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-card > h2, .page-card > article > h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--dark);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(89, 193, 169, 0.25);
  letter-spacing: -0.01em;
}

/* ─── Section Box ─────────────────────────────────────────────────── */
.section-box {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-left-color 0.25s var(--ease);
}

.section-box:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--teal-mid);
}

.section-box h2,
.section-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--dark);
  line-height: 1.3;
}

/* ─── Publication Entries ─────────────────────────────────────────── */
.pub-entry {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  position: relative;
}

.pub-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--dark);
}

.pub-authors {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.pub-authors strong {
  color: var(--dark);
  font-weight: 600;
}

.pub-meta {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--teal-text);
  font-weight: 500;
  font-style: italic;
}

/* Year badge */
.year-badge {
  display: inline-block;
  padding: 0.25rem 0.2rem;
  border-radius: 9px;
  background: var(--teal-light);
  border: 1.5px solid var(--teal);
  color: var(--dark-deep);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  /* vertical-align: middle; */
  margin-right: 0.4rem;
  font-style: normal;
}

/* Publications page overrides */
.publications-layout .section-box {
  background: #fff;
  padding: 1.4rem 1.6rem;
}

.publications-layout .pub-entry {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.publications-layout .section-box .pub-entry + .pub-entry {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(89, 193, 169, 0.18);
}

.publications-layout .pub-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
}

.publications-layout .pub-authors {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.publications-layout .pub-authors strong {
  color: var(--dark);
  font-weight: 600;
}

.publications-layout .pub-meta {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--teal-text);
  font-weight: 500;
}

/* ─── Entry Lists (presentations/posters/talks) ───────────────────── */
.entry-list,
.simple-list {
  padding-left: 1.2rem;
  margin: 0.6rem 0 0;
}

.entry-item { margin: 0.75rem 0; }

.entry-meta {
  color: var(--text-muted);
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.entry-meta-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-inline-icon {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0.65;
}

/* ─── PDF Icon ────────────────────────────────────────────────────── */
.pdf-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
  margin-top: 0.5rem;
}

.pdf-icon-link:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.pdf-icon {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  display: block;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.link-button,
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #ff9944 0%, var(--orange) 100%);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: none;
  box-shadow: 0 6px 20px rgba(244, 118, 33, 0.28);
  transition: all 0.25s var(--ease);
}

.link-button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244, 118, 33, 0.38);
  color: #fff;
  filter: brightness(1.04);
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 1.5rem;
  align-items: center;
}

/* ─── CV Page ─────────────────────────────────────────────────────── */
.cv-summary {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(13, 31, 43, 0.82);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cv-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.cv-highlight-item {
  background: var(--teal-light);
  border: 1px solid rgba(89, 193, 169, 0.20);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}

.cv-highlight-item:hover {
  background: var(--teal-glow);
  box-shadow: var(--shadow-sm);
}

.cv-highlight-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-mid);
}

.cv-highlight-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.cv-download-block {
  background: var(--orange-light);
  border: 1px solid rgba(244, 118, 33, 0.18);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cv-download-block p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

/* ─── CV Header Identity Row — print only ────────────────────────── */
.cv-header-identity {
  display: none; /* hidden on screen, shown in print below */
}

.cv-portrait {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(89, 193, 169, 0.55);
  display: block;
  max-width: none;
  flex-shrink: 0;
}

.cv-header-logo {
  height: 144px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

@media print {
  .cv-header-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* ─── Audio player ────────────────────────────────────────────────── */
audio {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 8px;
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  padding: 0;
  background: linear-gradient(135deg, var(--dark-deep) 0%, #0e4a66 60%, #1a6b5a 100%);
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(89, 193, 169, 0.15);
}

.footer-inner {
  width: 100%;
  padding: 1rem clamp(1rem, 2.5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
  margin-left: auto;
  opacity: 0.88;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
  transition: opacity 0.2s var(--ease);
}

.footer-logo:hover { opacity: 1; }

.footer-meta { text-align: left; }

.today { font-variant-numeric: tabular-nums; }

.site-footer p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .home-shell { grid-template-columns: 1fr; }
  .home-affiliations { margin-top: 0; }
  .home-sidebar::before { display: none; }
}

@media (max-width: 720px) {
  .site-nav { padding-inline: 0.75rem; }

  .home-content,
  .page-main {
    padding-inline: 0.75rem;
    width: 100%;
    margin-inline: auto;
  }

  .home-sidebar { padding: 1.5rem 1.25rem; }

  .home-content-card,
  .page-card {
    border-radius: 18px;
    padding: 1.25rem;
  }

  .footer-inner { min-height: 70px; }

  .cv-highlights { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .site-nav a { font-size: 0.82rem; padding: 0.4rem 0.75rem; }
  .research-chips { gap: 0.35rem; }
  .cv-highlights { grid-template-columns: 1fr; }
}

/* ─── Newspaper icon used as <img> — inherits opacity from .meta-inline-icon ── */
img.meta-inline-icon[src*="newspaper"] {
  filter: brightness(0) saturate(100%) opacity(0.6);
}

/* ─── Full CV layout ──────────────────────────────────────────────── */
.cv-full {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
}

.cv-full .cv-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid rgba(89, 193, 169, 0.3);
}

.cv-full .cv-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.15rem;
}

.cv-full .cv-degree {
  font-size: 1rem;
  color: var(--teal-text);
  font-weight: 500;
  margin: 0 0 0.8rem;
}

.cv-full .cv-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cv-full .cv-contact-bar a {
  color: var(--teal-text);
  text-decoration: none;
}

.cv-full .cv-contact-bar a:hover { text-decoration: underline; }

.cv-full section { margin: 1.5rem 0 0; }

.cv-full section > h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid rgba(89, 193, 169, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cv-full .cv-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 1.25rem;
  margin: 0.7rem 0;
  align-items: start;
}

.cv-full .cv-entry-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-text);
  padding-top: 0.08rem;
  line-height: 1.4;
}

.cv-full .cv-entry-body strong {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.cv-full .cv-entry-body span {
  display: block;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.cv-full .cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cv-full .cv-skill-group strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 0.25rem;
}

.cv-full .cv-skill-group span {
  font-size: 0.87rem;
  color: var(--text);
}

.cv-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-light);
  color: var(--dark-deep);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--orange);
  cursor: pointer;
  box-shadow: none;
  transition: all 0.25s var(--ease);
  margin-bottom: 1.5rem;
}

.cv-print-btn:hover {
  background: var(--teal-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(89, 193, 169, 0.22);
}

.cv-print-icon {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ─── Print ───────────────────────────────────────────────────────── */
@media print {
  .site-nav,
  .home-sidebar,
  .site-footer,
  .cv-print-btn,
  .cv-summary,
  .cv-highlights,
  .cv-download-block { display: none !important; }

  body { background: #fff; }
  body::before { display: none; }

  .home-shell { display: block; }

  .home-content {
    padding: 0;
    width: 100%;
  }

  .page-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 1.5cm 1.5cm;
  }

  .page-card h1,
  .page-card h1::after { display: none; }

  .cv-full { font-size: 10pt; line-height: 1.5; }

  .cv-full .cv-name { font-size: 22pt; }

  .cv-full section > h2 { font-size: 11pt; }

  .cv-full .cv-entry { grid-template-columns: 160px 1fr; }
}
