/* Familiar academic structure with a quiet, editorial surface. */
#research.academic-index{max-width:1240px;padding:clamp(64px,7vw,104px) var(--page-gutter) clamp(80px,9vw,132px)}
.profile{display:grid;grid-template-columns:224px minmax(0,1fr);gap:clamp(44px,5vw,80px);align-items:start;scroll-margin-top:90px}
.profile-photo{display:block;width:208px;height:208px;object-fit:cover;border-radius:50%;background:#e5e6df}
.profile .profile-name{font:600 24px/1.2 Georgia,serif;letter-spacing:-.035em;margin:24px 0 18px}
.profile-links{position:static;transform:none;display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:auto;margin:0;opacity:1;font:14px/1.6 Georgia,serif}
.profile-links a{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:35px;width:178px;font:inherit;padding:4px 0;text-decoration:none;color:#565b50}
.profile-links a span{font-size:13px;color:#93968b}
.profile-links a:hover{color:#20251d;text-decoration:underline;text-underline-offset:5px}
.profile-links a:focus-visible,.area-link:focus-visible,.paper-link:focus-visible{outline:2px solid #56665b;outline-offset:6px}
.profile .profile-heading{font:600 clamp(32px,3vw,42px)/1.1 Georgia,serif;letter-spacing:-.04em;margin:-.08em 0 30px}
.profile-statement{font:400 clamp(18px,1.5vw,20px)/1.65 Georgia,serif;max-width:64ch;color:#3d4038}
.profile-statement p{margin:0 0 22px}
.research-areas{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:54px}
.area-link{display:flex;flex-direction:column;min-height:238px;padding:26px 28px;border-top:1px solid #bdbeb1;border-bottom:1px solid #bdbeb1;text-decoration:none;scroll-margin-top:80px;transition:background-color .18s}
.area-number{font:12px Georgia,serif;letter-spacing:.07em;color:#777c6c}
.area-link h3{font:400 clamp(32px,3.2vw,44px)/1.1 Georgia,serif;letter-spacing:-.04em;margin:34px 0 40px}
.area-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:auto;font:13px Georgia,serif;color:#646b5c}
.area-bottom>span:last-child{font-size:24px;line-height:1;color:#292e24}
.area-link:hover{background:#eeece2}
@media(max-width:1050px){.profile{grid-template-columns:190px minmax(0,1fr);gap:40px}.profile-photo{width:180px;height:180px}.profile .profile-name{font-size:22px}.research-areas{grid-template-columns:1fr}.area-link{min-height:198px}.area-link h3{margin:25px 0 28px;font-size:38px}}
@media(max-width:720px){#research.academic-index{padding-top:64px}.profile{grid-template-columns:1fr;gap:52px}.profile-sidebar{text-align:center}.profile-photo{width:160px;height:160px;margin:auto}.profile .profile-name{font-size:24px;margin:20px 0 16px}.profile-links{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:2px 20px}.profile-links a{width:auto;gap:7px;min-height:40px;font-size:13px}.profile-links a span{display:none}.profile .profile-heading{font-size:34px;margin-bottom:24px}.profile-statement{font-size:18px;line-height:1.65}.research-areas{margin-top:42px;gap:22px}.area-link{min-height:208px;padding:24px 20px}.area-link h3{font-size:38px}}
@media(prefers-reduced-motion:reduce){.area-link{transition:none}}
/* The subject page uses the same paper, type and links as the profile. */
.inner-page{min-height:100vh;display:flex;flex-direction:column}
.inner-page .inner-header{position:static;display:flex;justify-content:space-between;gap:32px;align-items:center;flex-wrap:nowrap;color:var(--ink);padding:12px max(var(--page-gutter),calc((100vw - 1120px) / 2 + var(--page-gutter)));border-bottom:1px solid #d5d0c3}
.inner-header>a{background:none;padding:0;color:var(--ink);font:500 16px Georgia,serif}
.inner-header nav{display:flex;align-items:center;gap:26px;width:auto;font:14px/1.4 Georgia,serif}
.inner-header nav a{display:flex;align-items:center;min-height:44px;white-space:nowrap;background:none;color:#626557;padding:0;text-decoration:none}
.inner-header nav a:hover{text-decoration:underline}
.inner-page main{width:100%;max-width:1040px;margin:auto;padding:90px var(--page-gutter) 110px;flex:1}
.breadcrumb{font:13px Georgia,serif;color:#75776c;margin:0 0 28px}
.inner-page h1{font:400 clamp(48px,6vw,76px)/1 Georgia,serif;letter-spacing:-.05em;margin:0 0 28px}
.subject-intro{font:18px/1.6 Georgia,serif;color:#585d52;max-width:55ch;margin-bottom:54px}
.paper-link{border-top:1px solid #cac7ba;display:grid;grid-template-columns:1fr auto;gap:24px;padding:28px 0;text-decoration:none}
.paper-link:last-child{border-bottom:1px solid #cac7ba}
.paper-link h2{font-size:32px;line-height:1.1;margin:0 0 12px;letter-spacing:-.03em}
.paper-link p{font:15px/1.5 Georgia,serif;color:#6a6e61;margin:0}
.paper-link>span{font:26px Georgia,serif;align-self:center}
.paper-link:hover h2{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
@media(max-width:620px){.inner-page .inner-header{padding:10px 20px}.inner-header nav{gap:20px}.inner-page main{padding-top:64px;padding-bottom:80px}.paper-link h2{font-size:29px}}

footer{font-family:Georgia,serif}
header h1{font-family:Georgia,serif}
/* Large subject rows reveal found imagery without shifting the reading column. */
.research-areas{grid-template-columns:1fr;gap:0;margin-top:50px}
.area-link{display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:auto auto auto;column-gap:28px;min-height:200px;padding:25px 18px;border-bottom:0;align-content:center}
.area-link:last-child{border-bottom:1px solid #bdbeb1}
.area-number,.area-link h3,.area-bottom{grid-column:1}
.area-link h3{font-size:40px;margin:17px 0 24px}
.area-bottom{display:flex;justify-content:flex-start;gap:22px}
.area-preview{grid-column:2;grid-row:1/4;width:220px;height:154px;object-fit:cover;opacity:0;transform:translateY(5px);transition:opacity .2s ease,transform .3s cubic-bezier(.16,1,.3,1);border-radius:2px}
.area-link:hover .area-preview,.area-link:focus-visible .area-preview{opacity:1;transform:translateY(0)}
.area-link:focus-visible{background:#eeece2}
@media(max-width:1050px){.area-link{grid-template-columns:minmax(0,1fr) 150px;column-gap:20px;padding-inline:8px}.area-preview{width:150px;height:120px}.area-link h3{font-size:32px}}
@media(max-width:720px){.area-link{grid-template-columns:minmax(0,1fr) 114px;column-gap:16px;padding:24px 0;min-height:178px}.area-preview{width:114px;height:114px;opacity:1;transform:none}.area-link h3{font-size:29px;margin:17px 0 22px}.area-bottom{font-size:13px;gap:12px}}
@media(hover:none){.area-preview{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.area-preview{transition:none;transform:none}}
/* Publications use restrained panels, with the journal article leading. */
.inner-page main.mathematics-main{max-width:1120px;padding-top:56px}
.published-paper{margin:42px 0 72px;padding:34px 36px 38px;background:#eeebe0;border-top:1px solid #bdbbac;border-bottom:1px solid #bdbbac}
.publication-label,.paper-year{font:13px/1.4 Georgia,serif;color:#6b705f;margin:0 0 22px}
.published-paper h2{font:400 clamp(30px,3.4vw,44px)/1.13 Georgia,serif;letter-spacing:-.035em;margin:0 0 23px;max-width:25ch}
.published-paper h2 a{text-decoration:none}
.published-paper h2 a:hover{text-decoration:underline;text-decoration-thickness:1px}
.journal-citation{font:18px/1.55 Georgia,serif;color:#545b4b;margin:0 0 28px}
.journal-link{font:18px/1.4 Georgia,serif;text-decoration-thickness:1px;text-underline-offset:5px}
.journal-link{display:inline-flex;align-items:center;gap:12px}
.journal-link span{margin-left:0}
.paper-category{margin:0 0 64px;scroll-margin-top:32px}
.category-heading{display:flex;justify-content:space-between;align-items:baseline;gap:25px;margin:0 0 24px}
.category-heading h2{font:400 30px/1.2 Georgia,serif;letter-spacing:-.025em;margin:0}
.category-heading>span{font:13px Georgia,serif;color:#74796a}
.paper-panels{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.preprint-panel{display:flex;flex-direction:column;min-height:230px;padding:26px 27px;border:1px solid #c8c7b9}
.paper-year{margin:0 0 19px}
.preprint-panel h3{font:400 25px/1.25 Georgia,serif;letter-spacing:-.02em;margin:0 0 30px}
.preprint-panel h3 a{text-decoration:none}
.preprint-panel h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.preprint-links{display:flex;gap:24px;flex-wrap:wrap;margin-top:auto;font:14px Georgia,serif}
.preprint-links a{text-decoration-color:#a1a694;text-underline-offset:5px}
@media(max-width:720px){.inner-page main.mathematics-main{padding-top:40px}.published-paper{margin:34px 0 52px;padding:26px 23px 30px}.paper-panels{grid-template-columns:1fr}.category-heading{align-items:flex-start}.category-heading h2{font-size:28px;max-width:18ch}.preprint-panel{min-height:205px;padding:25px}.preprint-panel h3{font-size:24px}}
/* The two subject choices are expansive editorial image panels. */
.academic-index>.research-areas{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:72px}
.area-link{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;min-height:370px;overflow:hidden;padding:32px;border:0;background:#e5dbc6}
.area-link:last-child{border:0}
.area-link::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(to top,rgba(241,235,221,.98),rgba(241,235,221,.34) 72%);opacity:0;transition:opacity .3s ease}
.area-preview{position:absolute;inset:0;z-index:-2;grid-column:auto;grid-row:auto;width:100%;height:100%;object-fit:cover;opacity:0;transform:none;border-radius:0;transition:opacity .35s cubic-bezier(.16,1,.3,1)}
.area-number{align-self:flex-start;position:relative;z-index:1}
.area-link h3{font:400 clamp(38px,4.4vw,62px)/1.04 Georgia,serif;letter-spacing:-.045em;position:relative;margin:auto 0 26px;grid-column:auto}
.area-bottom{font:15px/1.3 Georgia,serif;position:relative;display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0;grid-column:auto}
.area-bottom>span:last-child{font-size:28px;color:inherit;transition:transform .25s ease}
.area-link#oceanography{background:#183942;color:#f7f4e9}
.area-link#oceanography .area-number,.area-link#oceanography .area-bottom{color:#e1e8df}
.area-link#oceanography::after{background:linear-gradient(to top,rgba(7,26,32,.95),rgba(7,26,32,.18) 90%)}
.area-link#mathematics .area-number,.area-link#mathematics .area-bottom{color:#525a47}
.area-link:hover .area-preview,.area-link:focus-visible .area-preview{opacity:1;transform:none}
.area-link:hover::after,.area-link:focus-visible::after{opacity:1}
.area-link:hover .area-bottom>span:last-child,.area-link:focus-visible .area-bottom>span:last-child{transform:translate(3px,-3px)}
@media(max-width:900px){.area-link{min-height:310px;padding:27px}.area-link h3{font-size:40px}}
@media(max-width:720px){.academic-index>.research-areas{grid-template-columns:1fr;gap:20px;margin-top:56px}.area-link{min-height:310px;padding:28px}.area-link h3{font-size:clamp(36px,10vw,50px)}.area-preview,.area-link::after{opacity:1}.area-bottom{font-size:14px}}
@media(hover:none){.area-preview,.area-link::after{opacity:1}}
/* Historical mathematical material appears behind each paper on hover/focus. */
.published-paper,.preprint-panel{position:relative;isolation:isolate;overflow:hidden}
.published-paper::before,.preprint-panel::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(100deg,rgba(248,246,239,.95),rgba(248,246,239,.64)),var(--paper-art,none);background-size:cover;background-position:var(--paper-position,center);opacity:0;transition:opacity .24s ease}
.published-paper:hover::before,.published-paper:focus-within::before,.preprint-panel:hover::before,.preprint-panel:focus-within::before{opacity:1}
.preprint-panel:hover{border-color:#7a826b}
@media(prefers-reduced-motion:reduce){.area-preview,.area-link::after,.area-bottom>span:last-child,.published-paper::before,.preprint-panel::before{transition:none}.area-link:hover .area-bottom>span:last-child{transform:none}}

/* Subject panels follow the bio within the reading column. */
.profile-main .research-areas{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:30px}
.profile-main .area-link{min-height:294px;padding:26px}
.profile-main .area-link h3{font-size:clamp(33px,3vw,45px)}
@media(min-width:721px) and (max-width:950px){.profile-main .research-areas{grid-template-columns:1fr}.profile-main .area-link{min-height:230px}.profile-main .area-link h3{font-size:42px}}
@media(max-width:720px){.profile-main .research-areas{grid-template-columns:1fr;gap:20px}.profile-main .area-link{min-height:274px}.profile-main .area-link h3{font-size:clamp(35px,10vw,47px)}}
/* Monet: two decoded layers crossfade while the panel is engaged. */
#oceanography .area-preview{opacity:0;transition:opacity 1s ease;object-position:center 48%}
#oceanography:hover .area-preview[data-active=true],#oceanography:focus-visible .area-preview[data-active=true]{opacity:1}
.painting-caption{position:absolute;right:20px;top:20px;max-width:75%;text-align:right;font:11px/1.45 Georgia,serif;color:#fff;text-shadow:0 1px 6px #000;opacity:0;transition:opacity .25s}
#oceanography:hover .painting-caption,#oceanography:focus-visible .painting-caption{opacity:1}
.tree-paper::before{background-image:linear-gradient(100deg,rgba(248,246,239,.93),rgba(248,246,239,.45)),var(--paper-art);background-position:center 48%}
.painting-credit{margin-top:auto;padding-top:16px;font:11px/1.45 Georgia,serif;opacity:0;transition:opacity .24s;color:#4b5147}
.tree-paper:hover .painting-credit,.tree-paper:focus-within .painting-credit{opacity:1}
@media(hover:none){#oceanography .area-preview[data-active=true],.painting-caption{opacity:1}}
@media(prefers-reduced-motion:reduce){#oceanography .area-preview,.painting-caption,.painting-credit{transition:none}}
#mathematics .area-preview{opacity:0;transition:opacity 1s ease;object-position:center 42%}
#mathematics:hover .area-preview[data-active=true],#mathematics:focus-visible .area-preview[data-active=true]{opacity:1}
@media(hover:none){#mathematics .area-preview[data-active=true]{opacity:1}}
@media(prefers-reduced-motion:reduce){#mathematics .area-preview{transition:none}}
/* A previous painting must never flash before the next hover has decoded. */
#oceanography.rotating-art .area-preview,#mathematics.rotating-art .area-preview{opacity:0}
#oceanography.rotating-art[data-art-visible=true] .area-preview[data-active=true],#mathematics.rotating-art[data-art-visible=true] .area-preview[data-active=true]{opacity:1}
#oceanography.rotating-art[data-art-waiting=true] .area-preview,#mathematics.rotating-art[data-art-waiting=true] .area-preview{opacity:0;transition:none}
/* Matisse's original cut-paper swimmers run as a frieze above the colophon. */
footer.pool-footer{display:block;position:relative;padding:0;border:0;background:var(--paper,#f7f5ee);color:var(--ink,#292d26)}
.pool-frieze{height:clamp(200px,18vw,280px);width:100%;background-image:url('/assets/footer/matisse-swimming-pool.jpg');background-repeat:no-repeat;background-size:max(100%,1500px) auto;background-position:center 40%}
footer.pool-footer>span{display:block;padding:22px var(--page-gutter);font:13px/1.5 Georgia,serif}

/* Let the paintings retain their original colour and light. */
.area-link::after{display:none}
.area-link[data-art-visible=true],#mathematics[data-art-visible=true] .area-number,#mathematics[data-art-visible=true] .area-bottom{color:#fffdf5;text-shadow:0 1px 3px #182424,0 2px 12px #182424aa}
.language-switch{position:fixed;right:var(--page-gutter);top:22px;display:flex;align-items:center;gap:10px;padding:6px 10px;background:#f8f6efed;color:#292d26;z-index:6;font:12px/1.4 Georgia,serif}
.language-switch button{font:inherit;color:inherit;border:0;background:none;padding:3px 0;cursor:pointer;white-space:nowrap}
.language-switch button[aria-pressed=true]{text-decoration:underline;text-underline-offset:5px}
.language-switch button:focus-visible{outline:2px solid #56665b;outline-offset:4px}
.inner-header .language-switch{position:static;height:20px;flex-shrink:0;padding:0 0 0 22px;border-left:1px solid #d5d0c3;background:none;font:12px/1.4 Georgia,serif}
.inner-header .language-switch button{min-height:44px}
html[lang=mi] .profile-main .area-link h3{font-size:clamp(30px,2.8vw,42px)}
@media(max-width:720px){.language-switch{top:12px;gap:8px;padding:5px 7px;font-size:11px}.inner-page .inner-header{gap:12px;padding:10px 20px}.inner-header nav{width:auto;justify-content:flex-start;gap:16px;font-size:12px}.inner-header .language-switch{border-left:0;padding:0;font-size:11px;gap:8px}html[lang=mi] .profile-main .area-link h3{font-size:38px}}
/* Contrast follows the visible artwork, including static design previews. */
#mathematics:hover h3,#mathematics:hover .area-number,#mathematics:hover .area-bottom,
#mathematics:focus-visible h3,#mathematics:focus-visible .area-number,#mathematics:focus-visible .area-bottom,
#oceanography:hover h3,#oceanography:hover .area-number,#oceanography:hover .area-bottom,
#oceanography:focus-visible h3,#oceanography:focus-visible .area-number,#oceanography:focus-visible .area-bottom{color:#fffdf5;text-shadow:0 1px 3px #15221f,0 2px 10px #15221fcc}
@media(hover:none){#mathematics h3,#mathematics .area-number,#mathematics .area-bottom,#oceanography h3,#oceanography .area-number,#oceanography .area-bottom{color:#fffdf5;text-shadow:0 1px 3px #15221f,0 2px 10px #15221fcc}}
/* The numbered subject links replace the duplicate menu and enter with scroll. */
.stage .cover-title{font-size:clamp(24px,2.8vw,44px);letter-spacing:-.025em;opacity:var(--show,0);transition:opacity .25s ease;pointer-events:none}
.stage .cover-title a{pointer-events:auto;cursor:pointer;fill:currentColor;text-decoration:none}
.stage .cover-title a:hover{opacity:.8}
.stage .cover-title a:focus-visible{outline:none;filter:drop-shadow(0 0 3px currentColor)}
.cover-number{font-size:.5em;letter-spacing:.03em}
@media(prefers-reduced-motion:reduce){.stage .cover-title{transition:none}}
/* Keep language choices clear of the scene controls. */
header>.language-switch{top:70px}
header.on-paper>.language-switch{top:20px}
@media(max-width:720px){header>.language-switch{top:64px}header.on-paper>.language-switch{top:12px}}
/* Paper artwork keeps its colour too; contrast is applied only to lettering. */
.published-paper::before,.preprint-panel::before,.tree-paper::before{background-image:var(--paper-art,none)}
.published-paper:is(:hover,:focus-within) h2,.preprint-panel:is(:hover,:focus-within):not(.tree-paper) h3{text-shadow:0 1px 3px #fffdf5,0 0 8px #fffdf5cc}
.tree-paper:is(:hover,:focus-within) :is(h3 a,.paper-year,.preprint-links a){color:#fffdf5;text-shadow:0 1px 3px #15221f,0 2px 10px #15221fcc}
/* Bright Impressionist paintings: unfiltered colour and readable ivory type. */
:is(.published-paper,.preprint-panel):is(:hover,:focus-within) :is(h2,h3,a,p){color:#fffdf5;text-shadow:0 1px 3px #15221f,0 2px 10px #15221fcc}
.deferred-art:not([data-art-ready=true])::before{background-image:none}
.deferred-art:not([data-art-ready=true]):is(:hover,:focus-within) :is(h2,h3,a,p){color:var(--ink,#292d26);text-shadow:none}
/* The reviewer shows production artwork without the site's navigation overlay. */
.scene-review-preview :is(header,.scene-controls,.cover-title,.scroll,#research,footer,.skip){display:none!important}
.scene-review-preview #top{height:100svh!important}
.scene-review-preview .stage{position:relative;top:0;height:100svh}
.scene-review-preview body{overflow:hidden}

/* The homepage language control appears when the profile replaces the opening. */
header > .language-switch[hidden]{display:none}

.area-arrow{display:flex;flex:0 0 auto;align-items:center}
.area-arrow svg{display:block;width:44px;height:44px}
@media(max-width:720px){.area-arrow svg{width:36px;height:36px}}

.preprint-links a{display:inline-flex;align-items:center;gap:6px}
.preprint-links svg{flex:0 0 auto}

.pool-masthead{display:block;width:100%;height:clamp(104px,15vw,240px);background-image:url('/assets/footer/matisse-swimming-pool-second.jpg');background-size:cover;background-position:50% 41%}
.profile-tools{position:sticky;top:0;height:0;padding:0;color:var(--ink)}
.profile-tools>.language-switch{position:absolute;top:12px}
/* Both panels share the same mobile scale and crop. */
@media(max-width:720px){
    .pool-frieze{height:210px;background-size:1300px auto;background-position:48% 40%}
}

.preprint-panel .paper-coauthor{font-size:15px;line-height:1.45;margin:-16px 0 26px;color:inherit}

/* Match the other topic headings and the shared 20px panel gap. */
.paper-category>.published-paper{margin:0 0 20px}
