:root {
  --ink: #18201c;
  --green: #12372a;
  --green-mid: #205a43;
  --mint: #b9dac9;
  --paper: #f5f4ef;
  --white: #fff;
  --line: #d6d8d1;
  --red: #b8322a;
  --yellow: #e8b44c;
  --max: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; }
h1 { margin-bottom: 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 7.4vw, 6.8rem); font-weight: 400; }
h2 { max-width: 720px; margin-bottom: 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4.2vw, 4.25rem); font-weight: 400; }
h3 { font-size: 1.15rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; color: var(--white); background: var(--green); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; height: var(--header-h); border-bottom: 1px solid rgba(24, 32, 28, .12); background: rgba(245, 244, 239, .94); backdrop-filter: blur(14px); }
.nav-wrap { display: flex; width: min(var(--max), calc(100% - 40px)); height: 100%; margin: 0 auto; align-items: center; }
.brand { display: inline-flex; min-width: 244px; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: block; width: 38px; height: 38px; background: var(--green) url("assets/jzr_logo_transparent.png") center / cover no-repeat; flex: 0 0 auto; user-select: none; -webkit-user-drag: none; }
.brand-name { font-family: Georgia, serif; font-size: 1.05rem; }
.site-nav { display: flex; margin-left: auto; align-items: center; gap: 22px; }
.site-nav a { position: relative; padding: 24px 0 21px; color: #3e4843; font-size: .82rem; font-weight: 700; text-decoration: none; }
.site-nav a::after { position: absolute; right: 0; bottom: 15px; left: 0; height: 2px; background: var(--red); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); }
.language-switcher { display: flex; margin-left: 22px; border: 1px solid #bfc3bd; }
.lang-btn { display: grid; width: 38px; height: 34px; padding: 0; border: 0; color: #59615d; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 800; place-items: center; text-decoration: none; }
.lang-btn.is-active { color: var(--white); background: var(--green); }
.menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s, opacity .2s; }

.hero { position: relative; display: grid; min-height: min(790px, 100vh); padding: calc(var(--header-h) + 56px) max(24px, calc((100vw - var(--max)) / 2)) 52px; color: var(--white); background: var(--green); align-items: center; overflow: hidden; }
.hero::before { position: absolute; top: 0; right: 0; width: 38%; height: 100%; border-left: 1px solid rgba(255,255,255,.1); background: #194936; content: ""; }
.hero-grid { position: relative; display: grid; width: 100%; grid-template-areas: "copy portrait" "actions portrait"; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); column-gap: clamp(48px, 8vw, 118px); row-gap: 0; align-items: center; }
.hero-copy { grid-area: copy; align-self: end; }
.eyebrow { margin-bottom: 18px; color: var(--red); font-size: .74rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow, .section-dark .eyebrow, .contact-section .eyebrow { color: var(--yellow); }
.hero-role { margin-bottom: 18px; color: var(--mint); font-family: Georgia, serif; font-size: 1.4rem; }
.hero-intro { max-width: 660px; margin-bottom: 30px; color: #dbe8e1; font-size: clamp(1.05rem, 1.4vw, 1.28rem); }
.hero-actions { display: flex; grid-area: actions; flex-wrap: wrap; gap: 12px; align-self: start; }
.button { display: inline-flex; min-height: 48px; padding: 11px 19px; border: 1px solid transparent; align-items: center; justify-content: center; font-size: .84rem; font-weight: 800; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.button-primary { color: var(--green); background: var(--yellow); }
.button-primary:hover { background: #f3c96e; }
.button-secondary { border-color: rgba(255,255,255,.35); color: var(--white); }
.button-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.portrait-wrap { position: relative; width: min(100%, 372px); margin: 0; grid-area: portrait; justify-self: center; }
.portrait-frame { position: relative; padding: 10px; border: 1px solid rgba(255,255,255,.28); }
.portrait-frame::before { position: absolute; top: -16px; right: -16px; width: 48px; height: 48px; border-top: 3px solid var(--yellow); border-right: 3px solid var(--yellow); content: ""; }
.portrait-image { width: 100%; aspect-ratio: 1 / 1.02; background: url("assets/profile_pic.jpg") center 35% / cover no-repeat; filter: saturate(.84) contrast(1.03); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.portrait-wrap figcaption { display: flex; padding-top: 16px; color: #cbdcd3; flex-direction: column; font-size: .78rem; }
.portrait-wrap figcaption strong { color: var(--white); font-size: .88rem; }
.scroll-cue { position: absolute; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 28px; display: grid; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); color: var(--white); place-items: center; text-decoration: none; }

.section { padding: 108px max(24px, calc((100vw - var(--max)) / 2)); }
.section-grid { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: clamp(50px, 9vw, 130px); }
.section-number { margin-bottom: 34px; color: #87908b; font-family: Georgia, serif; font-size: .92rem; }
.section-number::after { display: inline-block; width: 44px; height: 1px; margin-left: 12px; background: currentColor; content: ""; vertical-align: middle; }
.lead-copy > p { max-width: 720px; color: #3f4944; font-family: Georgia, serif; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.45; }
.lead-copy > p + p { margin-top: 24px; }
.facts { display: grid; margin-top: 52px; border-top: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 22px 18px 0 0; }
.facts strong { display: block; color: var(--red); font-family: Georgia, serif; font-size: 2.2rem; font-weight: 400; }
.facts span { display: block; max-width: 130px; color: #68716c; font-size: .78rem; line-height: 1.35; }

.section-dark { color: var(--white); background: var(--green); }
.heading-row { display: flex; margin-bottom: 58px; align-items: end; justify-content: space-between; gap: 48px; }
.heading-row h2 { margin-bottom: 0; }
.section-summary { max-width: 440px; margin-bottom: 5px; color: #59635e; }
.section-dark .section-number { color: #85a394; }
.section-dark .section-summary { color: #c2d5cb; }
.course-list { border-top: 1px solid rgba(255,255,255,.16); }
.course-item { display: grid; min-height: 94px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16); grid-template-columns: 70px minmax(280px, .85fr) minmax(280px, 1.15fr); gap: 24px; align-items: center; }
.course-index { color: var(--yellow); font-family: Georgia, serif; }
.course-item h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 400; }
.course-item p { margin: 0; color: #bad0c5; font-size: .9rem; }

.research-grid { display: grid; gap: 0; }
.research-item { position: relative; padding: 8px 0 34px 122px; border-bottom: 1px solid var(--line); }
.research-item + .research-item { padding-top: 34px; }
.research-code { position: absolute; top: 12px; left: 0; width: 100px; color: var(--red); font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 800; }
.research-item + .research-item .research-code { top: 38px; }
.research-item h3 { margin-bottom: 10px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; }
.research-item > p:not(.research-code):not(.project-line) { max-width: 590px; margin-bottom: 0; color: #5d6762; }
.research-item .project-line { display: grid; max-width: 640px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); grid-template-columns: 78px 1fr; gap: 12px; }
.project-line span { color: var(--red); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.project-line strong { color: #39423e; font-size: .82rem; line-height: 1.55; }

.section-muted { background: #e9ebe5; }
.tabs { display: flex; margin-bottom: 38px; border-bottom: 1px solid #bdc2ba; gap: 30px; }
.tab { position: relative; padding: 0 0 12px; border: 0; color: #6f7772; background: transparent; cursor: pointer; font-size: .86rem; font-weight: 800; }
.tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--red); content: ""; transform: scaleX(0); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }
.timeline article { display: grid; padding: 0 0 34px; grid-template-columns: 130px 1fr; gap: 28px; }
.timeline article:not(:last-child) { margin-bottom: 34px; border-bottom: 1px solid #cdd1ca; }
.timeline time { color: var(--red); font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 800; }
.timeline h3 { margin-bottom: 7px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; }
.timeline p { margin-bottom: 8px; color: #4f5954; }
.timeline span { color: #747d78; font-size: .84rem; }

.publication-list { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); list-style: none; }
.publication-list li { display: grid; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.16); grid-template-columns: 90px 1fr; gap: 20px; }
.publication-list time { color: var(--yellow); font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 800; }
.publication-list h3 { margin-bottom: 8px; color: var(--white); font-family: Georgia, serif; font-size: clamp(1.1rem, 1.8vw, 1.42rem); font-weight: 400; }
.publication-list p { margin: 0; color: #a9c0b5; font-size: .84rem; }
.publication-list a { color: var(--yellow); text-underline-offset: 3px; }
.publication-list h3 a { color: inherit; text-decoration: none; }
.publication-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.publications-section .section-summary a { color: var(--yellow); font-weight: 800; text-underline-offset: 4px; }

.awards-list { border-top: 1px solid var(--line); }
.awards-list article { display: grid; padding: 25px 0; border-bottom: 1px solid var(--line); grid-template-columns: 75px 1fr; gap: 28px; }
.awards-list time { color: var(--red); font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 800; }
.awards-list p { margin-bottom: 6px; color: #717975; font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.awards-list h3 { margin-bottom: 6px; font-family: Georgia, serif; font-size: 1.32rem; font-weight: 400; }
.awards-list h3 a { text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.awards-list h3 a:hover { color: var(--red); }
.awards-list span { color: #717975; font-size: .82rem; }
.awards-list .award-featured { border-left: 4px solid var(--yellow); padding-left: 20px; background: #ecece5; }

.media-list { border-top: 1px solid rgba(255,255,255,.18); }
.media-item { position: relative; display: block; min-height: 124px; padding: 25px 62px 25px 0; border-bottom: 1px solid rgba(255,255,255,.18); text-decoration: none; }
.media-source { display: block; margin-bottom: 9px; color: var(--yellow); font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.media-item h3 { max-width: 650px; margin: 0; color: var(--white); font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 400; }
.media-arrow { position: absolute; top: 50%; right: 4px; display: grid; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.32); color: var(--yellow); place-items: center; transform: translateY(-50%); transition: color .2s, border-color .2s, background .2s; }
.media-item:hover .media-arrow { border-color: var(--yellow); color: var(--green); background: var(--yellow); }
.media-item:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 5px; }

@media (min-width: 1041px) {
  .media-section .section-grid { grid-template-columns: minmax(440px, .88fr) minmax(0, 1.12fr); gap: clamp(48px, 5vw, 72px); }
  .media-section .section-heading h2 { font-size: 3rem; }
}

@media (min-width: 821px) and (max-width: 1040px) {
  .media-section .section-grid { grid-template-columns: 1fr; gap: 30px; }
  .media-section .section-heading h2 { font-size: 3rem; }
}

.hobbies-list { border-top: 1px solid #cdd1ca; }
.hobbies-list article { display: grid; min-height: 104px; padding: 24px 0; border-bottom: 1px solid #cdd1ca; grid-template-columns: 70px 1fr; gap: 24px; align-items: center; }
.hobbies-list article > span { color: var(--red); font-family: ui-monospace, monospace; font-size: .76rem; font-weight: 800; }
.hobbies-list h3 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.hobbies-list h3 a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hobbies-list p { margin: 7px 0 0; color: #717975; font-size: .78rem; font-weight: 800; text-transform: uppercase; }

.contact-section { padding: 92px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--red); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 140px); align-items: center; }
.contact-section h2 { margin-bottom: 22px; }
.contact-section > * p:not(.eyebrow) { max-width: 600px; color: #f6d8d5; }
.contact-details { display: grid; border-top: 1px solid rgba(255,255,255,.34); font-style: normal; }
.contact-details > * { display: grid; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.34); grid-template-columns: 105px 1fr; gap: 20px; text-decoration: none; }
.contact-details span { color: #f4cac6; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.contact-details strong { font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-link strong::after { margin-left: 8px; content: "↗"; }
.contact-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.site-footer { display: grid; min-height: 132px; padding: 32px max(24px, calc((100vw - var(--max)) / 2)); color: #8ca296; background: #0b2119; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.site-footer p { margin: 0; font-size: .72rem; }
.site-footer p:last-child { text-align: right; }
.footer-brand { display: block; width: 56px; height: 56px; background: url("assets/jzr_logo_transparent.png") center / cover no-repeat; text-decoration: none; user-select: none; -webkit-user-drag: none; }

@media (max-width: 1040px) {
  .brand { min-width: 200px; }
  .brand-name { display: none; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: .76rem; }
  .language-switcher { margin-left: 14px; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .nav-wrap { width: min(100% - 28px, var(--max)); }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; right: 0; bottom: auto; left: 0; display: none; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); padding: 34px 24px; color: var(--white); background: var(--green); align-items: stretch; flex-direction: column; gap: 0; overflow-y: auto; overscroll-behavior: contain; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.2); color: var(--white); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
  .site-nav a:hover, .site-nav a.is-current { color: var(--yellow); }
  .site-nav a::after { display: none; }
  .language-switcher { margin-left: 10px; order: 2; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); }
  .hero::before { top: auto; bottom: 0; width: 100%; height: 38%; border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
  .hero-grid { grid-template-columns: 1fr; column-gap: 56px; row-gap: 0; }
  .hero-copy { max-width: 650px; }
  .portrait-wrap { width: min(58vw, 260px); justify-self: start; }
  .scroll-cue { display: none; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .section-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-number { margin-bottom: 18px; }
  .section-heading h2 { margin-bottom: 10px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .heading-row { display: block; margin-bottom: 38px; }
  .heading-row .section-summary { margin-top: 20px; }
  .course-item { grid-template-columns: 48px 1fr; }
  .course-item p { grid-column: 2; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (min-width: 561px) and (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr); column-gap: 30px; row-gap: 0; }
  .portrait-wrap { width: 100%; }
  .hero-intro { font-size: 1rem; }
}

@media (max-width: 560px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.35rem; }
  .hero { padding-top: calc(var(--header-h) + 34px); padding-right: 20px; padding-bottom: 38px; padding-left: 20px; }
  .hero-grid { grid-template-areas: "copy" "portrait" "actions"; grid-template-columns: 1fr; column-gap: 0; row-gap: 22px; }
  .hero-copy { padding-bottom: 12px; align-self: auto; }
  .hero-intro { margin-bottom: 16px; }
  .portrait-wrap { display: grid; width: 100%; grid-template-columns: 112px 1fr; gap: 14px; align-items: end; }
  .portrait-wrap figcaption { padding: 0 0 4px; }
  .portrait-frame { padding: 7px; }
  .portrait-frame::before { top: -10px; right: -10px; width: 28px; height: 28px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .section { padding-right: 20px; padding-left: 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { display: grid; padding-top: 16px; border-bottom: 1px solid var(--line); grid-template-columns: 90px 1fr; align-items: center; }
  .facts span { max-width: none; }
  .course-item { gap: 10px; }
  .course-item h3 { font-size: 1.2rem; }
  .research-item { padding-left: 0; }
  .research-code, .research-item + .research-item .research-code { position: static; width: auto; margin-bottom: 10px; }
  .research-item .project-line { grid-template-columns: 1fr; gap: 4px; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; }
  .publication-list li { grid-template-columns: 1fr; gap: 10px; }
  .awards-list article { grid-template-columns: 58px 1fr; gap: 12px; }
  .contact-section { padding: 72px 20px; }
  .contact-details > * { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { padding: 32px 20px; grid-template-columns: 1fr; gap: 14px; }
  .site-footer p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero-actions, .scroll-cue, .tabs, .site-footer { display: none !important; }
  .hero, .section, .contact-section { padding: 32px 0; color: #000; background: #fff; }
  .hero { min-height: 0; }
  .hero::before, .portrait-frame::before { display: none; }
  .hero-intro, .hero-role, .section-dark .section-summary, .course-item p, .publication-list p, .contact-section > * p:not(.eyebrow) { color: #333; }
  #panel-education[hidden] { display: block; }
}
