:root { --paper:#f8f6f1; --ink:#26231f; --muted:#6b655c; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:#26231f; font-family:'Newsreader', Georgia, serif; }
.stage { position:relative; overflow:hidden; }
.page { position:absolute; left:50%; top:0; width:1120px; height:6000px; margin-left:-560px; background:var(--paper); overflow:hidden;
        transform:scale(var(--s, 1)); transform-origin:top center;
        font-size:19px; line-height:1.55; }
.marks { position:absolute; left:0; top:0; width:1120px; height:6000px; z-index:1; pointer-events:none; will-change:transform; }
#trailsvg, #marksTop { z-index:2; }
#navwords text { pointer-events:auto; }
.portrait { position:absolute; left:56px; top:56px; width:176px; height:208px; z-index:2; overflow:hidden; }
.portrait img { width:100%; height:100%; object-fit:cover; object-position:50% 24%; filter:saturate(.85) contrast(1.03); display:block; }
.block { position:absolute; z-index:3; text-shadow: 0 0 3px var(--paper), 0 0 6px var(--paper), 0 0 10px var(--paper); }
.block p { margin:0 0 14px; }
.about1 { left:380px; top:536px; width:430px; }
.about2 { left:470px; top:890px; width:480px; }
.contact { font-size:17px; }
.research { left:467px; width:595px; }
.research .spacer { float:right; width:205px; height:200px; }
.talks { left:212px; width:720px; }
.data { left:212px; width:340px; }
.notes { left:560px; width:440px; }
.cv { left:230px; width:820px; }
.end { left:230px; width:700px; text-align:left; }
.sub { font-weight:500; font-size:13.5px; letter-spacing:.22em; text-transform:uppercase; margin:28px 0 10px; color:var(--muted); }
.list { list-style:none; padding:0; margin:0; }
.list li { margin:0 0 12px; padding-left:24px; position:relative; font-size:17.5px; line-height:1.42; }
.list .t { font-weight:500; }
.list a.t { color:var(--ink); text-decoration:none; background-image:linear-gradient(#7cc6ea,#7cc6ea); background-size:100% 1.5px; background-repeat:no-repeat; background-position:0 96%; }
.list a.t:hover { background-size:100% 40%; background-position:0 92%; }
.list .m { display:block; font-size:15.5px; font-style:italic; color:var(--muted); }
.list .lk { font-size:15px; font-style:italic; }
.list .lk a { color:#2661aa; text-decoration:none; margin-right:10px; }
.list .lk a::before { content:'→ '; }
.list .award { display:block; font-size:15.5px; color:#2661aa; }
.list.papers li::before { content:''; position:absolute; left:2px; top:7px; width:11px; height:11px; border-radius:50%; background:#2497d3; border:1.5px solid var(--ink); }
.list.papers li.wip::before { background:transparent; }
.list.writing li::before { content:''; position:absolute; left:1px; top:6px; width:14px; height:13px; background:#dc4b2c; clip-path:polygon(0 0, 100% 45%, 25% 100%); }
.list.talks li::before { content:''; position:absolute; left:2px; top:7px; width:11px; height:11px; background:#eda100; border:1.5px solid var(--ink); }
a.inl { color:var(--ink); text-decoration:none; border-bottom:1.5px solid #2497d3; }
.big { font-size:23px; line-height:1.4; font-weight:300; }
.note { font-size:15px; font-style:italic; color:var(--muted); }
.cols2 { display:grid; grid-template-columns:1fr 1fr; column-gap:48px; }
.cols3 { display:grid; grid-template-columns:1fr 1fr 1fr; column-gap:36px; margin-top:24px; }
.cols3 svg { display:block; height:92px; width:100%; overflow:visible; margin-bottom:4px; }
.cv h4 { font-weight:500; font-size:13.5px; letter-spacing:.22em; text-transform:uppercase; margin:0 0 10px; color:var(--muted); }
.cv .list li { padding-left:0; }
.dl { display:inline-block; margin-top:2px; font-style:italic; font-size:20px; }
.dl a { color:var(--ink); text-decoration:none; border-bottom:2px solid #eb6834; }

.burger { position:fixed; left:0; top:0; transform-origin:top left; z-index:10; width:52px; height:48px; cursor:pointer; padding:0; border:0; background:none; color:inherit; }
.burger:focus-visible, .menu a:focus-visible { outline:2px solid #2497d3; outline-offset:3px; }
.burger svg { width:52px; height:48px; overflow:visible; }
.menu { position:fixed; left:0; top:0; transform-origin:top left; z-index:9; pointer-events:none; width:300px; }
.menu::before { content:''; position:absolute; right:-40px; top:-40px; width:340px; height:400px; pointer-events:none;
        background:radial-gradient(ellipse 58% 52% at 68% 46%, var(--paper) 62%, rgba(248,246,241,0) 100%); opacity:0; transition:opacity .3s; }
.menu.open::before { opacity:1; }
.menu .drop { position:absolute; right:25px; top:52px; width:2px; height:0; background:var(--ink); transition:height .45s cubic-bezier(.3,.7,.2,1); }
.menu.open .drop { height:290px; }
.menu a { position:absolute; right:40px; white-space:nowrap; font-style:italic; font-size:24px; color:var(--ink); text-decoration:none; opacity:0; transform:translateY(-22px); cursor:pointer;
          text-shadow: 0 0 3px var(--paper), 0 0 6px var(--paper), 0 0 12px var(--paper); transition:opacity .3s, transform .45s cubic-bezier(.3,.7,.2,1); pointer-events:none; }
.menu a::after { content:''; position:absolute; right:-19px; top:50%; width:9px; height:9px; margin-top:-3px; border-radius:50%; background:var(--ink); }
.menu a { visibility:hidden; }
.menu.open a { opacity:1; transform:none; pointer-events:auto; visibility:visible; }
.menu a:nth-of-type(1){top:62px;transition-delay:.03s} .menu a:nth-of-type(2){top:100px;transition-delay:.07s} .menu a:nth-of-type(3){top:138px;transition-delay:.11s}
.menu a:nth-of-type(4){top:176px;transition-delay:.15s} .menu a:nth-of-type(5){top:214px;transition-delay:.19s} .menu a:nth-of-type(6){top:252px;transition-delay:.23s} .menu a:nth-of-type(7){top:290px;transition-delay:.27s}

.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; }

/* ---------------- phone composition (html.phone is set before first paint, then kept by js) ---------------- */
.band, .ph { display:none; }
html.phone .dk { display:none; }
html.phone .ph { display:inline; }
html.phone .stage { height:auto !important; overflow:hidden; }
html.phone .page { position:relative; left:auto; margin:0; width:auto; height:auto !important; transform:none;
                   padding:206px 22px 72px 64px; font-size:17.5px; line-height:1.55; }
html.phone .marks { width:100%; }
html.phone .portrait { left:22px; top:22px; width:92px; height:109px; }
html.phone .block { position:relative; left:auto; top:auto !important; width:auto; margin:0 0 52px; }
html.phone .about1 { margin-bottom:0; }
html.phone .band { display:block; }
html.phone .research .spacer { display:none; }
html.phone .sh { position:static; width:auto; height:auto; margin:6px 0 14px; overflow:visible; clip:auto; white-space:normal;
                 font-weight:500; font-size:25px; letter-spacing:.2em; line-height:1.2; text-transform:uppercase; }
html.phone .sh a { color:inherit; text-decoration:none; }
html.phone .big { font-size:20px; }
html.phone .list li { font-size:16.5px; }
html.phone .list .m { font-size:14.5px; }
html.phone .cols2, html.phone .cols3 { display:block; }
html.phone .cols2 > div, html.phone .cols3 > div { margin-bottom:26px; }
html.phone .cols3 svg { width:180px; height:69px; }
html.phone .end { margin-bottom:0; }
html.phone .burger { border-radius:50%; background:radial-gradient(closest-side, var(--paper) 70%, rgba(248,246,241,0)); width:60px; height:56px; }
html.phone .burger svg { margin:4px; }
html.phone .list { width:auto; }
html.phone .block { max-width:620px; }
@media (prefers-reduced-motion: reduce) { .menu::before, .menu .drop, .menu a { transition:none !important; } }
.block [tabindex="-1"]:focus, .block[tabindex="-1"]:focus { outline:none; }
