:root {
  --ink: #372f24; --paper: #eee5d6; --accent: #7b5b31; --muted: #675b48;
  --rule: #8570523d; --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 95px; font-size: 17px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: .2em; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #80663d; outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #dac49f; color: #372f24; }
body[data-scene="sand"] { --ink:#372f24; --paper:#ede3d1; --accent:#7b5b31; --muted:#675b48; --rule:#8570523d; }
body[data-scene="topography"] { --ink:#283b36; --paper:#efefe8; --accent:#456b5a; --muted:#52645b; --rule:#52706035; }
.landscape-backdrop { position:fixed; inset:0; z-index:-3; pointer-events:none; background:#e5d2b2 url('sand-reference.png') center / cover; }
body[data-scene="topography"] .landscape-backdrop { background:#e6e8df; }
#landscape-canvas { display:block; width:100%; height:100%; }
.reading-light { position:fixed; inset:0; z-index:-2; pointer-events:none; background:linear-gradient(90deg,#f3ecdfa8,#f3ecdfed 17%,#f3ecdfe8 45%,#f3ecdf22 72%,#f3ecdf00); }
body[data-scene="topography"] .reading-light { background:linear-gradient(90deg,#eff1e6a3,#eff1e6d1 20%,#eff1e6b8 43%,#eff1e622 72%,#eff1e600); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; background: #fff; padding: .6rem 1rem; }
.skip-link:focus { top: 12px; }
nav { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(244,239,229,.88); border-bottom: 1px solid var(--rule); backdrop-filter: blur(18px); }
.nav-inner { max-width: 1220px; margin: auto; padding: 1.1rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nav-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.03em; white-space: nowrap; }
.nav-links { display: flex; gap: 2.4rem; }
.nav-links a { font-size: .69rem; font-weight: 600; letter-spacing: .12em; color: var(--ink); text-decoration: none; text-transform: uppercase; padding: .25rem 0; }
.nav-links a:hover { color: var(--accent); }
.hero { position: relative; max-width: 1220px; margin: auto; padding: 9rem 3rem 7rem; min-height: min(880px,100svh); display: flex; align-items: center; gap: 4rem; }
.hero-text { flex: 1; min-width: 0; }
.hero-label { font-size: .66rem; font-weight: 600; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--font-display); font-size: clamp(4.6rem,8.5vw,7.4rem); font-weight: 300; line-height: .91; letter-spacing: -.055em; margin-bottom: 1.8rem; }
.hero h1 em { font-weight: 300; color: var(--accent); }
.name-period { color: #9e7f4e; }
.hero-intro { font-size: .94rem; max-width: 550px; line-height: 1.9; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.hero-link, .hero-contact { display: inline-flex; align-items: center; gap: 1.2rem; font-size: .76rem; font-weight: 500; text-decoration: none; }
.hero-link { background: #514a39; color: #fff; padding: .8rem 1.2rem; border: 1px solid #514a39; border-radius: 2px; }
.hero-link:hover { background: #7b5b31; }
.hero-contact { padding: .8rem 0; color: var(--ink); }
.hero-contact:hover { text-decoration: underline; }
.hero-photo { flex: 0 0 32%; text-align: center; margin-top: 1.6rem; }
.portrait-rings { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: auto; border-radius: 50%; padding: 10px; background: #f8efd950; border: 1px solid #ffffffad; box-shadow: 0 0 0 17px #ffffff18,0 0 0 18px #ffffff73,0 0 0 34px #ffffff0d,0 0 0 35px #ffffff4d; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portrait-caption { display: inline-block; background: #f5efdfdc; color: #4f4735; font-size: .56rem; letter-spacing: .2em; padding: .35rem .85rem; margin-top: 3.2rem; border-radius: 2px; }
.scroll-note { position: absolute; bottom: 2.4rem; left: 3rem; display: flex; align-items: center; gap: 1rem; text-decoration: none; font-size: .66rem; letter-spacing: .035em; color: var(--muted); }
.scroll-note span { font-size: 1.2rem; }
section { position: relative; max-width: 1120px; padding: 4.8rem 3rem; margin: auto; scroll-margin-top: 30px; }
section::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#f4ede000,#f4ede0eb 10%,#f4ede0ed 65%,#f4ede000); }
.section-label { color: var(--accent); font-size: .64rem; font-weight: 600; letter-spacing: .16em; margin-bottom: .7rem; }
.section-title { font-family: var(--font-display); font-weight: 300; font-size: 3rem; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 1.6rem; }
.about-text { font-size: .96rem; line-height: 1.9; max-width: 710px; }
.about-text a { font-weight: 500; }
.about-text + .about-text { margin-top: 1.2rem; }
.about-details { margin-top: 2rem; max-width: 710px; }
.detail-card { border-top: 1px solid var(--rule); padding-top: 1.1rem; display: flex; gap: 2rem; align-items: baseline; }
.detail-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.detail-value { font-family: var(--font-display); font-size: 1.2rem; }
.pub-list { list-style: none; margin-top: 2rem; max-width: 820px; counter-reset: papers; }
.pub-list li { counter-increment: papers; position: relative; padding: 1.7rem 0 1.7rem 3.2rem; border-bottom: 1px solid var(--rule); }
.pub-list li:first-child { border-top: 1px solid var(--rule); }
.pub-list li::before { content: '0' counter(papers); position: absolute; left: 0; top: 1.8rem; color: #8a7855; font-size: .65rem; letter-spacing: .05em; }
.pub-title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; margin-bottom: .5rem; }
.pub-authors { font-size: .75rem; color: var(--muted); line-height: 1.75; margin-bottom: .35rem; }
.pub-authors strong { font-weight: 600; color: var(--ink); }
.pub-venue { font-size: .74rem; color: var(--muted); font-style: italic; }
.pub-link { font-size: .7rem; font-weight: 600; font-style: normal; text-decoration: none; white-space: nowrap; margin-left: .65rem; }
.pub-link:hover { text-decoration: underline; }
.scholar-link { display: inline-block; margin-top: 1.8rem; font-size: .78rem; font-weight: 600; text-decoration: none; }
.scholar-link:hover { text-decoration: underline; }
.contact-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.contact-link { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid #8c7a5855; background: #f7f0e49e; border-radius: 2px; padding: .7rem 1.1rem; text-decoration: none; color: var(--ink); font-size: .75rem; font-weight: 500; transition: background .2s,border-color .2s; }
.contact-link:hover { background: #fff; border-color: var(--accent); }
.contact-link svg { width: 17px; height: 17px; flex-shrink: 0; }
footer { max-width: 1120px; margin: auto; padding: 2rem 3rem 6rem; }
footer p { border-top: 1px solid var(--rule); padding-top: 1.2rem; font-size: .65rem; color: var(--muted); }
 .landscape-controls { position:fixed; z-index:101; right:24px; bottom:20px; display:flex; align-items:center; gap:4px; padding:6px; border:1px solid #988b6e60; border-radius:4px; background:#f5f0e6f2; box-shadow:0 4px 24px #40352315; backdrop-filter:blur(12px); }
body[data-scene="topography"] .landscape-controls { background:#f0f2eaf2; border-color:#62766b55; }
.scene-choice { display:flex; align-items:center; gap:9px; text-decoration:none; padding:8px 13px; font-size:11px; color:var(--muted); border-radius:2px; }
.scene-choice span { font-size:9px; opacity:.65; }
.scene-choice[aria-current="page"] { background:var(--ink); color:var(--paper); }
.scene-choice:hover { box-shadow:inset 0 0 0 1px var(--rule); }
.motion-toggle { display:flex; align-items:center; gap:8px; border:0; border-left:1px solid var(--rule); margin-left:4px; padding:8px 12px; min-height:36px; color:var(--ink); background:none; font-size:10px; cursor:pointer; }
.motion-icon { width:11px; font-size:13px; }
.fade-in { animation: fadeUp .75s ease both; }
.hero h1 { animation-delay: .08s; }
.hero-intro { animation-delay: .14s; }
.hero-photo { animation-delay: .2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .reading-light { background: linear-gradient(90deg,#f3ecdf20,#f3ecdfef 26%,#f3ecdfef 48%,#f3ecdf22 80%); } }
@media (max-width: 800px) {
  .nav-inner { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.4rem; }
  .hero { gap: 2rem; padding-left: 2rem; padding-right: 2rem; }
  .hero h1 { font-size: 5.2rem; }
  .hero-photo { flex-basis: 28%; }
  section { padding-left: 2rem; padding-right: 2rem; }
  section::before { inset: 0; }
  .scroll-note { left: 2rem; }
}
@media (max-width: 600px) {
  html { font-size: 16px; scroll-padding-top: 80px; }
  .nav-inner { padding: .9rem 1.2rem; gap: 12px; }
  .nav-name { font-size: 1.15rem; }
  .nav-links { gap: .9rem; }
  .nav-links a { font-size: .57rem; letter-spacing: .08em; }
  .hero { min-height: 0; padding: 7.5rem 1.5rem 5.8rem; flex-direction: column-reverse; align-items: flex-start; gap: 2.6rem; }
  .hero-photo { align-self: flex-end; margin: 0 1rem 0 0; width: 130px; }
  .portrait-rings { padding: 5px; box-shadow: 0 0 0 9px #ffffff25,0 0 0 10px #ffffff93,0 0 0 21px #ffffff0d,0 0 0 22px #ffffff5c; }
  .portrait-caption { display: none; }
  .hero-label { font-size: .59rem; letter-spacing: .12em; margin-bottom: 1.2rem; }
  .hero h1 { font-size: clamp(3.9rem,17vw,6rem); }
  .hero-intro { font-size: .91rem; }
  .hero-actions { gap: 1.2rem; }
  .hero-link,.hero-contact { font-size: .71rem; }
  .reading-light { background: linear-gradient(90deg,#f3ecdfe8,#f3ecdfed 50%,#f3ecdf88 85%,#f3ecdf44); }
  .scroll-note { left: 1.5rem; bottom: 1.7rem; }
  section { padding: 3.5rem 1.5rem; }
  section::before { background: linear-gradient(90deg,#f3ecdf44,#f3ecdfbb 20%,#f3ecdfc7 80%,#f3ecdf44); }
  .section-title { font-size: 2.6rem; }
  .detail-card { display: block; }
  .detail-label { margin-bottom: .35rem; }
  .pub-list li { padding-left: 2.2rem; }
  .pub-title { font-size: 1.25rem; }
  .contact-grid { gap: .5rem; }
  .contact-link { padding: .65rem .8rem; }
  footer { padding: 1.5rem 1.5rem 7rem; }
  .motion-toggle { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 600px) { .scroll-note { display: none; } }
@media (max-width: 360px) { .nav-name { font-size: 1rem; } .nav-links { gap: .65rem; } }

@media (max-width: 360px) { .hero-actions { gap: .8rem; } .hero-link { padding: .7rem .8rem; gap: .5rem; font-size: .67rem; } .hero-contact { gap: .5rem; font-size: .67rem; } }

body[data-scene="topography"] nav { background:#f0f2ebed; }
body[data-scene="topography"] .hero-link { background:#354c41; border-color:#354c41; }
body[data-scene="topography"] .hero-actions { align-items:flex-start; }
.research-action { display:flex; flex-direction:column; align-items:flex-start; gap:.9rem; }
.hero-affiliation { margin:0; padding:.35rem .85rem; border-radius:2px; background:#edf0e6db; color:#435d4b; font-size:.56rem; line-height:1.4; letter-spacing:.2em; }
body[data-scene="topography"] .name-period { color:#789282; }
body[data-scene="topography"] section::before { background:linear-gradient(90deg,#f2f3eb00,#f2f3ebed 10%,#f2f3ebed 65%,#f2f3eb00); }
body[data-scene="topography"] .portrait-caption { background:#edf0e6db; color:#435d4b; }
body[data-scene="topography"] .portrait-rings { border:2px solid #354c41; background:transparent; padding:0; box-shadow:none; overflow:hidden; }
@media (max-width:600px) {
  .landscape-controls { right:12px; bottom:12px; gap:2px; }
  .scene-choice { padding:8px 10px; font-size:10px; gap:6px; }
  .motion-toggle { padding:8px 10px; }
  .reading-light { background:linear-gradient(90deg,#f3ecdfd9,#f3ecdfe8 50%,#f3ecdf88); }
  body[data-scene="topography"] .reading-light { background:linear-gradient(90deg,#eff1e6cf,#eff1e6d1 50%,#eff1e680); }
}
