/* moves.css — the landing page's section redesigns and interactions (moves.js, beams.js, waves.js, board.js, flythrough.js).
 * Loaded after styles.css. html[data-moves] scopes the parts that must outrank it. */

/* Scrolling: ScrollTrigger cannot measure a scrolled page under CSS smooth scrolling; OEH.touch.glide moves in-page links. */
html{scroll-behavior:auto}

/* ---------- Profile: the lead paragraph lights up word by word ---------- */
.about-lead .lw{will-change:opacity}

/* ---------- Positions: large rows, one open at a time ---------- */
.posts{margin-top:44px;border-top:1px solid var(--forest)}
.post{border-bottom:1px solid var(--hair);transition:opacity .35s var(--ease)}
@media (hover:hover){.posts:hover .post:not(:hover):not(.is-open){opacity:.36}}
.post-h{margin:0;font:inherit}
.post-head{all:unset;box-sizing:border-box;display:grid;grid-template-columns:minmax(112px,150px) minmax(0,1fr) minmax(0,auto) 22px;align-items:center;gap:6px 24px;width:100%;padding:clamp(16px,1.8vw,24px) 0;cursor:pointer}
.post-head:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.post-date{font-family:var(--mono);font-size:12px;line-height:1.5;color:var(--muted)}
.post-date .tl-current{display:block}
.post-role{font-family:var(--serif);font-weight:500;font-size:clamp(28px,3.9vw,52px);line-height:1.05;letter-spacing:-.01em;color:var(--forest);transition:transform .55s var(--ease),color .3s}
.post-head:hover .post-role,.post.is-open .post-role{transform:translateX(14px);color:var(--brass-text)}
.post-org{display:flex;align-items:center;justify-content:flex-end;gap:2px;font-size:14px;line-height:1.3;color:var(--muted);text-align:right}
.post-org .org-logo{height:26px;width:auto;max-width:92px;object-fit:contain}
.post-mark{position:relative;width:18px;height:18px;justify-self:end}
.post-mark::before,.post-mark::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--forest);transition:transform .45s var(--ease)}
.post-mark::after{transform:rotate(90deg)}
.post.is-open .post-mark::after{transform:rotate(0)}
.post-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .55s var(--ease)}
.post.is-open .post-body{grid-template-rows:1fr}
.post-inner{min-height:0;overflow:hidden}
.post-text{margin:0;padding:2px 0 26px calc(clamp(112px,12vw,150px) + 38px);max-width:760px;font-size:16px;line-height:1.6;text-wrap:pretty}
@media (max-width:899.98px){
  .post-head{grid-template-columns:minmax(0,1fr) 22px;gap:4px 14px}
  .post-date{grid-column:1;grid-row:1}
  .post-role{grid-column:1;grid-row:2}
  .post-org{grid-column:1;grid-row:3;justify-content:flex-start;text-align:left}
  .post-mark{grid-column:2;grid-row:1 / span 3;align-self:center}
  .post-head:hover .post-role,.post.is-open .post-role{transform:none}
  .post-text{padding-left:0}
}

/* ---------- Publications: the guidelines as tags hanging from a brass wire ---------- */
.gstrip{position:relative;margin:56px 0 0;padding:0;overflow:hidden}
.gstrip::before,.gstrip::after{content:"";position:absolute;top:0;bottom:0;z-index:2;width:clamp(28px,6vw,84px);pointer-events:none}
.gstrip::before{left:0;background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}
.gstrip::after{right:0;background:linear-gradient(270deg,#fff,rgba(255,255,255,0))}
.gstrip-head{position:relative;z-index:3;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0;padding:0}
.gstrip-title{margin:0;padding-left:.05em;font-family:var(--serif);font-weight:500;font-size:clamp(48px,7vw,104px);line-height:.98;letter-spacing:-.015em;color:var(--forest)}
.gstrip-sub{margin:20px 0 0;font-family:var(--mono);font-size:12.5px;line-height:1.5;color:var(--muted)}
.gstrip-title em{font-style:italic;color:var(--brass-text)}
.gstrip-nav{display:flex;flex:none;gap:8px}
.gstrip-btn{all:unset;display:grid;place-items:center;box-sizing:border-box;width:40px;height:40px;border:1px solid var(--forest);border-radius:50%;background:#fff;color:var(--forest);font-family:var(--sans);font-size:17px;line-height:1;cursor:pointer;transition:background .25s,color .25s}
.gstrip-btn:hover{background:var(--forest);color:#fff}
.gstrip-btn:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.gwire{display:flex;gap:12px;overflow-x:auto;padding:16px clamp(18px,2.4vw,30px) 22px}
.gwire-line{display:none}
.gtag{display:block;flex:none;width:218px;color:inherit;text-decoration:none}
.gtag-cord{display:none}
.gtag-card{display:flex;flex-direction:column;gap:3px;box-sizing:border-box;height:100%;padding:12px 13px 13px;background:#fbf8f0;color:var(--forest);box-shadow:0 10px 22px rgba(31,59,45,.14),inset 0 0 0 1px rgba(31,59,45,.12);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.gtag-card.is-dark{background:#1f3b2d;color:#fff;box-shadow:0 10px 22px rgba(31,59,45,.2)}
.gtag-logo{display:flex;align-items:center;height:44px;margin-bottom:5px;font-family:var(--mono);font-size:15px;letter-spacing:.03em;color:var(--brass-text)}
.gtag-card.is-dark .gtag-logo{color:var(--cream)}
.gtag-logo img{display:block;max-width:168px;max-height:46px;object-fit:contain;pointer-events:none}
.gtag-card b{display:block;font-family:var(--serif);font-weight:600;font-size:19px;line-height:1.12}
.gtag-card i{display:block;font-family:var(--mono);font-style:normal;font-size:11px;line-height:1.35;color:var(--muted)}
.gtag-card.is-dark i{color:var(--cream)}
/* live: moves.js hangs the tags on the wire; without it they stay a plain row that scrolls sideways */
.gwire.is-live{position:relative;display:block;overflow:visible;padding:0;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.gwire.is-live.is-held{cursor:grabbing}
.gwire.is-live .gwire-line{display:block;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.gwire.is-live .gtag{position:absolute;left:0;top:0;transform-origin:50% 0;will-change:transform}
.gwire.is-live .gtag:hover,.gwire.is-live .gtag:focus-visible{z-index:3}
.gwire.is-live .gtag:hover .gtag-card{transform:translateY(2px) scale(1.025);box-shadow:0 18px 34px rgba(31,59,45,.24)}
.gwire.is-live .gtag-cord{display:block;position:relative;width:1px;height:20px;margin:0 auto;background:var(--brass)}
.gwire.is-live .gtag-cord::before{content:"";position:absolute;left:-3.5px;top:-4px;width:6px;height:6px;border:1px solid var(--brass);border-radius:50%;background:#fff}
.gwire.is-live .gtag-card{position:relative}
.gwire.is-live .gtag-card::before{content:"";position:absolute;left:50%;top:7px;width:7px;height:7px;margin-left:-3.5px;border-radius:50%;background:#fff;box-shadow:inset 0 1px 2px rgba(31,59,45,.35)}
.gwire.is-live .gtag-logo{margin-top:8px}
@media (max-width:699.98px){
  .gtag{width:186px}
  .gtag-card b{font-size:17px}
  .gtag-card i{font-size:12px}
  .gtag-logo img{max-width:140px}
}

/* ---------- Footer: letters that fall and can be thrown ---------- */
.toss{position:relative;z-index:1;height:clamp(210px,29vw,430px);touch-action:pan-y;user-select:none;-webkit-user-select:none}
.toss canvas{position:absolute;left:0;top:0;display:block;width:100%;pointer-events:none}
html[data-toss] .contact-mark{display:none}

/* beams.js — two brass beams behind the hero, and the white copy of the name clipped to them */
html[data-moves] .beams{position:absolute;inset:0;overflow:hidden;pointer-events:none}
html[data-moves] .beams-layer{position:absolute;inset:0;will-change:transform}
/* Solid down to just under the name, then only the two edges carry on, so the paragraph stays on white */
html[data-moves] .beam{position:absolute;left:0;top:0;box-sizing:border-box;height:100%;transform-origin:0 0;will-change:transform;border:solid var(--brass);border-width:0 1px;background:linear-gradient(180deg,var(--brass) 0,var(--brass) var(--beam-solid,50%),rgba(180,138,58,.72) calc(var(--beam-solid,50%) + 36px),rgba(180,138,58,.34) calc(var(--beam-solid,50%) + 78px),rgba(180,138,58,.1) calc(var(--beam-solid,50%) + 130px),rgba(180,138,58,.05) 100%)}

html[data-moves] .hero-title{position:relative}
html[data-moves] .beams-name{position:absolute;inset:0;bottom:-.12em;display:block;background:var(--brass);color:#fff;pointer-events:none;user-select:none;-webkit-user-select:none;will-change:transform;clip-path:polygon(0 0,0 0,0 0)}
html[data-moves] .beams-name .hero-suffix{color:#fff}
/* The tail of the g: .hero-line clips it, and white on brass shows the cut. Same box, no shift in the layout. */
html[data-moves] .hero-line-2{padding-bottom:.18em;margin-bottom:-.12em}
/* Phones and tablets: slim pale beams, so the name stays in its own ink and the paragraph on clear ground */
@media (max-width:899.98px),(max-height:500px) and (hover:none){
  html[data-moves] .beam{border-image:linear-gradient(180deg,rgba(180,138,58,.75) 0,rgba(180,138,58,.75) var(--beam-solid,50%),rgba(180,138,58,.1) calc(var(--beam-solid,50%) + 90px),rgba(180,138,58,.06) 100%) 1;background:linear-gradient(180deg,rgba(180,138,58,.2) 0,rgba(180,138,58,.2) var(--beam-solid,50%),rgba(180,138,58,.05) calc(var(--beam-solid,50%) + 90px),rgba(180,138,58,.03) 100%)}
  html[data-moves] .beams-name{display:none}
}
/* A shade darker so the line above the name reads when a beam crosses it */
html[data-moves] .type-row{color:var(--ink)}

/* waves.js — the grounds and the wavy joins (contour.js). The grounds and cuts sit behind the content at z-index -3,
 * so .page has to go clear for them to show; the sections are already transparent. */
html[data-moves] .page{background:transparent}

/* ---------- The grounds and the cuts between them ---------- */
.ct-fill{position:absolute;left:0;right:0;top:0;bottom:0;z-index:-3;pointer-events:none}
.ct-cut{position:absolute;left:0;right:0;bottom:-44px;height:88px;z-index:-3;pointer-events:none}
.ct-cut svg{position:absolute;left:0;top:-1px;display:block;overflow:visible}
.ct-ring{opacity:0;transform:translateY(8px);transition:opacity .9s ease,transform 1.5s var(--ease);transition-delay:calc(var(--i) * 70ms)}
.ct-cut.is-open .ct-ring{opacity:var(--o);transform:translateY(var(--d))}
html[data-moves] section[data-ct-cut]::before{display:none}
html[data-moves] .contact[data-ct]{background:transparent}

/* ---------- Cream sections ---------- */
html[data-moves] section.section[data-ct="cream"]{--brass-text:#75571a;--muted:#54574f;--hair:rgba(31,59,45,.2)}

/* ---------- Forest sections: every token the page draws with, turned over ---------- */
html[data-moves] section.section[data-ct="forest"]{--forest:#f6f1e4;--ink:#efeadc;--muted:#cdbf9a;--brass-text:#d9b468;--hair:rgba(205,191,154,.26);color:#efeadc}
html[data-moves] section.section[data-ct="forest"] a:not(.papers-band){color:#efeadc}
html[data-moves] section.section[data-ct="forest"] .ambient{display:none}
html[data-moves] section.section[data-ct="forest"] .ghost-num{opacity:.06}
html[data-moves] section.section[data-ct="forest"] .award:hover{background:rgba(205,191,154,.08)}
/* Logos are drawn for white paper, so each sits on a small sheet of it */
html[data-moves] section.section[data-ct="forest"] .org-logo{box-sizing:content-box;padding:4px 8px;background:#fbf8f0;border-radius:2px}
/* The chart stays a sheet of white paper, with the page's own colours put back inside it */
html[data-moves] section.section[data-ct="forest"] .method-stage{--forest:#1f3b2d;--ink:#1a1d1b;--muted:#5c5f5a;--brass-text:#8f6b22;--hair:rgba(31,59,45,.18);color:#1a1d1b;border-color:transparent}
/* The forest band would vanish on forest, so here it is a sheet of cream */
html[data-moves] section.section[data-ct="forest"] .papers-band{background:#f4eee0;color:#1f3b2d}
html[data-moves] section.section[data-ct="forest"] .papers-band:hover{background:#fff;color:#1f3b2d}
html[data-moves] section.section[data-ct="forest"] .papers-band-kicker{color:#75571a}
html[data-moves] section.section[data-ct="forest"] .papers-band::after{border-color:rgba(31,59,45,.3)}

/* ---------- White sections: charts keep a clean sheet ---------- */
html[data-moves] .pub-chart{background:#fff}

/* ---------- The header turns over with the ground under it ---------- */
html[data-moves] .site-header{transition:transform .5s var(--ease),background-color .4s ease,border-color .4s ease}
html[data-moves] .site-header.ct-dark{--forest:#f6f1e4;--ink:#f6f1e4;--brass-text:#d9b468;background:rgba(31,59,45,.97);border-bottom-color:rgba(205,191,154,.4)}
html[data-moves] .site-header.ct-dark .brand svg text[fill="#1f3b2d"]{fill:#f6f1e4}
html[data-moves] .site-header.ct-dark .index-btn:hover{background:#f6f1e4;color:#1f3b2d}

/* flythrough.js — the stage before Contact. Its last screen overlaps Contact, which is what the O opens onto. */
.portal{position:relative;z-index:6;height:215vh;margin-bottom:-100vh;pointer-events:none}
.portal-stage{position:sticky;top:0;height:100vh;overflow:hidden}
.portal-stage canvas{display:block;width:100%;height:100%}
.portal-under{position:relative;height:0}
.portal-under i{position:absolute;left:0;right:0;bottom:0;height:100vh;background:var(--forest)}
@media (max-width:899.98px){.portal{height:190vh}}

/* ---------- Phones and tablets: the header, and small links with a full-size target ---------- */
@media (max-width:899.98px),(hover:none){
  .index-btn{min-height:40px}
  .chip{padding-top:11px;padding-bottom:11px}
  .pub-links{row-gap:18px}
  .sort-btn,.pub-search{min-height:40px}
  .pub-link,.pub-method-btn,.ulink,.footer-top{position:relative}
  .pub-link::after,.pub-method-btn::after,.ulink::after,.footer-top::after{content:"";position:absolute;left:-5px;right:-5px;top:50%;height:44px;margin-top:-22px}
}
@media (max-width:379.98px){
  .header-inner{gap:10px;padding:0 14px}
  .brand{gap:8px}
  .brand-name{font-size:13px;letter-spacing:0}
  .index-btn{gap:7px;padding:10px}
}
@media (max-height:500px) and (max-width:899.98px),(max-height:500px) and (hover:none){
  .header-inner{height:52px}
}

/* The wire runs to both screen edges, so a tag is cut by the screen and not by the page margin */
@media (max-width:899.98px){
  .gstrip{margin-left:calc(clamp(20px,4vw,48px) * -1);margin-right:calc(clamp(20px,4vw,48px) * -1)}
  .gstrip-head{padding:0 clamp(20px,4vw,48px)}
}

/* A field under 16px makes an iPhone zoom the page when it is tapped. The placeholder can stay small. */
@media (hover:none){
  .pub-search{font-size:16px}
  .pub-search::placeholder{font-size:12px}
}

/* A tablet on its side: one long line of hospitals may not squeeze its role into a narrow column */
@media (min-width:900px) and (max-width:1199.98px){
  .post-head{grid-template-columns:minmax(112px,150px) minmax(0,1fr) fit-content(34%) 22px}
}

/* The longest word on the page stays inside its card where the columns run narrow; at full size this changes nothing */
.domain{container-type:inline-size}
.domain-name{font-size:min(24px,12cqw)}

/* The row of links needs 1140 wide; under that it pushed the index button past the edge of the screen */
@media (max-width:1139.98px){.primary-nav{display:none}}

/* ---------- Type: Figtree throughout, as on the Work page. Display 700 and tight, titles 600, reading 400.
 * Figtree sets wider and taller than the old serif, so the display sizes come down to keep each heading's room.
 * No italics: Figtree's italic is not loaded, so an emphasised word is upright brass instead. ---------- */
html[data-moves] .page em,html[data-moves] .page i{font-style:normal}
html[data-moves] .section-title em,html[data-moves] .method-title em,html[data-moves] .gstrip-title em{color:#8f6b22}
html[data-moves] section.section[data-ct="forest"] .section-title em,html[data-moves] section.section[data-ct="forest"] .method-title em,html[data-moves] .contact-title em{color:#b48a3a}
html[data-moves] .hero-title{font-weight:700;font-size:clamp(50px,7.4vw,90px);line-height:.92;letter-spacing:-.045em}
html[data-moves] .hero-suffix{font-style:normal;font-weight:600;letter-spacing:-.02em;margin-left:.18em}
html[data-moves] .section-title{font-weight:700;font-size:clamp(30px,3.7vw,46px);line-height:1.02;letter-spacing:-.035em;text-wrap:balance}
html[data-moves] .gstrip-title{font-weight:700;font-size:clamp(38px,5.6vw,82px);line-height:.96;letter-spacing:-.045em}
html[data-moves] .contact-title{font-weight:700;font-size:clamp(36px,5.6vw,78px);line-height:.98;letter-spacing:-.045em}
html[data-moves] .contact-mark{font-weight:700;font-size:clamp(130px,21vw,360px);letter-spacing:-.05em}
html[data-moves] .ghost-num{font-weight:700;font-size:clamp(120px,16vw,224px);letter-spacing:-.06em}
html[data-moves] .method-title{font-weight:700;font-size:clamp(24px,2.8vw,33px);line-height:1.05;letter-spacing:-.03em}
html[data-moves] .papers-band-title{font-weight:700;font-size:clamp(23px,2.7vw,35px);line-height:1.08;letter-spacing:-.03em}
html[data-moves] .post-role{font-weight:600;font-size:clamp(22px,2.7vw,36px);line-height:1.1;letter-spacing:-.025em}
html[data-moves] .stat-value{font-weight:700;font-size:29px;letter-spacing:-.03em}
html[data-moves] .funding-amount{font-weight:700;font-size:34px;letter-spacing:-.03em}
html[data-moves] .viz-fact-value,html[data-moves] .news-day{font-weight:700;font-size:28px;letter-spacing:-.03em}
html[data-moves] .about-lead{font-weight:400;font-size:clamp(19px,1.9vw,24px);line-height:1.45;letter-spacing:-.01em}
/* Titles and names */
html[data-moves] .entry-title,html[data-moves] .award-title,html[data-moves] .funding-title,html[data-moves] .aff-name,html[data-moves] .domain-name,html[data-moves] .news-title,html[data-moves] .tl-role{font-weight:600;font-size:19px;line-height:1.22;letter-spacing:-.01em}
html[data-moves] .entry-title em{font-weight:500}
html[data-moves] .project-title,html[data-moves] .talk-title{font-weight:500;font-size:19px;line-height:1.25;letter-spacing:-.01em}
html[data-moves] .service-name,html[data-moves] .lb-title{font-weight:600;font-size:17.5px;line-height:1.22;letter-spacing:-.01em}
html[data-moves] .topic-name{font-weight:600;font-size:clamp(17px,1.6vw,20px);line-height:1.2;letter-spacing:-.01em}
html[data-moves] .pub-title{font-weight:500;font-size:clamp(17.5px,1.7vw,20px);line-height:1.25;letter-spacing:-.01em}
html[data-moves] .pub-panel-title{font-weight:600;font-size:21px;line-height:1.2;letter-spacing:-.015em}
html[data-moves] .method-aside-title{font-weight:600;font-size:23px;line-height:1.18;letter-spacing:-.02em}
html[data-moves] .news-card-featured .news-title{font-size:clamp(20px,2vw,26px);line-height:1.18;letter-spacing:-.02em}
html[data-moves] .aff-logo-fallback{font-weight:700;font-size:26px;letter-spacing:-.02em}
html[data-moves] .gtag-card b{font-weight:600;font-size:15.5px;line-height:1.2;letter-spacing:-.01em}
html[data-moves] .article-title{font-weight:700;font-size:clamp(30px,4vw,50px);line-height:1.04;letter-spacing:-.035em}
html[data-moves] .article-lead{font-weight:400;font-size:clamp(18px,1.9vw,22px);line-height:1.45}
html[data-moves] .article-body p:first-child::first-letter{font-weight:700;font-size:3em}
@media (max-width:599.98px){
  html[data-moves] .hero-title{font-size:clamp(44px,13.4vw,60px)}
  html[data-moves] .section-title{font-size:clamp(28px,8vw,34px)}
  html[data-moves] .entry-title,html[data-moves] .award-title,html[data-moves] .funding-title,html[data-moves] .aff-name,html[data-moves] .domain-name,html[data-moves] .news-title,html[data-moves] .project-title,html[data-moves] .talk-title{font-size:17.5px}
  html[data-moves] .gtag-card b{font-size:15px}
}
/* A long word such as "Pharmacoepidemiology" has to fit the card: the size follows the card's width */
html[data-moves] .domain-name{font-size:min(19px,8.6cqw)}
/* The narrowest phones: two course names in a column a little over 100px wide */
@media (max-width:359.98px){html[data-moves] .topic-name{font-size:14.5px}}
/* The journal names on the paper stack: "Pharmacoepidemiology" in one piece on the smaller stack */
@media (max-width:1099.98px){html[data-moves] .band-stack b{font-size:9px;letter-spacing:.02em}}

/* ---------- About: the description across the top; the degrees as cards on a line of years, with the place beside the MSc
   kept free, and the certificate as a band below them; the research profile as three panels: software and societies by their logos, the methods as diagrams ---------- */
html[data-moves] #about .about-prose{position:relative;margin:44px 0 0;padding:0}
html[data-moves] #about .about-lead{max-width:30em;font-size:clamp(22px,2.4vw,33px);line-height:1.32;letter-spacing:-.015em}
html[data-moves] #about .about-body{margin:30px 0 0;columns:2 300px;column-gap:56px;font-size:17px;line-height:1.65}
html[data-moves] #about .about-prose .amb-svg{opacity:.55}
/* on wide screens the dots gather beside the opening sentence and fade before the paragraphs below it */
@media (min-width:1100px){html[data-moves] #about .about-prose .amb-svg{-webkit-mask-image:radial-gradient(ellipse 33% 54% at 90% 22%,#000 25%,transparent 100%)!important;mask-image:radial-gradient(ellipse 33% 54% at 90% 22%,#000 25%,transparent 100%)!important;opacity:.8}}

/* the line of years: 2019 to the end of 2026, the degrees as brass bars along it, the certificate's date as a ring */
#about .creds{margin-top:76px;container-type:inline-size}
#about .creds-axis{position:relative;height:62px}
#about .creds-line{position:absolute;left:0;right:0;top:34px;height:1px;background:var(--hair)}
#about .creds-years{position:absolute;left:0;right:0;top:42px;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));margin:0;padding:0;list-style:none}
#about .creds-years li{position:relative;padding-left:7px;font:500 11px/1 var(--mono);color:var(--muted)}
#about .creds-years li::before{content:"";position:absolute;left:0;top:-12px;width:1px;height:12px;background:var(--hair)}
#about .creds-bar{position:absolute;top:31px;height:7px;left:calc(var(--from) / 8 * 100%);width:calc((var(--to) - var(--from)) / 8 * 100% - 4px);border-radius:4px;background:var(--brass);transform-origin:0 50%;transition:transform 1.3s var(--ease) var(--d,0s),background-color .3s}
#about .creds-bar b,#about .creds-mark b{position:absolute;bottom:14px;font:600 12px/1 var(--mono);color:var(--forest);white-space:nowrap}
#about .creds-bar b{left:0}
#about .creds-mark{position:absolute;top:27px;left:calc(var(--at) / 8 * 100%);width:15px;height:15px;margin-left:-7.5px;box-sizing:border-box;border:2px solid var(--brass);border-radius:50%;background:#fff;transition:transform .7s var(--ease) var(--d,0s),background-color .3s}
#about .creds-mark b{right:-2px}
#about .creds-bar.is-hot{background:var(--forest)}
#about .creds-mark.is-hot{background:var(--brass)}

/* the cards: the credential in large letters, as the Work page sets its words, the details under it */
#about .creds-group .eyebrow{margin-bottom:12px}
#about .creds-edu{margin-top:22px}
#about .creds-cert{margin-top:30px}
#about .creds-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#about .creds-cert .creds-cards{grid-template-columns:minmax(0,1fr)}
#about .cred{position:relative;display:flex;flex-direction:column;min-height:340px;box-sizing:border-box;padding:24px 26px 26px;border:1px solid var(--hair);overflow:hidden;transition:transform .45s var(--ease),box-shadow .45s var(--ease),background-color .3s}
#about .cred::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--brass);transform-origin:0 50%;transition:transform .9s var(--ease)}
#about .cred:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(31,59,45,.12)}
#about .cred-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
#about .cred-when{padding-top:2px;font:500 12px/1.2 var(--mono);color:var(--brass-text)}
/* the letters follow the width of the row, so "BPharm" always fits its card */
#about .cred-big{margin:auto 0 0;padding-top:22px;font-family:var(--sans);font-weight:800;font-size:clamp(64px,7.4vw,108px);font-size:min(112px,calc(10cqi - 22px));line-height:.8;letter-spacing:-.06em;white-space:nowrap;color:var(--forest);translate:calc(var(--px,0) * -12px) calc(var(--py,0) * -6px);transition:translate .6s var(--ease)}
#about .cred-name{margin:16px 0 0;font:600 19px/1.25 var(--sans);letter-spacing:-.01em;color:var(--forest)}
#about .cred-org{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:12px;font-size:14px;line-height:1.35;color:var(--muted)}
#about .cred-org img{flex:none;height:46px;width:auto;max-width:150px;object-fit:contain;translate:calc(var(--px,0) * 9px) calc(var(--py,0) * 6px);transition:translate .6s var(--ease)}
#about .cred-org span{flex:1 1 170px;text-wrap:balance}
/* the honours seal, in the card's top corner; it turns while the card is hovered */
#about .cred-seal{flex:none;width:108px;height:108px;margin:-8px -10px 0 0;color:var(--brass);overflow:visible;translate:calc(var(--px,0) * 14px) calc(var(--py,0) * 10px);transition:translate .6s var(--ease)}
#about .seal-edge{fill:none;stroke:currentColor;stroke-width:1}
#about .seal-text{font:600 9.5px var(--mono);fill:currentColor}
#about .seal-year{font:700 21px var(--sans);letter-spacing:-.02em;fill:var(--forest)}
#about .seal-spin{transform-origin:60px 60px;animation:spin 28s linear infinite;animation-play-state:paused}
#about .cred:hover .seal-spin{animation-play-state:running}
/* the certificate: one band under the degrees, its letters at the left, the issuer beside them, the date at the right */
@media (min-width:700px){
  #about .creds .cred-cert{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"big name" "big org";align-items:end;column-gap:clamp(28px,4vw,64px);min-height:0;padding:26px 30px 24px}
  #about .creds .cred-cert .cred-head{grid-area:head;align-self:start}
  #about .creds .cred-cert .cred-big{grid-area:big;margin:0;padding:0}
  #about .creds .cred-cert .cred-name{grid-area:name;margin:0}
  #about .creds .cred-cert .cred-org{grid-area:org;margin-top:10px}
  #about .creds .cred-cert .cred-org img{height:40px;max-width:200px}
}

/* the research profile: three open panels on the page. The software and the societies by their logos, each leading to its
   organisation; the methods as small diagrams drawn in forest and brass */
#about .about-profile{margin-top:84px}
#about .rp-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin-top:14px}
#about .rp-panel{position:relative;box-sizing:border-box;padding:24px 26px 26px;border:1px solid var(--hair)}
#about .rp-soft{grid-column:span 4}
#about .rp-main{grid-column:span 8}
#about .rp-wide{grid-column:1 / -1}
#about .rp-title{margin:0;font:500 12px/1.4 var(--mono);letter-spacing:.01em;color:var(--muted)}
#about .rp-logos{display:grid;gap:12px;margin-top:18px}
#about .rp-logos-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#about .rp-logos-4{grid-template-columns:repeat(4,minmax(0,1fr))}
/* a logo cell: the mark large and centred, the name or the standing under it; on hover it lifts, a brass rule draws along
   its foot and an arrow shows that it leads out */
#about .rp-logo{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:164px;box-sizing:border-box;padding:22px 16px 18px;border:1px solid var(--hair);color:var(--forest);text-align:center;text-decoration:none;transition:transform .45s var(--ease),box-shadow .45s var(--ease),border-color .3s}
#about .rp-logo::before{content:"";position:absolute;left:-1px;right:-1px;bottom:-1px;height:2px;background:var(--brass);transform:scaleX(0);transform-origin:0 50%;transition:transform .55s var(--ease)}
#about .rp-logo::after{content:"↗";position:absolute;top:10px;right:12px;font:500 13px/1 var(--mono);color:var(--brass-text);opacity:0;transform:translate(-4px,4px);transition:opacity .3s,transform .4s var(--ease)}
#about .rp-logo:hover,#about .rp-logo:focus-visible{transform:translateY(-4px);border-color:rgba(180,138,58,.55);box-shadow:0 16px 34px rgba(31,59,45,.12)}
#about .rp-logo:hover::before,#about .rp-logo:focus-visible::before{transform:none}
#about .rp-logo:hover::after,#about .rp-logo:focus-visible::after{opacity:1;transform:none}
#about .rp-logo:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
#about .rp-mark{display:flex;align-items:center;justify-content:center;gap:12px;min-height:66px}
#about .rp-mark img{display:block;height:64px;width:auto;max-width:100%;object-fit:contain;transition:transform .5s var(--ease)}
#about .rp-logo:hover .rp-mark img{transform:scale(1.06)}
#about .rp-logo-word .rp-mark img{height:58px}
#about .rp-mark .rp-round{border-radius:50%}
#about .rp-mark b{font:600 17px/1.2 var(--sans);letter-spacing:-.01em;text-align:left}
#about .rp-logo > b{font:600 16px/1.2 var(--sans);letter-spacing:-.01em}
#about .rp-logo i{font:500 11px/1.3 var(--mono);font-style:normal;color:var(--muted);text-wrap:balance}
/* the methods: one diagram each (a trial's two arms from time zero, two survival curves, a causal diagram); a brass pulse
   runs along each once it has drawn, and again on hover */
#about .rp-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}
#about .rp-method{display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:8px 22px 4px;border-left:1px solid var(--hair)}
#about .rp-method:first-child{padding-left:0;border-left:0}
#about .rp-method:last-child{padding-right:0}
#about .rp-method b{font:600 18px/1.25 var(--sans);letter-spacing:-.01em;color:var(--forest)}
#about .rp-diagram{display:block;width:100%;max-width:250px;height:auto;overflow:visible}
#about .rp-diagram path,#about .rp-diagram circle{fill:none;stroke-linecap:round;stroke-linejoin:round}
#about .rp-diagram .d-ink{stroke:var(--forest);stroke-width:1.8}
#about .rp-diagram .d-brass{stroke:var(--brass);stroke-width:2.4}
#about .rp-diagram .d-hair{stroke:rgba(31,59,45,.35);stroke-width:1.2}
#about .rp-diagram .d-dash{stroke-dasharray:3 5}
#about .rp-diagram .d-dot{fill:var(--forest);stroke:none}
#about .rp-diagram .d-node{fill:#fff;stroke:var(--forest);stroke-width:1.8}
#about .rp-diagram .d-node-b{stroke:var(--brass)}
#about .rp-diagram text{font:500 9px var(--mono);letter-spacing:.02em;fill:var(--muted)}
#about .rp-diagram .d-letter{font:600 11px var(--mono);fill:var(--forest);text-anchor:middle;dominant-baseline:central}
#about .rp-diagram .d-pulse{stroke:var(--brass);stroke-width:3.4;stroke-dasharray:.08 1.2;stroke-dashoffset:.1;opacity:0;filter:drop-shadow(0 0 3px rgba(180,138,58,.6))}
#about .rp-method.is-pulsing .d-pulse{animation:d-pulse 1.6s cubic-bezier(.45,.05,.35,1) forwards}
#about .rp-method.is-pulsing .d-pulse + .d-pulse{animation-delay:.14s}
@keyframes d-pulse{0%{stroke-dashoffset:.1;opacity:1}86%{opacity:1}100%{stroke-dashoffset:-1.02;opacity:0}}
/* a tile tips toward the pointer (moves.js writes --rx/--ry and the glint's --gx/--gy); its logo stands off the face */
.ptile{position:relative;display:inline-flex;align-items:center;gap:16px;min-height:86px;box-sizing:border-box;padding:14px 24px 14px 16px;border:1px solid var(--hair);background:#fff;color:var(--forest);text-decoration:none;transform:perspective(640px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transform-style:preserve-3d;transition:transform .7s var(--ease),border-color .25s,box-shadow .35s var(--ease)}
.ptile:hover{border-color:var(--brass);box-shadow:0 16px 34px rgba(31,59,45,.13);transition:transform .14s linear,border-color .25s,box-shadow .35s var(--ease)}
.ptile::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(200px circle at var(--gx,50%) var(--gy,50%),rgba(180,138,58,.16),transparent 70%);opacity:0;transform:translateZ(30px);transition:opacity .35s}
.ptile:hover::after{opacity:1}
.ptile-art{display:flex;align-items:center;justify-content:center;flex:none;transform:translateZ(24px)}
.ptile-art img{display:block;height:52px;width:auto;max-width:120px;object-fit:contain}
.ptile-logo{padding:14px 22px}
.ptile-logo .ptile-art img{height:56px;max-width:228px}
.ptile-art .ptile-round{border-radius:50%}
.ptile b{font:600 16px/1.2 var(--sans);letter-spacing:-.01em;transform:translateZ(12px)}
a.ptile:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
/* the method icons: a trial's two arms from time zero, two survival curves, a causal diagram */
.mglyph{display:block;width:64px;height:44px;overflow:visible}
.mglyph path,.mglyph circle{fill:none;stroke-linecap:round;stroke-linejoin:round}
.mglyph .mg-ink{stroke:var(--forest);stroke-width:1.7}
.mglyph .mg-brass{stroke:var(--brass);stroke-width:2.2}
.mglyph .mg-hair{stroke:rgba(31,59,45,.35);stroke-width:1.2}
.mglyph .mg-node{fill:#fff;stroke:var(--forest);stroke-width:1.7}
.mglyph .mg-node-b{fill:#fbf3e3;stroke:var(--brass)}

/* motion, only once moves.js has marked the section (never under reduced motion or the calm setting) */
@keyframes cred-stamp{0%{opacity:0;transform:scale(1.8) rotate(-24deg)}55%{opacity:1;transform:scale(.93) rotate(4deg)}78%{transform:scale(1.03) rotate(-1deg)}100%{opacity:1;transform:none}}
@keyframes cred-press{0%{opacity:0;transform:scale(1.35);filter:blur(5px)}100%{opacity:1;transform:none;filter:none}}
@keyframes tile-in{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
#about.anim .creds-bar{transform:scaleX(0)}
#about.anim .creds-mark{transform:scale(0)}
#about.anim .creds.is-in .creds-bar,#about.anim .creds.is-in .creds-mark{transform:none}
#about.anim .cred::before{transform:scaleX(0)}
#about.anim .cred.is-lit::before{transform:none}
#about.anim .cred-seal,#about.anim .cred-org img{opacity:0}
#about.anim .cred.is-lit .cred-seal{animation:cred-stamp .8s cubic-bezier(.2,.8,.25,1) .25s both}
#about.anim .cred.is-lit .cred-org img{animation:cred-press .7s var(--ease) .5s both}
#about.anim .about-profile .rp-panel{opacity:0}
#about.anim .about-profile.is-in .rp-panel{animation:tile-in .9s var(--ease) calc(var(--p,0) * 120ms) both}
#about.anim .about-profile .rp-logo{opacity:0}
#about.anim .about-profile.is-in .rp-logo{animation:tile-in .7s var(--ease) calc(var(--i,0) * 70ms + .3s) both}
#about.anim .rp-diagram .d-draw{stroke-dasharray:1;stroke-dashoffset:1}
#about.anim .about-profile.is-in .rp-diagram .d-draw{animation:draw 1.1s var(--ease) calc(var(--m,0) * 160ms + var(--k,0) * 120ms + .5s) forwards}
#about.anim .rp-diagram .d-fade{opacity:0;transition:opacity .6s var(--ease)}
#about.anim .about-profile.is-in .rp-diagram .d-fade{opacity:1;transition-delay:calc(var(--m,0) * 160ms + .45s)}

@media (max-width:1099.98px){
  #about .creds-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  #about .cred{min-height:300px}
  #about .cred-big{font-size:min(112px,calc(15cqi - 22px))}
  #about .cred-seal{width:96px;height:96px}
  #about .rp-soft,#about .rp-main{grid-column:1 / -1}
  #about .rp-logos-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:699.98px){
  html[data-moves] #about .about-prose{margin-top:32px}
  html[data-moves] #about .about-body{margin-top:22px;font-size:16px}
  html[data-moves] #about .about-prose .amb-svg{opacity:.35}
  #about .creds{margin-top:56px}
  #about .creds-years li{padding-left:4px;font-size:10px}
  #about .creds-years li:nth-child(even){color:transparent}
  #about .creds-cards{grid-template-columns:minmax(0,1fr);gap:12px}
  #about .creds-cert{margin-top:26px}
  #about .cred{min-height:0;padding:20px 20px 22px}
  #about .cred-big{padding-top:14px;font-size:min(104px,calc(28cqi - 14px))}
  #about .cred-seal{width:80px;height:80px;margin:-6px -6px 0 0}
  #about .cred-org img{height:40px;max-width:130px}
  #about .about-profile{margin-top:60px}
  #about .rp-grid{gap:12px}
  #about .rp-panel{padding:20px 18px}
  #about .rp-logo{min-height:136px;padding:18px 12px 14px;gap:12px}
  #about .rp-mark{flex-direction:column;gap:8px;min-height:0}
  #about .rp-mark img{height:52px}
  #about .rp-logo-word .rp-mark img{height:42px}
  #about .rp-mark b{font-size:15px;text-align:center}
  #about .rp-methods{grid-template-columns:minmax(0,1fr)}
  #about .rp-method{padding:18px 0;border-left:0;border-top:1px solid var(--hair)}
  #about .rp-method:first-child{padding-top:4px;border-top:0}
  #about .rp-diagram{max-width:280px}
  .ptile{min-height:70px;padding:10px 16px 10px 12px;gap:12px}
  .ptile-art img{height:42px;max-width:100px}
  .ptile-logo{padding:10px 16px}
  .ptile-logo .ptile-art img{height:44px;max-width:190px}
  .mglyph{width:54px;height:37px}
  .ptile b{font-size:15px}
}
/* the Skills tools row: the same tiles, a size smaller */
.tools .ptile{min-height:66px;padding:10px 18px 10px 12px;gap:12px}
.tools .ptile-art img{height:36px;max-width:170px}
.tools .ptile-logo{padding:10px 18px}
.tools .ptile-logo .ptile-art img{height:34px;max-width:150px}
.tools .mglyph{width:52px;height:36px}
.tools .ptile b{font-size:14px}
/* logos that lead to their organisations' websites (a new tab): a small lift on hover, a brass ring on keyboard focus */
.org-link{color:inherit;text-decoration:none}
.org-link img{transition:transform .3s var(--ease)}
.org-link:hover img{transform:translateY(-2px) scale(1.05)}
.org-link:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
.cred-org > .org-link,.funding-card > .org-link{flex:none;display:block;line-height:0}
.cred-org .org-link img,.funding-card .org-link img{display:block}
.aff-logo > .org-link{display:block;line-height:0}
.tools .ptile-logo .ptile-art img{max-width:210px}
