:root {
  color-scheme: light;
  --ink: #182639;
  --muted: #415269;
  --paper: #fff;
  --wash: #f1f5f7;
  --line: #cedbe2;
  --navy: #101b2c;
  --teal: #0b645f;
  --mint: #a9f0da;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 system-ui, sans-serif; }
a { color: var(--teal); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #158178; outline-offset: 4px; border-radius: .15rem; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; transform: translateY(-200%); background: white; padding: .6rem 1rem; }
.skip:focus { transform: none; }
.shell { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header { background: var(--navy); color: #fff; border-bottom: 1px solid #34475d; }
.nav, .nav ul, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.35rem; }
.nav { justify-content: space-between; padding-block: .7rem; }
.nav ul { padding: 0; margin: 0; list-style: none; }
.nav a { color: inherit; display: inline-block; padding-block: .42rem; text-decoration: none; }
.nav a:hover { color: var(--mint); }
.brand { font-size: 1.1rem; font-weight: 750; }
.hero, .contact, footer { color: #f3f7fa; background: var(--navy); }
.hero { background: radial-gradient(ellipse at 88% 48%, #1e4553 0%, transparent 45%), var(--navy); }
.hero-inner { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); padding-block: clamp(3.7rem, 8vw, 7rem); }
h1,h2,h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(3rem, 8vw, 6.75rem); font-weight: 780; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
p { margin: .9rem 0; color: var(--muted); }
.lede { max-width: 38rem; margin: 1.25rem 0 1.7rem; font-size: clamp(1.12rem, 2vw, 1.32rem); }
.hero p, .contact p, .feature p { color: #d5e2ea; }
.eyebrow, .meta { margin: 0 0 .7rem; font-size: .875rem; letter-spacing: .045em; font-weight: 700; }
.hero .eyebrow, .feature .eyebrow { color: var(--mint); text-transform: uppercase; }
.meta { color: var(--teal); }
.actions { gap: .65rem; }
.button { display: inline-flex; align-items: center; min-height: 2.85rem; font-weight: 700; text-decoration: none; padding: .55rem .95rem; border: 1px solid transparent; border-radius: .4rem; }
.primary { color: #102a29; background: var(--mint); }
.primary:hover { background: #d3f9ed; }
.outline { color: #fff; border-color: #8195a8; }
.outline:hover { background: #293f52; }
.hero-art { display: grid; place-items: center; width: min(100%, 22rem); aspect-ratio: 1; position: relative; justify-self: center; isolation: isolate; overflow: hidden; border-radius: 50%; background: radial-gradient(circle, #2f6367, transparent 69%); }
.hero-art span { color: var(--mint); font-size: clamp(3rem, 8vw, 6rem); font-weight: 740; letter-spacing: -.09em; }
.orbit { position: absolute; width: var(--size); aspect-ratio: 1; border-radius: 50%; border: 1px solid #83d3cd60; transform: rotate(var(--turn)); }
.orbit::after { content: ""; position: absolute; bottom: calc(50% - .25rem); left: -.25rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mint); }
.inner { --size: 52%; --turn: 32deg; }.middle { --size: 73%; --turn: 212deg; }.outer { --size: 94%; --turn: 312deg; }
.section { padding-block: clamp(3rem, 6vw, 5.2rem); }
.split { display: grid; grid-template-columns: 1fr 1.55fr; gap: 1.25rem 3rem; }
.split p:first-child:not(.meta) { margin-top: 0; }
.band { background: var(--wash); }
.honours { display: flex; flex-wrap: wrap; padding: 0; gap: .65rem; list-style: none; }
.honours li { border-radius: .35rem; background: #e7f5f0; color: #22574f; padding: .4rem .7rem; font-weight: 650; }
.timeline { margin-top: 1.6rem; }
.timeline article { display: grid; grid-template-columns: 1fr 1.55fr; gap: .7rem 3rem; border-top: 1px solid var(--line); padding-block: 1.25rem; }
.timeline article p:last-child { margin-bottom: 0; }
.organisation { font-weight: 650; }
.feature { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 1rem; overflow: hidden; margin: 1.6rem 0 1rem; padding: clamp(1.4rem, 4vw, 2.6rem); border-radius: .75rem; color: #fff; background: linear-gradient(116deg,#102334,#164f52); }
.feature h3 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
.feature-mark { color: #b8f5e426; font-size: clamp(4rem, 12vw, 9rem); font-weight: 800; letter-spacing: -.09em; justify-self: center; line-height: 1; }
.cards, .featured-credentials { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.featured-credentials { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 1.6rem 0; }
.cards article, .featured-credentials article { padding: 1.25rem; border: 1px solid var(--line); border-radius: .6rem; }
.cards article p:last-child { margin-bottom: 0; }
.featured-credentials article { background: var(--wash); }
.work-link { margin-bottom: 0; font-weight: 700; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: .9rem .25rem; font-weight: 700; }
summary:hover { color: var(--teal); }
.credential-list { padding-left: 1.7rem; margin: 0 0 1rem; }
.credential-list li { padding-bottom: .55rem; }
.credential-list span { display: block; color: var(--muted); font-size: .9rem; }
.communities { margin: 0 0 1rem; padding-left: 1.15rem; }
.communities li { margin-bottom: .4rem; }
footer { border-top: 1px solid #34475d; padding-block: 1rem; font-size: .9rem; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.25rem; }
footer a { color: var(--mint); }
@media (max-width: 46rem) {
  .shell { width: calc(100% - 2rem); }
  .nav { gap: .15rem .85rem; }
  .nav ul { gap: 0 1rem; font-size: .9rem; }
  .hero-inner, .split, .timeline article, .feature { grid-template-columns: minmax(0,1fr); }
  .hero-art, .feature-mark { display: none; }
  .timeline article > p { margin-top: 0; }
  .featured-credentials { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 34rem) { .cards { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.case-grid { margin-top: 1.5rem; }
.more-work { margin-top: 3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reading { max-width: 48rem; }
.reading header { margin: 1.5rem 0; }
.reading h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.reading section { margin-top: 1.55rem; }
.reading h2 { font-size: 1.35rem; }
.resume button { margin-left: .65rem; padding: .5rem .8rem; border: 1px solid var(--teal); border-radius: .35rem; background: white; color: var(--teal); font: inherit; cursor: pointer; }
.resume li { margin-bottom: .25rem; }
@media print {
  .print-hide { display: none; }
  .resume { width: 100%; padding: 0; font-size: 10pt; line-height: 1.3; }
  .resume header, .resume section { margin-top: .55rem; margin-bottom: .35rem; }
  .resume h1 { font-size: 23pt; }
  .resume h2 { font-size: 12pt; break-after: avoid; }
  .resume p, .resume ul { margin: .25rem 0; }
  .resume p, .resume a { color: #000; }
}

/* Shared portfolio typography, colours and spacing. */
:root {
  --ink: #202b36;
  --muted: #4d5c6c;
  --wash: #eff6fb;
  --line: #d5e1ea;
  --teal: #075d91;
  --page-width: 1160px;
  --page-inset: clamp(1rem, 4vw, 1.5rem);
  --page-title-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --section-title-size: clamp(1.4rem, 1rem + 2vw, 2.25rem);
}
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.shell { width: min(var(--page-width), calc(100% - 2 * var(--page-inset))); }
.site-header { background: white; color: var(--teal); border-top: .25rem solid var(--teal); border-bottom-color: var(--line); }
.nav { gap: .25rem 1.5rem; padding-block: .6rem; }
.nav .brand { font-size: 1rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--teal); font-size: .9rem; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current] { box-shadow: inset 0 -2px var(--teal); }
.menu-toggle { display: none; }
h1, h2, h3 { color: var(--teal); letter-spacing: -.025em; }
h1, .reading h1 { font-size: var(--page-title-size); font-weight: 650; }
h2 { font-size: var(--section-title-size); font-weight: 650; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); }
.hero, .contact, footer { color: var(--ink); background: white; }
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: clamp(2rem, 5.5vw, 4.5rem); }
.hero .specialty { color: var(--ink); font-size: clamp(1.15rem, 2.4vw, 1.65rem); margin: .5rem 0; font-weight: 650; }
.hero .lede, .contact p, .feature p { color: var(--muted); font-size: 1rem; }
.hero-art { display: grid; width: clamp(8rem, 19vw, 13rem); border-radius: .55rem; border: 1px solid var(--line); background: var(--wash); }
.hero-art span { color: var(--teal); font-size: clamp(2rem, 5vw, 4rem); }
.orbit { border-color: #075d9140; }
.orbit::after { background: var(--teal); }
.section { padding-block: clamp(1.35rem, 3vw, 2.5rem); }
.feature { background: var(--wash); color: var(--ink); border: 1px solid var(--line); border-radius: .55rem; }
.feature .eyebrow { color: var(--teal); }
.feature h3 { font-size: var(--section-title-size); }
.feature-mark { color: #075d9133; }
.cards article, .featured-credentials article { border-radius: .55rem; padding: clamp(1rem, 2vw, 1.3rem); }
.cards h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.button { min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--teal); border-radius: .4rem; font: 650 .9rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.primary { background: var(--teal); color: white; }
.primary:hover { background: #06446a; }
.outline { color: var(--teal); }
.outline:hover { background: var(--wash); }
.honours li { background: var(--wash); color: var(--teal); }
.contact, footer, .explore { border-top: 1px solid var(--line); }
footer a { color: var(--teal); }
.page-intro { max-width: 64ch; }
@media (max-width: 600px) {
  :root { --page-title-size: clamp(2rem, 1.65rem + 1.5vw, 2.25rem); --section-title-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.625rem); }
  .nav { gap: .15rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .85rem; font: inherit; color: var(--teal); background: white; border: 1px solid #72849a; border-radius: .4rem; cursor: pointer; }
  .site-header nav { width: 100%; }
  .menu-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .menu-toggle[aria-expanded="true"] + nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: .9rem; padding-block: 1.4rem; }
  .hero-art { grid-row: 1; justify-self: start; width: 6rem; }
}
@media print {
  .site-header, .skip { display: none !important; }
}

.hero-with-banner {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  padding-block: clamp(1.2rem, 3vw, 2.2rem);
}
.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: .55rem;
}

.header-social { display: flex; align-items: center; order: 2; }
.header-social a { display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border-radius: .4rem; }
.header-social a:hover { background: var(--wash); }
@media (max-width: 600px) {
  .header-social { order: 0; }
  .header-social a { width: 36px; }
}

.social-soon { position: relative; display: inline-grid; place-items: center; width: 44px; min-height: 44px; color: var(--muted); cursor: default; }
.social-tooltip { display: none; position: absolute; z-index: 2; top: 100%; right: 0; white-space: nowrap; padding: .25rem .55rem; border-radius: .35rem; background: var(--ink); color: white; font-size: .875rem; }
.social-soon:hover .social-tooltip, .social-soon:focus .social-tooltip { display: block; }
@media (max-width: 600px) {
  .social-soon, .header-social a { width: clamp(27px, 8vw, 36px); }
}

@media (max-width: 900px) {
  .site-header nav { order: 3; width: 100%; }
}
@media (max-width: 600px) {
  .header-social { order: 2; flex-wrap: wrap; width: 100%; }
  .social-soon, .header-social a { width: 36px; }
  .social-tooltip { right: auto; left: 50%; transform: translateX(-50%); }
  .social-soon:first-of-type .social-tooltip { left: 0; transform: none; }
  .social-soon:last-child .social-tooltip { right: 0; left: auto; transform: none; }
}

/* Homepage backgrounds follow the subject of each section. */
#outreach {
  background: radial-gradient(ellipse at 5% 0%, #cdeee8, transparent 65%), #edf8f6;
  border-block: 1px solid #cfe6e1;
}
#outreach h2, #outreach .meta { color: #145b52; }

section[aria-labelledby="communities-title"] {
  background: linear-gradient(115deg, #e2effb, #f4f8fc 68%);
}
#brand-work {
  background: radial-gradient(ellipse at 86% 5%, #f3dce8, transparent 58%), #fcf1f5;
  border-block: 1px solid #ead8e1;
}
#brand-work h2, #brand-work h3, #brand-work .meta, #brand-work article a:not(.button) { color: #712b50; }
#brand-work .cards article { background: #fff; border-color: #e4ccd9; }
#brand-work .primary { background: #712b50; border-color: #712b50; }
#brand-work .primary:hover { background: #55203d; }

.explore .cards article { background: #f3f7fb; }
#connect {
  background: radial-gradient(ellipse at 90% 0%, #244466, transparent 65%), #14283c;
  border-color: #23405b;
}
#connect h2 { color: #fff; }
#connect p { color: #e1ebf5; }
#connect .primary { color: #14334e; background: #d9ecff; border-color: #d9ecff; }
#connect .primary:hover { background: #fff; }
#connect .outline { color: #f6fbff; border-color: #a3bbd2; }
#connect .outline:hover { background: #284663; }
#connect a:focus-visible { outline-color: #d9ecff; }

@media (min-width: 60rem) {
  #brand-work .cards, .explore .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.section-image-wrap { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.section-image {
  display: block;
  width: 100%;
  height: clamp(9rem, 22vw, 16rem);
  object-fit: cover;
  border-radius: .55rem;
}
.section-image-wrap + .section { padding-top: clamp(1.25rem, 3vw, 2rem); }

.hero-profile {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  list-style: none;
  padding: 0;
  margin: 0 0 .9rem;
}
.hero-profile li {
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--wash);
  color: var(--teal);
  font-size: .9rem;
  font-weight: 650;
}

.experience-banner {
  display: grid;
  align-items: center;
  min-height: clamp(9rem, 18vw, 14rem);
  padding-block: 1.5rem;
  background: linear-gradient(90deg, #101f35f5, #101f35d9 58%, #101f35cc), #14283c url("images/experience.webp") center / cover no-repeat;
}
.experience-banner h2 { color: white; }
.experience-body .timeline { margin-top: 0; }
.experience-body .timeline article:first-child { border-top: 0; }

.experience-banner, .section-banner {
  box-sizing: border-box;
  aspect-ratio: 10 / 1;
  min-height: 5.5rem;
  padding-block: .9rem;
}
.section-banner {
  display: flex;
  align-items: center;
  padding-inline: clamp(1rem, 3vw, 2rem);
  border-radius: .55rem;
  background: linear-gradient(90deg, #101f35f5, #101f35d9 58%, #101f35cc), #14283c var(--section-photo) center / cover no-repeat;
}
.section-banner h2 { color: white; margin: 0; }
.banner-credentials { --section-photo: url("images/credentials.webp"); }
.banner-cases { --section-photo: url("images/cases.webp"); }
.banner-work { --section-photo: url("images/work.webp"); margin-top: 3rem; }
.banner-tools { --section-photo: url("images/tools.webp"); }

.atlas-feature {
  grid-template-columns: minmax(0, 1fr);
  color: #fff;
  border-color: #284968;
  background: linear-gradient(100deg, #111d38f5 18%, #17365ce8 66%, #102940db), #14283c url("images/atlas.webp") right center / cover no-repeat;
}
.atlas-feature h2, .atlas-feature h3 { color: #fff; }
.atlas-feature p { max-width: 65ch; color: #e0edfa; }
.atlas-feature .eyebrow { color: #a8f2e4; }
.atlas-feature .atlas-snapshot-label { margin: 1.2rem 0 .5rem; font-size: .9rem; font-weight: 650; }
.atlas-stats, .atlas-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0;
  margin: 0 0 .75rem;
  list-style: none;
}
.atlas-stats li, .atlas-categories li {
  padding: .35rem .65rem;
  background: #142743eb;
  border: 1px solid #8fb5cf83;
  border-radius: .4rem;
  font-size: .875rem;
}
.atlas-stats li { padding: .55rem .75rem; }
.atlas-stats strong { color: #a8f2e4; font-size: 1.1rem; }
.atlas-feature .primary { margin-top: .2rem; color: #102a29; background: #a8f2e4; border-color: #a8f2e4; }
.atlas-feature .primary:hover { background: #d7fcf4; }
.atlas-feature .primary:focus-visible { outline-color: #a8f2e4; }

@media (min-width: 60rem) {
  .explore .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.alerts-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .85rem 0; }
.alerts-toolbar [aria-pressed="true"] { background: var(--teal); color: white; }
#alert-feed button, #alert-admin button { margin: .25rem; }
#alert-admin .alert-editor { display: grid; gap: .7rem; padding: 1rem; margin: 1rem 0; border: 1px solid var(--line); border-radius: .55rem; }
.alert-editor label { display: grid; gap: .25rem; }
.alert-editor input, .alert-editor textarea, .alert-editor select { font: inherit; width: 100%; padding: .4rem; border: 1px solid var(--muted); border-radius: .35rem; }
.alert-count { margin-left: .25rem; padding: 0 .32rem; color: white; background: var(--teal); border-radius: .5rem; }
.alert-popup { position: fixed; z-index: 4; right: 1rem; bottom: 1rem; width: min(24rem, calc(100% - 2rem)); padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; background: white; box-shadow: 0 6px 35px #10243e33; }
.alert-popup button { margin-left: .75rem; font: inherit; color: var(--teal); background: var(--wash); border: 1px solid var(--line); border-radius: .35rem; padding: .3rem .5rem; }

.outline { border-color: #72849a; }
#connect .outline { border-color: #a3bbd2; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
#alert-sources, #admin-history, .reading { overflow-wrap: anywhere; }
@media (max-width: 36rem) {
  .nav :is(.menu-toggle, .header-social a) { min-height: 2.75rem; }
  .nav .header-social a { min-width: 2.75rem; }
}

#study-access [hidden] { display: none; }
#study-access { scroll-margin-top: 1rem; }
