:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #25272b;
  --muted: #595b5e;
  --accent: #8c4844;
  --rule: #deded6;
  --section-underline: inset(calc(100% - 4px) 0 1px round 2px);
  --text-size: 1.1875rem;
  --small-text: .9375rem;
  --label-size: .8125rem;
  --paragraph-gap: 1.375rem;
  --section-gap: 3.5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--text-size); line-height: 1.65; -webkit-font-smoothing: antialiased; isolation: isolate; }
.gp-background { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .95; -webkit-mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 85%) 10%, rgb(0 0 0 / 18%) 29%, rgb(0 0 0 / 18%) 71%, rgb(0 0 0 / 85%) 90%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 85%) 10%, rgb(0 0 0 / 18%) 29%, rgb(0 0 0 / 18%) 71%, rgb(0 0 0 / 85%) 90%, #000 100%); }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #5f2e2b; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.accent { color: var(--accent); }
.site-header { background: #fffefa; border-bottom: 1px solid var(--rule); }
.header-inner { max-width: 1120px; margin: auto; min-height: 90px; padding: 16px 36px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-name { font-size: 1.75rem; color: var(--ink); font-weight: 650; text-decoration: none; letter-spacing: -.025em; }
#site-nav {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  border-radius: 10px;
  background: #f5eeeb;
  box-shadow: inset 0 0 0 1px rgb(140 72 68 / 10%);
}
#site-nav a {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 5px;
  color: #28232a;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
#site-nav a:hover { background: #eee2df; }
#site-nav a[aria-current="page"] { color: #783834; }
#site-nav a:focus-visible { outline-offset: 1px; }
#site-nav a[aria-current="page"]::after, #site-nav .section-pill {
  position: absolute;
  pointer-events: none;
  background: var(--accent);
  clip-path: var(--section-underline);
}
#site-nav a[aria-current="page"]::after { content: ""; inset: 0; }
#site-nav .section-pill {
  display: none;
  top: 0;
  left: 0;
  z-index: 1;
}
#site-nav.is-sliding .section-pill { display: block; }
#site-nav.is-sliding a[aria-current="page"]::after { content: none; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  #site-nav.has-page-transitions a[aria-current="page"]::after { content: none; }
  #site-nav.has-page-transitions .section-pill { display: block; inset: 0; view-transition-name: section-pill; }

  ::view-transition-group(*) { animation-duration: 320ms; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-timing-function: ease-in-out; }

  /* Move the underline with the link bounds, independently of the page fade. */
  ::view-transition-group(section-pill) {
    z-index: 1;
    background: var(--accent);
    clip-path: var(--section-underline);
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  }
  ::view-transition-old(section-pill), ::view-transition-new(section-pill) { display: none; }
}
main { width: min(100% - 64px, 800px); min-height: calc(100vh - 218px); margin: 0 auto; padding: 64px 0 76px; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: var(--label-size); font-weight: 600; letter-spacing: .105em; }
h1, h2 { text-wrap: balance; }
h1 { margin: 0 0 1.75rem; font-size: clamp(2.5rem, 2.1rem + 2vw, 3.375rem); letter-spacing: -.035em; line-height: 1.1; font-weight: 650; }
h2 { margin: 0; font-size: clamp(1.625rem, 1.45rem + .7vw, 2rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 650; }
h3 { margin: .35rem 0 .65rem; font-size: 1.375rem; font-weight: 650; line-height: 1.32; letter-spacing: -.015em; }
p { margin: 0 0 var(--paragraph-gap); }
.profile-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 30px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 13px; border: 1px solid #c7c6be; border-radius: 4px; color: #414342; font-size: var(--small-text); line-height: 1.35; font-weight: 500; text-decoration: none; background: #fffefa; }
.button:hover { border-color: var(--accent); background: #f6eeea; }
.button svg { width: 15px; height: 15px; fill: currentColor; }
.button span { color: var(--muted); margin-left: 4px; }
.lead { margin-bottom: 12px; font-size: 1.625rem; line-height: 1.3; letter-spacing: -.02em; }
.bio { max-width: 68ch; }
.profile-intro { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 48px; margin-bottom: 36px; }
.intro-copy .lead { margin-bottom: 0; }
.profile-portrait { aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #dce3e6; }
.profile-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.2); }
.research-photo { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 36px; margin: 28px 0; }
.research-photo > img { display: block; width: 100%; height: auto; border-radius: 6px; }
.research-photo > .conference-portrait { aspect-ratio: 3 / 4; object-fit: cover; object-position: left center; filter: url(#aiuk-shadow-lift); }
.photo-title { font-size: 1.5rem; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.tennis-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; margin-top: 28px; align-items: center; }
.tennis-gallery { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 16px; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: 6px; }
.tennis-gallery::-webkit-scrollbar { display: none; }
.tennis-gallery figure { flex: 0 0 100%; margin: 0; min-width: 0; scroll-snap-align: start; }
.tennis-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 520px; object-fit: contain; border-radius: 6px; }
.tennis-crop { position: relative; overflow: hidden; width: min(100%, var(--frame-width)); aspect-ratio: var(--crop-ratio); margin-inline: auto; border-radius: 6px; }
.tennis-crop img { position: absolute; width: var(--image-width); height: var(--image-height); max-height: none; max-width: none; left: var(--image-left); top: var(--image-top); aspect-ratio: auto; object-fit: fill; border-radius: 0; }
.gallery-controls { display: contents; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button { grid-row: 1; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 1px solid #deddd6; border-radius: 50%; background: #fffefa; color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / 6%); transition: background-color .15s, border-color .15s, color .15s; }
.gallery-controls button span { display: block; font-size: 32px; line-height: 1; margin: -3px 0 0; color: inherit; }
.gallery-controls button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); background: #f6eeea; }
#previous-photo { grid-column: 1; }
#next-photo { grid-column: 3; }
#photo-count { grid-column: 2; grid-row: 2; text-align: center; font-size: var(--small-text); color: var(--muted); }
.gallery-controls button:disabled { opacity: .28; cursor: default; box-shadow: none; background: transparent; }
.tennis-gallery:focus-visible, .gallery-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tennis-gallery figcaption { margin-top: 10px; color: var(--muted); font-size: var(--small-text); }
.photo-caption { color: var(--muted); font-size: 1.0625rem; margin-bottom: 0; }
.event-photo { margin: 28px 0 0; }
.event-photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.event-photo figcaption { margin-top: 18px; }
.placeholder { color: #74736f; }
section { margin-top: var(--section-gap); }
section > h2, .section-heading { padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-note { color: var(--muted); font-size: var(--label-size); letter-spacing: .08em; }
.interest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.interest-grid li { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--rule); border-radius: 6px; background: #fffefa; font-size: 1.0625rem; line-height: 1.5; }
.interest-grid li::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.news-row { display: grid; grid-template-columns: 104px 1fr; gap: 20px; padding: 14px 0; }
.news-row > :first-child { font-size: var(--small-text); padding-top: 3px; font-variant-numeric: tabular-nums; color: var(--muted); }
.news-row p { margin: 0; }
.page-intro { max-width: 65ch; }
.simple-list { padding-left: 22px; }
.simple-list li { padding-bottom: 8px; }
.entry { padding: 4px 0 30px; }
.entry p { margin-bottom: .75rem; }
.entry-meta { color: var(--muted); font-size: var(--label-size); letter-spacing: .075em; font-weight: 600; }
.entry-description { margin-top: .75rem; }
.timeline-entry { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 8px 0 20px; }
.timeline-entry > .entry-meta { padding-top: 9px; }
.timeline-entry p { margin-bottom: 6px; }
.text-link { font-size: 1.0625rem; }
.contact-list { border-top: 1px solid var(--rule); }
.contact-row { display: grid; grid-template-columns: 140px 1fr; gap: 20px; border-bottom: 1px solid var(--rule); padding: 24px 0; }
.contact-row h2 { font-size: 1.0625rem; letter-spacing: 0; padding-top: 4px; }
.contact-row span, .contact-row a { overflow-wrap: anywhere; }
.site-footer { width: min(100% - 64px, 800px); margin: 0 auto; border-top: 1px solid var(--rule); padding: 23px 0 30px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: var(--label-size); }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 8px 16px; background: white; z-index: 2; }
.skip-link:focus { top: 12px; }
/* Content is visible by default; JavaScript enables the scroll enhancement. */
.reveal-word { display: inline-block; }
.reveal-copy a { text-decoration: none; }
.reveal-copy a .reveal-word { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.scroll-reveals .is-revealing {
  opacity: var(--reveal-progress, 1);
  transform: translateY(calc((1 - var(--reveal-progress, 1)) * var(--reveal-lift, 18px)));
}
.scroll-reveals [data-reveal="image"] { --reveal-lift: 32px; }
/* Links and anchor destinations are readable as soon as they receive focus. */
.scroll-reveals .is-revealing:is(:focus-within, :target),
.scroll-reveals :is(.reveal-copy:focus-within, :target) .is-revealing {
  opacity: 1;
  transform: none;
}
@media (max-width: 720px) {
  .gp-background { opacity: .7; }
  .profile-intro { grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; }
  .profile-intro .profile-links { gap: 8px; }
  .research-photo { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .header-inner { flex-direction: column; align-items: flex-start; min-height: 0; gap: 10px; padding: 12px 24px 16px; }
  #site-nav a { padding-inline: clamp(7px, 2.3vw, 17px); font-size: clamp(.875rem, 3.8vw, 1.0625rem); }
  main { width: calc(100% - 48px); padding: 40px 0 55px; }
  :root { --text-size: 1.125rem; --paragraph-gap: 1.25rem; --section-gap: 2.75rem; }
  h3 { font-size: 1.25rem; }
  .news-row { grid-template-columns: 80px 1fr; gap: 12px; }
  .timeline-entry { grid-template-columns: 1fr; gap: 5px; }
  .contact-row { grid-template-columns: 1fr; gap: 7px; }
  .site-footer { width: calc(100% - 48px); }
}
@media (max-width: 560px) {
  .tennis-carousel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tennis-gallery, #photo-count { grid-column: 1; }
  .gallery-controls button { width: 44px; height: 44px; z-index: 1; background: rgb(255 254 250 / 94%); border-color: rgb(255 255 255 / 80%); box-shadow: 0 2px 10px rgb(0 0 0 / 18%); }
  #previous-photo { grid-column: 1; justify-self: start; margin-left: 8px; }
  #next-photo { grid-column: 1; justify-self: end; margin-right: 8px; }
  .interest-grid { grid-template-columns: 1fr; gap: 10px; }
  .profile-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 26px; }
  .profile-intro .profile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile-links .button { justify-content: center; min-height: 44px; }
  .news-row { grid-template-columns: 1fr; gap: 4px; }
  .profile-portrait { width: min(100%, 290px); }
  .research-photo { grid-template-columns: 1fr; gap: 20px; margin: 28px 0; }
  .research-photo > img { width: min(100%, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-reveals .is-revealing { opacity: 1; transform: none; }
}
@media print {
  .scroll-reveals .is-revealing { opacity: 1; transform: none; }
  .site-header, .profile-links, .skip-link, .gp-background { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  main { width: 100%; padding: 0; min-height: 0; }
  .site-footer { width: 100%; }
  a { color: inherit; }
}
