/* Savvas Chanlaridis homepage v1 — dependency-free, accessible, responsive. */
:root {
  color-scheme: light;
  --page: #f7f9fb;
  --surface: #ffffff;
  --surface-soft: #eef4f5;
  --surface-alt: #e8f0f2;
  --ink: #172a3a;
  --body: #435662;
  --muted: #637681;
  --border: #dce4e9;
  --accent: #006b70;
  --accent-hover: #004b50;
  --accent-tint: #e0edef;
  --illustration-paper: #f9fcfd;
  --shadow: 0 16px 40px rgb(17 49 60 / 5%);
  --heading-font: Georgia, Cambria, 'Times New Roman', serif;
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #0f1924;
    --surface: #172a3a;
    --surface-soft: #142632;
    --surface-alt: #1c3642;
    --ink: #f1f5f7;
    --body: #c7d3d8;
    --muted: #abbfc9;
    --border: #324a56;
    --accent: #7ee0d6;
    --accent-hover: #a0f0e9;
    --accent-tint: #183e42;
    --illustration-paper: #223c49;
    --shadow: 0 16px 42px rgb(0 0 0 / 12%);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #0f1924; --surface: #172a3a; --surface-soft: #142632;
  --surface-alt: #1c3642; --ink: #f1f5f7; --body: #c7d3d8;
  --muted: #abbfc9; --border: #324a56; --accent: #7ee0d6;
  --accent-hover: #a0f0e9; --accent-tint: #183e42;
  --illustration-paper: #223c49; --shadow: 0 16px 42px rgb(0 0 0 / 12%);
}
:root[data-theme='light'] { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--body); font: 400 16px/1.65 var(--body-font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
::selection { background: var(--accent-tint); color: var(--ink); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h1, h2, .section-intro h2, .research-intro h2, .resume-inner h2, .contact-inner h2 { font-family: var(--heading-font); font-weight: 400; letter-spacing: -.045em; }
h1 em, h2 em, h3 em { color: var(--accent); font-weight: 400; }
.container { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 99; left: 16px; top: -70px; background: var(--surface); color: var(--ink); border: 2px solid var(--accent); padding: 10px 14px; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--page); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(16px)) { .site-header { background: color-mix(in srgb, var(--page), transparent 8%); backdrop-filter: blur(16px); } }
.header-inner { display: flex; align-items: center; min-height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); gap: 12px; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { font-weight: 800; font-size: 21px; letter-spacing: -.085em; line-height: 1; }
.brand-dot { color: var(--accent); }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.primary-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.primary-nav a { color: var(--body); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.25; }
.primary-nav a:hover { color: var(--accent); }
.primary-nav .nav-contact { border: 1px solid var(--border); border-radius: 5px; padding: 11px 15px; color: var(--ink); }
.primary-nav .nav-contact:hover { border-color: var(--accent); color: var(--accent); }
.header-controls { display: flex; align-items: center; gap: 5px; }
.icon-button { display: grid; place-items: center; cursor: pointer; width: 39px; height: 39px; border: 1px solid transparent; border-radius: 6px; color: var(--body); background: transparent; }
.icon-button:hover { border-color: var(--border); color: var(--ink); background: var(--surface); }
.icon-button svg { width: 20px; height: 20px; }
.moon-icon { display: none; }
:root[data-theme='dark'] .sun-icon { display: none; }
:root[data-theme='dark'] .moon-icon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .sun-icon { display: none; } :root:not([data-theme]) .moon-icon { display: block; } }
.menu-toggle { display: none; }
/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 36px; position: relative; padding-top: 95px; padding-bottom: 65px; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding-bottom: 30px; }
.eyebrow, .section-label, .category-label, .publication-meta { font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.5; }
.eyebrow { color: var(--accent); display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 31px; }
.eyebrow-line { display: inline-block; width: 24px; height: 1px; background: var(--accent); }
.eyebrow-divider { color: var(--muted); }
h1 { color: var(--ink); font-size: clamp(43px, 5.1vw, 68px); line-height: 1.12; margin-bottom: 27px; max-width: 630px; }
.hero-intro { max-width: 505px; font-size: clamp(17px,1.7vw,19px); line-height: 1.8; margin-bottom: 14px; }
.hero-intro strong { color: var(--ink); font-weight: 650; }
.hero-role { margin: 0 0 32px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 47px; padding: 11px 18px; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; border-radius: 5px; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.button-primary { color: #fff; background: #006b70; border: 1px solid #006b70; }
.button-primary:hover { background: #004b50; border-color: #004b50; color: white; }
.button-outline { color: var(--ink); border: 1px solid var(--border); background: var(--surface); }
.button-outline:hover { color: var(--accent); border-color: var(--accent); }
.hero-visual { position: relative; min-width: 0; aspect-ratio: 1/1.02; display: grid; place-items: center; background: var(--surface-alt); border: 1px solid var(--border); overflow: hidden; }
.visual-grid { position: absolute; inset: 0; background-image: linear-gradient(to right,var(--ink) 1px,transparent 1px),linear-gradient(to bottom,var(--ink) 1px,transparent 1px); background-size: 35px 35px; opacity: .028; }
.orbital-graphic { position: relative; z-index: 1; width: 97%; height: 97%; color: var(--ink); }
.graphic-corner { position: absolute; z-index: 2; left: 24px; color: var(--muted); font-size: 9px; letter-spacing: .16em; font-weight: 700; }
.graphic-corner-top { top: 20px; }
.graphic-corner-bottom { bottom: 20px; }
.visual-index { position: absolute; bottom: 19px; right: 20px; font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.hero-footnote { display: flex; align-items: center; gap: 14px; grid-column: 1/-1; padding-top: 30px; font-size: 11px; color: var(--muted); letter-spacing: .075em; }
.hero-footnote-line { width: 32px; height: 1px; background: var(--accent); }
/* Sections */
.section { padding-block: 104px; }
.section-soft { background: var(--surface-soft); border-block: 1px solid var(--border); }
.section-label { display: block; color: var(--accent); margin-bottom: 18px; }
.section-intro { max-width: 720px; margin-bottom: 43px; }
.section-intro h2, .research-intro h2, .resume-inner h2, .contact-inner h2 { font-size: clamp(36px,3.9vw,51px); line-height: 1.18; margin-bottom: 19px; }
.section-intro p, .research-intro > p, .resume-inner p, .contact-inner > p { max-width: 610px; font-size: 16px; line-height: 1.75; }
.intro-centered { text-align: center; margin-inline: auto; }
.intro-centered p { margin-inline: auto; }
.discipline-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.discipline-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); padding: 38px 38px 31px; box-shadow: var(--shadow); }
.discipline-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 35px; }
.discipline-icon { width: 55px; height: 55px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); border-radius: 7px; }
.discipline-icon svg { width: 30px; height: 30px; }
.number-mark { font: 400 14px/1 var(--heading-font); color: var(--muted); }
.discipline-card h3 { font-size: 28px; font-weight: 400; margin-bottom: 15px; letter-spacing: -.045em; }
.discipline-card p { max-width: 430px; margin-bottom: 22px; font-size: 15px; }
.mini-tags, .project-tags, .skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tags { margin-bottom: 27px; }
.mini-tags span, .project-tags span { padding: 5px 9px; font-size: 11px; line-height: 1.5; color: var(--muted); border: 1px solid var(--border); }
.inline-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); font-size: 13px; font-weight: 800; }
.inline-link:hover { text-decoration: underline; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.section-side-note { flex: none; color: var(--muted); font-size: 10px; letter-spacing: .12em; font-weight: 700; margin-bottom: 47px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.project-card { min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); }

.project-card-top { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.category-label { font-size: 10px; color: var(--accent); }
.project-number { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.project-illustration { height: 160px; display: grid; place-items: center; background: var(--surface-soft); border-block: 1px solid var(--border); color: var(--ink); }
.project-illustration svg { width: 90%; height: 125px; }
.illustration-agents { background: color-mix(in srgb, var(--accent-tint), var(--surface) 35%); }
.illustration-taxonomy { background: var(--surface-alt); }
.project-card-body { flex: 1; padding: 25px 22px 25px; }
.project-card h3 { font-family: var(--heading-font); font-weight: 400; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; margin-bottom: 15px; }
.project-card p { font-size: 14px; line-height: 1.75; margin-bottom: 23px; }
.project-tags { gap: 6px; }
.project-tags span { font-size: 10px; }
.project-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding: 17px 22px; color: var(--muted); font-size: 11px; font-weight: 650; }
.card-arrow { color: var(--accent); font-size: 17px; }
.project-note { max-width: 790px; border-left: 2px solid var(--accent); padding-left: 18px; margin: 31px 0 0; font-size: 13px; color: var(--muted); }
/* Research + Publications */
.section-research { background: var(--surface-soft); border-block: 1px solid var(--border); }
.research-layout { display: grid; grid-template-columns: minmax(0,1.07fr) minmax(0,.93fr); gap: 50px; align-items: center; }
.research-intro { max-width: 640px; }
.research-intro > p { max-width: 540px; }
.research-facts { display: grid; gap: 15px; margin: 27px 0; }
.research-facts span { display: flex; flex-direction: column; gap: 2px; }
.research-facts strong { color: var(--ink); font-size: 13px; }
.research-facts small { font-size: 12px; color: var(--muted); }
.research-visual { position: relative; display: grid; place-items: center; min-height: 315px; background: var(--surface-alt); border: 1px solid var(--border); overflow: hidden; color: var(--ink); }
.research-visual svg { width: 100%; max-height: 330px; }
.research-visual > span { position: absolute; right: 18px; top: 18px; font-size: 9px; letter-spacing: .13em; color: var(--muted); }
.publications { padding-top: 85px; }
.publications-header { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 24px; }
.publications-header h3 { font-size: 35px; font-weight: 400; letter-spacing: -.04em; margin-bottom: 0; }
.publications-header .inline-link { margin-bottom: 5px; }
.publication-list { border-top: 1px solid var(--border); }
.publication-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 27px 0; border-bottom: 1px solid var(--border); }
.publication-number { color: var(--accent); font-family: var(--heading-font); font-size: 20px; }
.publication-meta { color: var(--muted); font-size: 10px; }
.publication-row h4 { margin: 7px 0 5px; font: 400 22px/1.35 var(--heading-font); letter-spacing: -.02em; }
.publication-row p { color: var(--body); margin-bottom: 0; font-size: 13px; }
.publication-action { color: var(--accent); text-decoration: none; white-space: nowrap; font-size: 12px; font-weight: 750; }
.publication-action:hover { text-decoration: underline; }
/* Experience + CTA */
.about-intro { max-width: 790px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; }
.about-grid h3 { font: 400 27px/1.3 var(--heading-font); margin-bottom: 23px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li, .education-item { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 20px; padding: 0 0 24px; }
.timeline time, .timeline-date, .education-item > span { font-size: 11px; line-height: 1.7; font-weight: 750; color: var(--accent); }
.timeline strong, .education-item strong { font-size: 14px; color: var(--ink); }
.timeline p, .education-item p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.expertise-line { display: flex; gap: 30px; align-items: baseline; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 18px; }
.expertise-line .section-label { flex: 0 0 200px; margin: 0; }
.skill-chips { gap: 9px; }
.skill-chips span { border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 11px; padding: 5px 11px; }
.resume-band { padding-block: 70px; background: var(--surface-alt); border-block: 1px solid var(--border); }
.resume-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.resume-inner h2 { font-size: clamp(31px, 3vw, 43px); }
.resume-inner p { font-size: 14px; margin-bottom: 0; max-width: 680px; }
.resume-inner .button { flex: none; }
.contact-section { text-align: center; padding-block: 112px; }
.contact-inner { max-width: 800px; }
.contact-inner h2 { font-size: clamp(37px, 4.2vw, 58px); }
.contact-inner > p { max-width: 520px; margin: 0 auto 28px; }
.contact-inner .button { display: inline-flex; }
.contact-inner .contact-note { margin: 23px auto 0; font-size: 11px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 35px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 21px; }
.footer-links a { font-size: 12px; font-weight: 650; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 15px; padding-block: 17px; }
.footer-bottom p { font-size: 11px; color: var(--muted); margin: 0; }
/* Responsive layouts */
@media (max-width: 1120px) { .primary-nav { gap: 19px; } .brand-name { font-size: 13px; } .header-inner { gap: 12px; } .hero { padding-top: 72px; } }
@media (max-width: 970px) {
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 14px max(24px,calc((100vw - 1120px)/2)); background: var(--page); border-bottom: 1px solid var(--border); display: none; flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 6px; font-size: 14px; }
  .primary-nav .nav-contact { padding: 12px; margin: 7px 0; }
  .header-controls { margin-left: auto; }
  .menu-toggle { display: grid; }
  .hero { gap: 25px; }
  .section-side-note { display: none; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-grid .project-card:last-child { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); }
  .project-grid .project-card:last-child .project-card-top { grid-column: 1/-1; }
  .project-grid .project-card:last-child .project-illustration { height: 100%; min-height: 160px; border-block: 0; border-right: 1px solid var(--border); }
  .project-grid .project-card:last-child .project-card-bottom { grid-column: 1/-1; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 75px; }
  .container { width: min(100% - 40px, 560px); }
  .header-inner { min-height: 68px; }
  .hero { display: flex; flex-direction: column; padding-top: 60px; padding-bottom: 48px; gap: 27px; }
  .hero-copy { padding-bottom: 0; }
  .eyebrow { font-size: 9px; letter-spacing: .105em; gap: 6px; margin-bottom: 25px; }
  h1 { font-size: clamp(40px, 9vw, 57px); }
  .hero-intro { font-size: 16px; line-height: 1.75; }
  .hero-visual { width: 100%; max-height: 400px; aspect-ratio: 1.2; }
  .graphic-corner { font-size: 8px; }
  .visual-index { font-size: 8px; }
  .hero-footnote { padding-top: 0; font-size: 10px; }
  .section { padding-block: 68px; }
  .section-intro { margin-bottom: 30px; }
  .section-intro h2, .research-intro h2, .contact-inner h2 { font-size: clamp(34px, 7.5vw, 43px); }
  .discipline-grid, .research-layout, .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .discipline-card { padding: 28px 25px; }
  .discipline-top { margin-bottom: 22px; }
  .discipline-card h3 { font-size: 26px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid .project-card:last-child { display: flex; grid-column: auto; }
  .project-grid .project-card:last-child .project-illustration { min-height: auto; height: 160px; border-right: 0; border-block: 1px solid var(--border); }
  .project-card h3 { font-size: 25px; }
  .research-layout { gap: 35px; }
  .research-visual { min-height: 260px; }
  .publications { padding-top: 60px; }
  .publication-row { grid-template-columns: 28px minmax(0,1fr); gap: 13px; }
  .publication-action { grid-column: 2; }
  .publication-row h4 { font-size: 20px; }
  .publication-meta { font-size: 9px; }
  .about-grid { gap: 30px; }
  .expertise-line { flex-direction: column; align-items: flex-start; gap: 14px; }
  .expertise-line .section-label { flex: 0 0 auto; }
  .resume-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .contact-section { padding-block: 80px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (max-width: 425px) {
  .brand-name { font-size: 12px; }
  .brand { gap: 8px; }
  .hero { padding-top: 48px; }
  .eyebrow-line { width: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { justify-content: center; }
  .hero-visual { aspect-ratio: 1/1; }
  .graphic-corner-bottom, .visual-index { display: none; }
  .timeline li, .education-item { grid-template-columns: 90px minmax(0,1fr); gap: 12px; }
  .timeline strong, .education-item strong { font-size: 13px; }
  .footer-links { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Multi-page extensions: preserve the prototype's editorial design system. */
.primary-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.page-hero { padding-block: clamp(76px, 10vw, 118px); }
.page-hero h1 { max-width: 950px; font-size: clamp(43px, 5.1vw, 69px); }
.page-lead { max-width: 800px; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; color: var(--body); }
.page-hero > p:not(.page-lead) { max-width: 790px; }
.page-hero .hero-actions { margin-top: 30px; }
.page-hero .section-label { margin-bottom: 20px; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.case-tile { background: var(--surface); border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; min-width: 0; }
.tile-top, .tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.case-tile h3 { font: 400 clamp(24px,2.5vw,30px)/1.25 var(--heading-font); letter-spacing:-.035em; margin: 30px 0 15px; }
.case-tile h3 a { color: var(--ink); text-decoration: none; }
.case-tile h3 a:hover { color: var(--accent); }
.case-tile > p { font-size: 15px; max-width: 570px; margin-bottom: 26px; }
.case-tile .mini-tags { margin-top: auto; margin-bottom: 26px; }
.tile-foot { padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 32px; }
.support-row { border-top: 1px solid var(--border); padding-top: 25px; }
.support-row h3 { font:400 25px/1.3 var(--heading-font); margin: 12px 0; }
.support-row p { margin:0; font-size: 14px; }
.disclosure-note { padding: 16px 20px; border-left: 2px solid var(--accent); margin: 35px 0 0; background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.65; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; margin-bottom: 52px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.case-hero .page-lead { max-width: 790px; }
.case-meta { display: grid; grid-template-columns: 1fr 1fr; max-width: 740px; gap: 25px; padding-top: 30px; margin-top: 34px; border-top: 1px solid var(--border); }
.case-meta div { display: flex; flex-direction: column; gap: 6px; }
.case-meta span { font-size: 11px; color: var(--accent); letter-spacing: .12em; font-weight: 800; }
.case-meta strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; align-items: start; gap: 72px; }
.article-content { min-width: 0; }
.article-content section { margin-bottom: 70px; }
.article-content section:last-child { margin-bottom: 0; }
.article-content h2, .narrow-text h2, .about-story h2 { font-size: clamp(31px,3.8vw,44px); line-height: 1.18; max-width: 780px; }
.article-content p, .article-content li, .narrow-text > p, .story-copy p { font-size: 16px; line-height: 1.85; }
.editorial-list { list-style: none; padding: 0; margin: 24px 0; }
.editorial-list li { position: relative; padding: 11px 0 11px 25px; border-bottom: 1px solid var(--border); }
.editorial-list li:before { content: '→'; position: absolute; left:0; color: var(--accent); }
.article-aside { position: sticky; top: 106px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); padding: 30px 25px; }
.aside-card .section-label { font-size: 10px; }
.aside-role { font: 400 25px/1.3 var(--heading-font); color: var(--ink); margin: 0 0 20px; }
.aside-card .mini-tags { margin-bottom: 27px; }
.page-next { padding-block: 36px 70px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.research-topic-grid { display: grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.research-topic { background: var(--surface); border:1px solid var(--border); padding:30px; }
.research-topic h3 { font: 400 28px/1.2 var(--heading-font); margin: 35px 0 18px; }
.research-topic p { font-size:14px; line-height:1.8; }
.research-topic .inline-link { margin-top: 12px; }
.narrow-text { max-width: 820px; }
.narrow-text > p { max-width: 760px; }
.bibliography { border-top: 1px solid var(--border); }
.bibliography-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: center; border-bottom: 1px solid var(--border); padding: 28px 0; }
.bibliography-entry h3 { font: 400 24px/1.35 var(--heading-font); letter-spacing:-.024em; margin: 9px 0 0; }
.bib-links { display: flex; gap: 22px; flex-wrap: wrap; }
.about-story { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 68px; }
.resume-timeline, .education-list { border-top: 1px solid var(--border); }
.resume-position, .education-row { display: grid; grid-template-columns: minmax(160px,.38fr) minmax(0,1fr); gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.position-date { font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 6px; }
.resume-position h3, .education-row h3 { font: 400 25px/1.3 var(--heading-font); margin:0 0 7px; }
.resume-position p, .education-row p { font-size: 14px; margin-bottom: 0; }
.position-org { color: var(--ink); font-size: 14px; font-weight: 700; margin-bottom: 6px !important; }
.skill-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.skill-group { border: 1px solid var(--border); background: var(--surface); padding: 28px; }
.skill-group h3 { font:400 24px/1.35 var(--heading-font); margin-bottom: 16px; }
.skill-group p { font-size: 14px; margin:0; }
.skill-group .mini-tags { margin:0; }
.resume-links { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 40px; }
.contact-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.contact-card { background: var(--surface); border:1px solid var(--border); text-decoration:none; padding:27px; display:flex; flex-direction:column; gap:10px; }
.contact-card strong { color:var(--ink); font:400 25px/1.25 var(--heading-font); }
.contact-card span { color:var(--muted); font-size:13px; }
.contact-card:hover { border-color:var(--accent); }
.project-card-bottom .inline-link { flex:none; font-size:11px; }
@media(max-width:970px) { .article-layout { grid-template-columns: minmax(0,1fr); gap:20px; } .article-aside { position:static; } .aside-card { max-width:100%; } .research-topic-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:700px) {
 .page-hero { padding-block: 68px; }
 .page-hero h1 { font-size:clamp(40px,10vw,56px); }
 .case-grid,.support-grid,.research-topic-grid,.about-story,.skill-groups,.contact-grid { grid-template-columns:1fr; }
 .case-tile,.research-topic,.skill-group { padding:25px 22px; }
 .bibliography-entry { grid-template-columns:1fr; gap:16px; }
 .bib-links { gap:20px; }
 .resume-position,.education-row { grid-template-columns:1fr; gap:6px; }
 .case-meta { grid-template-columns:1fr; gap:20px; }
 .breadcrumbs { margin-bottom:32px; }
 .page-next { padding-bottom:55px; }
}
@media print { .site-header,.site-footer,.skip-link,.hero-actions,.resume-links { display:none !important; } body { background:#fff; color:#111; } .page-hero { padding:20px 0; } .section { padding:18px 0; } a { color:#111; } }

/* Keep navigation available without JavaScript on narrow screens. */
@media (max-width: 970px) {
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .primary-nav { position: static; display: flex; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; width: 100%; border: 0; box-shadow: none; padding: 4px 0 14px; }
  html:not(.js) .primary-nav a { padding: 8px 10px; }
  html:not(.js) .menu-toggle { display: none; }
}


/* Homepage v2: two distinct, equal professional dimensions */
.dual-hero { padding-block: 90px 42px; }
.dual-hero .eyebrow { margin-bottom: 22px; }
.dual-hero h1 { font-size: clamp(49px, 6.8vw, 88px); max-width: 1050px; letter-spacing: -.06em; margin-bottom: 11px; }
.hero-period { color: var(--accent); }
.dual-identity { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; font-size: clamp(15px,1.8vw,20px); color: var(--ink); font-weight: 650; margin: 0 0 21px; }
.dual-divider { height: 20px; width: 1px; background: var(--border); }
.dual-lead { max-width: 725px; font-size: clamp(16px,1.55vw,19px); line-height: 1.73; margin: 0; }
.dual-paths { padding-bottom: 100px; }
.dual-profiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.profile-panel { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--border); background: var(--surface); }
.profile-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 28px; border-bottom: 1px solid var(--border); }
.profile-index, .profile-mark { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.profile-mark { font: 400 20px/1 var(--heading-font); letter-spacing: -.045em; }
.profile-illustration { background: var(--surface-alt); border-bottom: 1px solid var(--border); display: grid; place-items: center; min-height: 154px; overflow: hidden; }
.profile-illustration svg { width: 100%; max-height: 170px; color: var(--ink); }
.profile-panel-body { display: flex; flex: 1; flex-direction: column; padding: 35px 32px 30px; }
.profile-panel h2 { font: 400 clamp(29px,3vw,39px)/1.15 var(--heading-font); letter-spacing: -.047em; margin-bottom: 19px; }
.profile-panel-body > p { min-height: 108px; font-size: 15px; line-height: 1.77; margin-bottom: 22px; }
.profile-specialties { list-style: none; margin: 0 0 25px; padding: 0; }
.profile-specialties li { border-top: 1px solid var(--border); padding: 11px 0 10px 21px; font-size: 13px; color: var(--ink); position: relative; }
.profile-specialties li::before { content: '—'; position:absolute; left:0; color:var(--accent); }
.profile-panel-footer { margin-top:auto; padding-top:24px; border-top:1px solid var(--border); }
.profile-panel-footer p { color:var(--muted); font-size:12px; margin-bottom:20px; }
.button-profile { width:100%; border:1px solid var(--accent); background:var(--accent); color:#fff; gap:10px; }
.button-profile:hover { color:white; border-color:#004b50; background:#004b50; }
:root[data-theme='dark'] .button-profile { color:#10252b; }
:root[data-theme='dark'] .button-profile:hover { color:#fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .button-profile { color: #10252b; } }
.parallel-feature-section { padding-block: 90px; }
.parallel-feature-section .section-intro { margin-bottom:34px; }
.parallel-work { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.work-column { display:flex; flex-direction:column; min-width:0; background:var(--surface); border:1px solid var(--border); padding:28px 30px; }
.work-heading { min-height:92px; padding-bottom:20px; border-bottom:2px solid var(--accent); }
.work-heading span, .work-meta, .background-index { color:var(--accent); letter-spacing:.12em; font-size:10px; font-weight:800; }
.work-heading h3 { font:400 27px/1.2 var(--heading-font); margin:10px 0 0; }
.work-list { list-style:none; margin:0; padding:0; }
.work-list li { min-height:178px; padding:23px 0; border-bottom:1px solid var(--border); }
.work-list h4 { font:400 22px/1.25 var(--heading-font); letter-spacing:-.025em; margin:8px 0 9px; }
.work-list h4 a { color:var(--ink); text-decoration:none; }
.work-list h4 a:hover { color:var(--accent); text-decoration:underline; }
.work-list p { font-size:13px; line-height:1.7; margin:0; }
.work-all-link { margin-top:auto; padding-top:28px; }
.background-duo { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.background-duo article { border-top:2px solid var(--accent); padding:23px 5px 23px 0; }
.background-duo h3 { font:400 28px/1.2 var(--heading-font); margin:10px 0 16px; }
.background-duo p { max-width:475px; font-size:15px; }
.resume-actions { display:flex; align-items:center; flex-wrap:wrap; gap:22px; margin-top:34px; }
.dual-contact { background:var(--surface-soft); border-top:1px solid var(--border); }
/* Inner-page summary also uses equal dimensions. */
.about-dual-story { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.about-dual-story .about-field { background:var(--surface); border:1px solid var(--border); padding:30px; }
.about-dual-story .about-field h2 { font-size:clamp(28px,3.2vw,37px); margin-bottom:19px; }
.about-dual-story .about-field p { font-size:15px; line-height:1.78; }
.about-dual-story .about-field .inline-link { margin-top:8px; }
@media (max-width:800px) {
 .dual-hero { padding-block:67px 34px; }
 .dual-profiles, .parallel-work, .background-duo, .about-dual-story { grid-template-columns:1fr; }
 .dual-paths { padding-bottom:72px; }
 .profile-panel-body > p { min-height:0; }
 .work-heading { min-height:0; }
 .work-list li { min-height:0; }
 .parallel-feature-section { padding-block:70px; }
}
@media (max-width:500px) {
 .dual-hero { padding-top:48px; }
 .dual-hero h1 { font-size:clamp(43px,12vw,58px); }
 .dual-identity { flex-direction:column; align-items:flex-start; gap:5px; }
 .dual-divider { display:none; }
 .profile-panel-head { padding:16px 20px; }
 .profile-panel-body { padding:27px 21px 23px; }
 .profile-illustration { min-height:116px; }
 .work-column { padding:24px 19px; }
 .work-heading h3 { font-size:25px; }
 .work-list h4 { font-size:21px; }
 .about-dual-story .about-field { padding:23px; }
}
@media (prefers-reduced-motion:reduce) {
 .button-profile { transition:none; }
}


/* v3: factual project attribution and full academic title in the brand. */
.brand { flex-shrink: 0; }
.brand-name { letter-spacing: -0.012em; }
.project-employer { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; margin: 3px 0 12px; }
.case-tile .project-employer { margin: -3px 0 17px; }
.support-row .project-employer { margin: 5px 0 12px; }
.work-list .project-employer { font-size: 11px; margin: -1px 0 8px; }
@media (min-width: 971px) and (max-width: 1200px) {
  .primary-nav { gap: 15px; }
  .header-inner { gap: 12px; }
  .brand-name { font-size: 12px; }
  .primary-nav a { font-size: 12px; }
}
@media (max-width: 390px) {
  .brand-name { font-size: 11px; }
  .header-inner { gap: 8px; }
}

/* v4: concise in-page navigation for combined About / CV page */
.profile-section-nav { background: var(--surface); border-block: 1px solid var(--border); }
.profile-section-nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; padding-block: 16px; }
.profile-section-nav-inner > span { font-size: 11px; color: var(--muted); font-weight: 650; margin-right: 7px; }
.profile-section-nav-inner a { color: var(--ink); font-size: 12px; font-weight: 650; text-decoration: none; padding: 5px 0; }
.profile-section-nav-inner a:hover { color: var(--accent); text-decoration: underline; }
.profile-section-nav-inner a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#experience, #education, #expertise, #teaching-talks { scroll-margin-top: 80px; }
@media (max-width: 480px) { .profile-section-nav-inner { gap: 10px 16px; } .profile-section-nav-inner > span { flex: 0 0 100%; } }


/* Homepage alignment: keep corresponding content aligned across the two columns.
   Subgrid shares row heights, so longer titles/descriptions in one column do not
   push later items out of alignment. The existing stacked mobile layout is kept. */
@media (min-width: 801px) {
  /* Two independent lists share row heights for headings, all three entries,
     and the closing links. No JavaScript or hard-coded item heights required. */
  .dual-homepage .parallel-work {
    grid-template-rows: auto repeat(3, auto) auto;
    column-gap: 22px;
    row-gap: 0;
  }
  .dual-homepage .parallel-work > .work-column {
    display: grid;
    grid-row: 1 / span 5;
    grid-template-rows: subgrid;
  }
  .dual-homepage .parallel-work .work-heading { grid-row: 1; }
  .dual-homepage .parallel-work .work-list {
    display: grid;
    grid-row: 2 / span 3;
    grid-template-rows: subgrid;
  }
  .dual-homepage .parallel-work .work-all-link {
    grid-row: 5;
    align-self: start;
  }

  /* Apply the same alignment to the two introductory professional panels,
     including their bullet lists and action links. */
  .dual-homepage .dual-profiles {
    grid-template-rows: auto auto auto auto repeat(3, auto) auto;
    column-gap: 22px;
    row-gap: 0;
  }
  .dual-homepage .dual-profiles > .profile-panel {
    display: grid;
    grid-row: 1 / span 8;
    grid-template-rows: subgrid;
  }
  .dual-homepage .profile-panel-head { grid-row: 1; }
  .dual-homepage .profile-illustration { grid-row: 2; }
  .dual-homepage .profile-panel-body {
    display: grid;
    grid-row: 3 / span 6;
    grid-template-rows: subgrid;
  }
  .dual-homepage .profile-panel-body > h2 { grid-row: 1; }
  .dual-homepage .profile-panel-body > p { grid-row: 2; min-height: 0; }
  .dual-homepage .profile-specialties {
    display: grid;
    grid-row: 3 / span 3;
    grid-template-rows: subgrid;
  }
  .dual-homepage .profile-panel-footer { grid-row: 6; margin-top: 0; }

  /* Equal-height background entries keep their links on the same baseline. */
  .dual-homepage .background-duo > article {
    display: flex;
    flex-direction: column;
  }
  .dual-homepage .background-duo > article .inline-link { margin-top: auto; padding-top: 14px; }
}
