:root {
  --ink: #17292e;
  --deep: #10292a;
  --deep-2: #183c3b;
  --teal: #1b7777;
  --aqua: #a5ded3;
  --orange: #c85c3d;
  --paper: #f3f7f5;
  --pale: #e4efeb;
  --line: #bfd1ca;
  --muted: #557075;
  --white: #ffffff;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  padding: 10px 14px;
  color: var(--white);
  background: var(--orange);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  color: var(--white);
  background: rgba(16, 41, 42, 0.94);
  border-bottom: 1px solid rgba(165, 222, 211, 0.28);
}

.wordmark {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a {
  color: #d8ebe6;
  font-size: 13px;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--white);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(165, 222, 211, 0.5);
  border-radius: 4px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  overflow: hidden;
  background: var(--deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.56;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 27, 0.68);
}

.hero-grid {
  display: none;
}

.hero-content,
.hero-methods {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 160px 0 104px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--aqua);
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.03;
}

h1 {
  max-width: 780px;
  font-size: 72px;
}

h2 {
  font-size: 46px;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

h1,
h2,
h3,
p,
li,
a {
  overflow-wrap: break-word;
}

.hero-summary {
  max-width: 590px;
  margin: 22px 0 0;
  color: #d9e9e5;
  font-size: 18px;
}

.video-control {
  display: grid;
  width: 44px;
  height: 44px;
  margin-top: 28px;
  place-items: center;
  color: var(--white);
  background: rgba(16, 41, 42, 0.84);
  border: 1px solid var(--aqua);
  border-radius: 50%;
  cursor: pointer;
}

.video-control:hover {
  background: var(--teal);
}

.hero-methods {
  position: absolute;
  right: 0;
  bottom: 42px;
  left: 0;
  z-index: 1;
  width: min(var(--content), calc(100% - 48px));
  max-width: 1180px;
  padding-left: calc(100% - 200px);
  color: #c6deda;
  font-size: 11px;
  line-height: 1.7;
  text-transform: uppercase;
}

.section {
  padding: 108px max(24px, calc((100vw - var(--content)) / 2));
  scroll-margin-top: 66px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-card {
  min-height: 228px;
  padding: 28px 38px 28px 0;
}

.timeline-card + .timeline-card {
  padding-right: 0;
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.timeline-period {
  margin: 0 0 48px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.timeline-period span {
  color: var(--muted);
}

.timeline-card h3 {
  margin-bottom: 10px;
}

.timeline-card p:last-child {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
}

.doctoral,
.outputs {
  background: var(--pale);
}

.doctoral-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 16px;
}

.doctoral-grid figure,
.postdoctoral-layout figure,
.comparison-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--white);
}

.doctoral-grid img,
.postdoctoral-layout img,
.comparison-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctoral-grid .feature-figure {
  grid-row: span 2;
  min-height: 460px;
}

.doctoral-grid .feature-figure img {
  object-position: center;
}

.doctoral-grid figure:not(.feature-figure) img {
  object-fit: contain;
  padding: 14px;
}

figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 84%;
  padding: 9px 12px;
  color: var(--white);
  background: rgba(16, 41, 42, 0.9);
  font-size: 12px;
}

.doctoral-copy {
  padding: 28px;
  background: var(--white);
}

.doctoral-copy h3 {
  margin-bottom: 18px;
}

.theme-list,
.method-list,
.education-list,
.capability-list,
.technical-list,
.patent-list {
  padding-left: 20px;
  margin: 0;
}

.theme-list,
.method-list {
  color: var(--muted);
  font-size: 14px;
}

.theme-list li + li,
.method-list li + li,
.education-list li + li,
.capability-list li + li,
.technical-list li + li,
.patent-list li + li {
  margin-top: 11px;
}

.text-link {
  display: block;
  margin-top: 24px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.source-title,
.text-link-action {
  display: block;
}

.source-title {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.text-link-action {
  margin-top: 11px;
}

.comparison-figure {
  width: min(790px, 100%);
  min-height: 250px;
  margin: 16px 0 0 auto;
}

.comparison-figure img {
  object-fit: contain;
  padding: 14px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}

.focus-card {
  min-height: 212px;
  padding: 22px 22px 26px;
  background: var(--white);
  border-top: 3px solid var(--teal);
}

.focus-card:nth-child(2) {
  border-color: var(--orange);
}

.focus-card:nth-child(3) {
  border-color: #4a9e99;
}

.focus-card > span {
  display: block;
  margin-bottom: 42px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.focus-card h3 {
  margin-bottom: 10px;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.postdoctoral-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.postdoc-intro {
  padding: 28px;
  background: var(--deep);
  border-top: 3px solid var(--orange);
  color: var(--white);
}

.postdoc-intro .eyebrow {
  color: var(--aqua);
}

.postdoc-intro h3 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.postdoc-intro .method-list {
  color: #d1e4e0;
}

.postdoctoral-layout .water-tunnel {
  grid-row: span 2;
}

.postdoctoral-layout figure:last-child {
  grid-column: span 2;
}

.postdoctoral-layout figure:last-child img {
  object-fit: cover;
  object-position: center;
}

.outputs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 56px;
}

.list-heading {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.publication {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.publication-year {
  margin: 0;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.publication h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.publication p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.publication a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.outputs aside {
  padding: 28px;
  background: var(--white);
  border-top: 3px solid var(--orange);
}

.technical-list,
.patent-list {
  color: var(--muted);
  font-size: 14px;
}

.patent-heading {
  margin-top: 30px;
}

.patent-list li {
  padding-left: 3px;
}

.patent-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.background-grid article {
  padding: 30px;
  background: var(--white);
  border-top: 3px solid var(--teal);
}

.background-grid article:last-child {
  border-color: var(--orange);
}

.background-grid h3 {
  margin-bottom: 22px;
}

.education-list,
.capability-list {
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 64px max(24px, calc((100vw - var(--content)) / 2));
  color: var(--white);
  background: var(--deep-2);
}

.site-footer .eyebrow {
  color: var(--aqua);
}

.site-footer h2 {
  max-width: 650px;
  font-size: 38px;
}

.site-footer p:last-child {
  margin: 14px 0 0;
  color: #d2e5e0;
}

.site-footer a {
  display: inline-block;
  padding: 12px 16px;
  color: var(--white);
  border: 1px solid var(--aqua);
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a:hover {
  color: var(--deep);
  background: var(--aqua);
}

@media (max-width: 880px) {
  .site-header {
    min-height: 58px;
    padding: 0 20px;
  }

  .wordmark {
    font-size: 19px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-header nav {
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--deep);
    border-bottom: 1px solid rgba(165, 222, 211, 0.28);
  }

  .site-header.nav-open nav {
    display: flex;
  }

  .site-header nav a {
    font-size: 15px;
  }

  .hero {
    min-height: 700px;
  }

  h1 {
    font-size: 54px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .postdoctoral-layout {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  }

  .postdoctoral-layout figure:last-child {
    grid-column: span 1;
  }

  .outputs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 660px;
  }

  .hero-content,
  .hero-methods {
    width: calc(100% - 40px);
  }

  .hero-content {
    padding: 120px 0 146px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-methods {
    bottom: 28px;
    padding-left: 0;
    font-size: 10px;
  }

  .section {
    padding: 74px 20px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading > p {
    font-size: 15px;
  }

  .timeline,
  .doctoral-grid,
  .focus-grid,
  .postdoctoral-layout,
  .background-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card,
  .timeline-card + .timeline-card {
    min-height: 0;
    padding: 26px 0;
    border-left: 0;
  }

  .timeline-card + .timeline-card {
    border-top: 1px solid var(--line);
  }

  .timeline-period {
    margin-bottom: 22px;
  }

  .doctoral-grid {
    grid-template-rows: none;
  }

  .doctoral-grid .feature-figure {
    grid-row: auto;
    min-height: 330px;
  }

  .doctoral-grid figure:not(.feature-figure) {
    min-height: 220px;
  }

  .comparison-figure {
    min-height: 220px;
    margin-top: 16px;
  }

  .focus-grid {
    gap: 12px;
    margin-bottom: 40px;
  }

  .focus-card {
    min-height: 0;
  }

  .focus-card > span {
    margin-bottom: 26px;
  }

  .postdoctoral-layout {
    grid-template-rows: none;
  }

  .postdoctoral-layout .water-tunnel,
  .postdoctoral-layout figure:last-child {
    grid-row: auto;
    grid-column: auto;
  }

  .postdoctoral-layout figure {
    min-height: 220px;
  }

  .publication {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .publication a {
    grid-column: 2;
  }

  .outputs aside,
  .background-grid article,
  .doctoral-copy,
  .postdoc-intro {
    padding: 24px;
  }

  .site-footer {
    display: block;
    padding: 54px 20px;
  }

  .site-footer h2 {
    font-size: 32px;
  }

  .site-footer a {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }

  .hero {
    background: url("assets/pool-hero.jpg") center / cover no-repeat;
  }

  .video-control {
    display: none;
  }
}
