/* ==========================================================================
   Δρ. Κατερίνα Βλαχάκη — Ψυχίατρος · Ψυχοθεραπεύτρια
   Επαγγελματικός, σοβαρός σχεδιασμός — calm clinical authority
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #15202e;
  --navy:       #1c3144;
  --navy-soft:  #24405a;
  --teal:       #2f6f6b;
  --teal-dark:  #245451;
  --teal-tint:  #e8f0ee;
  --gold:       #b08a4e;
  --sand:       #f6f2ea;
  --sand-deep:  #efe9dd;
  --paper:      #ffffff;
  --text:       #28323d;
  --muted:      #5c6772;
  --line:       #e5ddcf;
  --line-soft:  #eee8db;

  /* Type */
  --serif: "Cormorant Garamond", "GFS Didot", Georgia, serif;
  --sans:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Metrics */
  --maxw: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(21,32,46,.06), 0 4px 16px rgba(21,32,46,.05);
  --shadow-md: 0 10px 40px rgba(21,32,46,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--sand);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tint { background: var(--paper); }
.section--deep { background: var(--navy); color: #eef2f3; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--teal);
  display: inline-block;
}
.section--deep .eyebrow { color: #8fc6bf; }
.section--deep .eyebrow::before { background: #8fc6bf; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: .002em; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }

h2.title { font-size: clamp(2.1rem, 4.5vw, 3.3rem); margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 60ch; line-height: 1.65; }
.section--deep .lead { color: #c4d2d4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .02em;
  padding: .92rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(47,111,107,.32); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,242,234,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(246,242,234,.94);
  box-shadow: 0 1px 20px rgba(21,32,46,.05);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.brand-text span { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--teal); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--navy);
  position: relative; padding: .3rem 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--teal);
  transition: width .28s var(--ease);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 100px; overflow: hidden;
  background: var(--paper);
}
.lang-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: .42rem .8rem; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--navy); color: #fff; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: .4rem; color: var(--navy); }
.menu-btn svg { width: 26px; height: 26px; }

/* Mobile nav panel is hidden by default everywhere; revealed only in mobile media query */
.nav-mobile { display: none; }

.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { width: 100%; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--sand-deep), var(--sand));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 380px at 92% -20%, rgba(47,111,107,.12), transparent 60%);
  pointer-events: none;
}
.page-hero .inner { position: relative; max-width: 64ch; }
.crumb { font-size: .82rem; letter-spacing: .03em; color: var(--muted); margin-bottom: 1.1rem; }
.crumb a { color: var(--teal-dark); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.crumb span { opacity: .55; margin: 0 .45rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; margin-bottom: .7rem; }
.page-hero .lead { margin-top: .4rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-band p { color: #c4d2d4; max-width: 52ch; margin: 0 auto 2rem; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; }

/* ==========================================================================
   Info card (home intro)
   ========================================================================== */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1.4rem; margin-bottom: 1.4rem; }
.info-card ul { display: grid; gap: 1rem; margin-bottom: 1.8rem; }
.info-card li { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; color: var(--text); }
.info-card li svg { width: 19px; height: 19px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.info-card .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 88% -5%, rgba(47,111,107,.10), transparent 60%),
    radial-gradient(700px 600px at -5% 110%, rgba(28,49,68,.07), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy .credential-line {
  font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.3rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: .5rem;
}
.hero .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  color: var(--teal-dark);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero .position {
  font-size: 1.05rem; color: var(--muted); max-width: 46ch; margin-bottom: 2.2rem;
}
.hero .position strong { color: var(--navy); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Portrait */
.portrait {
  position: relative;
  justify-self: center;
}
.portrait-frame {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21,32,46,.34));
}
.portrait::before {
  content: ""; position: absolute;
  inset: -18px -18px auto auto;
  width: 70%; height: 70%;
  border: 1px solid var(--teal);
  border-radius: 6px;
  top: -18px; right: -18px;
  z-index: 1;
}
.portrait-badge {
  position: absolute; left: -24px; bottom: 28px; z-index: 3;
  background: var(--navy); color: #fff;
  padding: 1rem 1.3rem; border-radius: 6px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; line-height: 1.1;
}
.portrait-badge .num { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: #fff; }
.portrait-badge .lbl { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb6c0; margin-top: .2rem; }

/* ==========================================================================
   Credential strip
   ========================================================================== */
.creds {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.creds-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.cred {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.6rem);
  border-left: 1px solid var(--line-soft);
  display: flex; gap: 1.1rem; align-items: flex-start;
}
.cred:first-child { border-left: none; }
.cred-ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal-dark);
  display: grid; place-items: center;
}
.cred-ic svg { width: 22px; height: 22px; }
.cred h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.cred p { font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-text p { margin-bottom: 1.2rem; color: var(--text); }
.about-text p:last-child { margin-bottom: 0; }
.about-text .hl { color: var(--navy); font-weight: 600; }
.quote-card {
  position: relative;
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  color: #eef3f4;
  padding: clamp(2.2rem, 4vw, 3.2rem);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-card::before {
  content: "\201C";
  position: absolute; top: -.4rem; left: 1.2rem;
  font-family: var(--serif); font-size: 8rem; color: rgba(143,198,191,.22);
  line-height: 1;
}
.quote-card .q-eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #8fc6bf; font-weight: 600; margin-bottom: 1.2rem; position: relative; }
.quote-card blockquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45; font-style: italic; position: relative; color: #fff;
}
.quote-card .q-sign { margin-top: 1.6rem; font-size: .9rem; color: #9fb6c0; font-style: normal; }

/* ==========================================================================
   Timeline (Education & Career)
   ========================================================================== */
.tl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.tl-col h3.sub {
  font-size: 1.05rem; font-family: var(--sans); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: 2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.timeline { position: relative; padding-left: 1.9rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--teal), var(--line));
}
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -1.9rem; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--teal);
}
.tl-item .yr { font-size: .76rem; font-weight: 700; letter-spacing: .1em; color: var(--teal); text-transform: uppercase; }
.tl-item h4 { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; color: var(--ink); margin: .25rem 0; }
.tl-item p { font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   Research (deep section)
   ========================================================================== */
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.research-intro p { color: #c8d6d7; margin-bottom: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font-size: .82rem; font-weight: 500;
  padding: .5rem .95rem; border-radius: 100px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #dbe6e7;
}
.areas { display: grid; gap: .9rem; }
.area {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  transition: background .25s, transform .25s var(--ease);
}
.area:hover { background: rgba(255,255,255,.08); transform: translateX(4px); }
.area svg { width: 18px; height: 18px; color: #8fc6bf; flex-shrink: 0; margin-top: 3px; }
.area span { font-size: .96rem; color: #e7eeef; }
.research-note {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .9rem; color: #9fb6c0; font-style: italic;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(3rem, 5vw, 4rem); }
.contact-head .lead { margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cc-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.cc-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; flex-shrink: 0; }
.cc-ic svg { width: 22px; height: 22px; }
.cc-top h3 { font-size: 1.3rem; }
.cc dl { display: grid; gap: .85rem; }
.cc .row { display: flex; gap: .8rem; align-items: flex-start; font-size: .96rem; }
.cc .row svg { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }
.cc .row a:hover { color: var(--teal); text-decoration: underline; }
.cc .row .k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1px; }
.cc-note { margin-top: 1.3rem; font-size: .85rem; color: var(--muted); font-style: italic; }

.emergency {
  grid-column: 1 / -1;
  display: flex; gap: 1.1rem; align-items: center;
  background: #fbf3ee; border: 1px solid #eccdb9; border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 1.4rem 1.8rem;
}
.emergency svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.emergency p { font-size: .96rem; color: #6b513a; }
.emergency strong { color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #aeb9c2; padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { font-size: .92rem; color: #8e9aa5; max-width: 40ch; }
.footer-id { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-id img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-id strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; }
.footer-col .foot-sub { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: #7f8b96; margin: 1rem 0 .3rem; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; font-size: .92rem; color: #aeb9c2; margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: #8fc6bf; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: .82rem; color: #76828d; }

/* ==========================================================================
   Section heading helper
   ========================================================================== */
.sec-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ==========================================================================
   Clinical focus cards (home)
   ========================================================================== */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.focus-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.focus-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-tint); }
.focus-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 1.2rem; }
.focus-ic svg { width: 24px; height: 24px; }
.focus-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.focus-card p { font-size: .93rem; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   Blog / article cards
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-thumb {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy), var(--teal-dark));
}
.post-thumb svg { width: 46px; height: 46px; color: rgba(255,255,255,.85); }
.post-thumb.alt { background: linear-gradient(150deg, var(--teal-dark), var(--navy-soft)); }
.post-thumb.alt2 { background: linear-gradient(150deg, #2b4a63, var(--teal)); }
.post-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: .6rem; }
.post-card h3 { font-size: 1.32rem; line-height: 1.22; margin-bottom: .55rem; }
.post-card h3 a:hover { color: var(--teal-dark); }
.post-card p { font-size: .93rem; color: var(--muted); line-height: 1.6; flex: 1; }
.post-meta { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.post-meta .date { font-size: .82rem; color: var(--muted); }
.post-meta .more { font-size: .85rem; font-weight: 600; color: var(--teal-dark); display: inline-flex; align-items: center; gap: .35rem; }
.post-card:hover .post-meta .more svg { transform: translateX(3px); }
.post-meta .more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }

/* Featured post (blog page) */
.featured-post {
  display: grid; grid-template-columns: 1.05fr .95fr;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-sm);
  margin-bottom: 2.6rem;
}
.featured-post .thumb { position: relative; min-height: 300px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), var(--teal-dark)); }
.featured-post .thumb svg { width: 64px; height: 64px; color: rgba(255,255,255,.85); }
.featured-post .badge { position: absolute; top: 1.1rem; left: 1.1rem; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 100px; }
.featured-post .body { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.featured-post h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: .5rem 0 .8rem; }
.featured-post p { color: var(--muted); margin-bottom: 1.6rem; }

/* ==========================================================================
   Article page
   ========================================================================== */
.article-hero { text-align: center; }
.article-hero .inner { margin-inline: auto; text-align: center; max-width: 60ch; }
.article-hero .post-cat { margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; }
.article-meta { margin-top: 1.4rem; display: flex; gap: 1.2rem; justify-content: center; align-items: center; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.article-meta .who { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--navy); }
.article-meta .who img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.article-meta .sep { opacity: .4; }
.prose { max-width: 72ch; margin: 0 auto; }
.prose .lead-p { font-size: 1.22rem; line-height: 1.65; color: var(--ink); font-family: var(--serif); font-style: italic; margin-bottom: 2rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2.4rem 0 1rem; }
.prose p { margin-bottom: 1.3rem; font-size: 1.07rem; line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.article-back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--teal-dark); margin-top: 2.5rem; }
.article-back:hover { gap: .7rem; }

/* ==========================================================================
   CV blocks (clinical trials, forensic, publications)
   ========================================================================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.check-list { display: grid; gap: 1rem; }
.check-list li { display: flex; gap: .85rem; align-items: flex-start; font-size: .98rem; color: var(--text); line-height: 1.55; }
.check-list li svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.check-list li b { color: var(--navy); font-weight: 600; }
.forensic-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-soft)); color: #eef3f4;
  border-radius: 8px; padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-md);
}
.forensic-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.forensic-card p { color: #c8d6d7; }
.forensic-card .tag { display: inline-block; margin-top: 1.4rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #8fc6bf; font-weight: 600; }

.pub-list { display: grid; gap: 1rem; }
.pub-item { padding: 1.2rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 6px; transition: transform .25s var(--ease), box-shadow .25s; }
.pub-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.pub-item .t { font-family: var(--serif); font-size: 1.16rem; line-height: 1.3; color: var(--ink); font-style: italic; margin-bottom: .35rem; }
.pub-item .m { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.pub-item .m a { color: var(--teal-dark); font-weight: 600; }
.pub-item .m a:hover { text-decoration: underline; }

/* ==========================================================================
   Gallery (masonry) + lightbox
   ========================================================================== */
.gallery { columns: 3 280px; column-gap: 1.1rem; }
.gallery figure {
  break-inside: avoid; margin: 0 0 1.1rem; position: relative;
  border-radius: 8px; overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow-sm); background: var(--sand-deep);
}
.gallery img { width: 100%; display: block; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .ov {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, rgba(21,32,46,.05) 40%, rgba(21,32,46,.5));
  display: grid; place-items: center;
}
.gallery figure:hover .ov { opacity: 1; }
.gallery .ov span { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; backdrop-filter: blur(3px); }
.gallery .ov svg { width: 22px; height: 22px; color: #fff; }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,15,22,.95); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .28s; }
.lb.open { display: flex; opacity: 1; }
.lb figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lb img { max-width: 92vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.6rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: #cfd8dd; font-size: .9rem; letter-spacing: .05em; }
@media (max-width: 640px) {
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .lb-close { top: .7rem; right: .7rem; }
  .lb-btn { width: 44px; height: 44px; }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
/* Only hide reveal elements when JS is active — content stays visible without JS */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; margin-bottom: 1rem; }
  .about-grid, .tl-cols, .research-grid, .intro-grid { grid-template-columns: 1fr; }
  .focus-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .thumb { min-height: 200px; }
  .creds-grid { grid-template-columns: 1fr; }
  .cred { border-left: none; border-top: 1px solid var(--line-soft); }
  .cred:first-child { border-top: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .desktop-cta { display: none; }
  .menu-btn { display: block; }
  .nav-mobile {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 1.4rem 1.5rem 2rem;
    display: none; flex-direction: column; gap: 1.2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0;
    transition: opacity .28s, transform .28s;
  }
  .nav-mobile.open { display: flex; opacity: 1; transform: none; }
  .nav-mobile a { font-size: 1.05rem; font-weight: 500; color: var(--navy); padding: .4rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-mobile .btn { justify-content: center; margin-top: .5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .focus-grid, .post-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .portrait-badge { left: 0; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: 1rem; }
  body { font-size: 16px; }
}
