/* Self-hosted typography. No framework or external stylesheet is required. */
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/lato-s6uyw4bmutphjx4wxg.woff2') format('woff2');
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/lato-s6u9w4bmutphh6uvswipgq.woff2') format('woff2');
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/roboto-kfo7cnqeu92fr1me7ksn66agldtyluama3yuba.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --ink: #202a30;
  --muted: #596a72;
  --teal: #397f92;
  --teal-light: #88c5d5;
  --paper: #fff;
  --panel: #24343d;
  --border: #dbe3e6;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.7 Roboto, sans-serif;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, textarea {
  font: inherit;
}
button, a, summary {
  -webkit-tap-highlight-color: transparent;
}
button, summary {
  cursor: pointer;
}
a {
  color: #27677b;
  text-underline-offset: 4px;
}
a, button {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
}
a:hover {
  color: #174759;
}
:focus-visible {
  outline: 3px solid #50a5b5;
  outline-offset: 5px;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: Lato, sans-serif;
  line-height: 1.25;
}
p {
  margin: 0 0 1.2em;
}
figure {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}
.section {
  padding-block: 76px;
}
.section-title {
  margin-bottom: 40px;
  text-align: center;
  font-size: clamp(30px, 4vw, 46px);
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: #fff;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.button, .button-secondary, .contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #326f81;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
}
.button:hover, .contact-submit:hover {
  background: #285969;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px #12364322;
}
.button-secondary {
  border-color: #326f81;
  color: #27677b;
  background: transparent;
}
.button-secondary:hover {
  background: #edf4f6;
}

/* Header and progressive-enhancement navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #14191c;
}
.home-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  min-height: 110px;
}
.brand {
  flex: 0 0 auto;
}
.brand img {
  width: 210px;
  height: 82px;
  object-fit: contain;
}
.site-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-navigation a {
  position: relative;
  padding-block: 10px;
  color: var(--teal-light);
  text-decoration: none;
  text-transform: uppercase;
  font: 400 16px/1.4 Lato, sans-serif;
}
.site-navigation a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-navigation a:hover, .site-navigation a:focus-visible {
  color: #fff;
}
.site-navigation a:hover::after {
  transform: scaleX(1);
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #7393a0;
  border-radius: 6px;
  background: #202a30;
  color: #fff;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease;
}
.menu-icon {
  position: relative;
}
.menu-icon::before, .menu-icon::after {
  content: '';
  position: absolute;
}
.menu-icon::before {
  top: -6px;
}
.menu-icon::after {
  top: 6px;
}
.menu-toggle[aria-expanded='true'] .menu-icon {
  background: transparent;
}
.menu-toggle[aria-expanded='true'] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded='true'] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Compact persistent navigation without moving the page content. */
.site-header.is-scrolled {
  background: #14191c;
  box-shadow: 0 3px 18px #0003;
}
.site-header.is-scrolled .header-inner,
body:not(.home-page) .header-inner { min-height: 72px; }
.site-header.is-scrolled .brand img,
body:not(.home-page) .brand img { width: 140px; height: 56px; }
.site-navigation a[aria-current] { color: #fff; }
.site-navigation a[aria-current]::after { transform: scaleX(1); }

/* Original geometric backdrop, portrait, logo and teal identity. */
.hero, .project-banner {
  background: #111 url('/assets/images/background.jpg') center / cover;
  color: #fff;
}
.hero {
  padding-top: 112px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
  min-height: 550px;
}
.hero-portrait {
  justify-self: center;
  align-self: end;
  width: min(100%, 520px);
  height: 520px;
  object-fit: contain;
  object-position: bottom;
}
.hero-copy {
  container-type: inline-size;
  text-align: right;
  padding-block: 36px 60px;
}
.hero-intro, .hero-roles {
  color: #63aec2;
  font: 700 clamp(19px, 2.1vw, 27px)/1.5 Lato, sans-serif;
}
.hero h1 {
  margin-block: 24px 32px;
  font-size: clamp(40px, 6.5vw, 110px);
  font-size: clamp(30px, 14cqi, 110px);
  line-height: 1.2;
  text-transform: uppercase;
}
.hero-roles {
  margin: 0;
}
.about-copy {
  max-width: 1020px;
  margin: 0 auto 30px;
}
.about-opportunities {
  padding: 18px 22px;
  border-left: 4px solid var(--teal);
  background: #f0f5f7;
}

/* Education and recognition. */
.education .carousel-track {
  align-items: stretch;
}
.education-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
}
.education-card h3 {
  margin: 8px 0 22px;
  font-size: 24px;
  min-height: 2.5em;
}
.education-card p {
  margin-bottom: 10px;
}
.education-date {
  color: #39758a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.education-degree {
  font-size: 18px;
  font-weight: 600;
}
.education-detail {
  color: var(--muted);
  font-size: 14px;
}
.education-card a {
  margin-top: auto;
  padding-top: 16px;
}
.education-awards {
  margin-top: 44px;
}
.education-awards > h3 {
  margin-bottom: 24px;
  font-size: 26px;
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.awards-grid article {
  padding: 26px;
  background: #eef3f5;
  border-radius: var(--radius);
}
.awards-grid h4 {
  margin: 8px 0 12px;
  font-size: 20px;
}
.dark-section {
  background: var(--ink);
  color: #f1f5f7;
}
.angled-bottom {
  position: relative;
  padding-bottom: 48px;
}
.angled-bottom::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 50px;
  background: #fff;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

/* Shared native carousels. Cards remain readable without JavaScript. */
.carousel {
  min-width: 0;
}
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.carousel-controls p {
  margin: 0;
  color: inherit;
}
.carousel-controls > div {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.carousel-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #708d98;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font-size: 24px;
}
.carousel-controls button:hover {
  background: #397f9222;
  transform: translateY(-2px);
}
.dark-section .carousel-controls button:hover {
  background: #3d6372;
}
.carousel-track {
  display: flex;
  position: relative;
  gap: 24px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 8px 0 20px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #7393a0 transparent;
}
.carousel-card {
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  scroll-snap-align: start;
  border-radius: var(--radius);
}
.certificate-card {
  min-height: 340px;
  padding: 32px;
  background: #f8fbfc;
  color: var(--ink);
  text-align: center;
}
.certificate-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  object-fit: contain;
}
.certificate-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
}
.certificate-card p {
  margin-bottom: 10px;
}
.certificate-card a {
  display: inline-block;
  margin-top: 12px;
}
.experience-card {
  min-height: 320px;
  padding: 32px;
  border: 1px solid #617d88;
  background: var(--panel);
}
.experience-date {
  margin-bottom: 18px;
  color: #a4d3df;
  font-size: 14px;
}
.experience-company {
  margin-bottom: 16px;
  color: #fff;
  font-size: 28px;
}
.experience-role {
  margin-bottom: 12px;
  color: #f1f5f7;
  font-weight: 600;
  font-size: 18px;
}
.experience-summary {
  margin-bottom: 20px;
  color: #dbe6ea;
}
.experience-card summary {
  padding-block: 12px;
  color: #b4e5f1;
  font-weight: 600;
}
.experience-details {
  padding-top: 12px;
  color: #e1e9ed;
  font-size: 15px;
}
.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.project-card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.project-card-content {
  padding: 28px;
}
.project-card h3 {
  margin-bottom: 18px;
  text-transform: uppercase;
  font-size: 25px;
}
.project-card p {
  min-height: 5.1em;
}

/* Accessible, consistently sized contact fields. */
.contact-form {
  max-width: 800px;
  margin-inline: auto;
  padding: 32px;
  border: 1px solid #49616b;
  border-radius: var(--radius);
  background: #26323a;
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.contact-field {
  min-width: 0;
}
.contact-message {
  grid-column: 1 / -1;
}
.contact-label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.contact-field input, .contact-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #a7b6bd;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.contact-field input {
  height: 50px;
}
.contact-field textarea {
  min-height: 170px;
  resize: vertical;
}
.contact-field input:focus, .contact-field textarea:focus {
  outline: 3px solid #7ac3d3;
  outline-offset: 2px;
}
.contact-verification {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #49616b;
}
.contact-verification-label {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.contact-verification-help {
  margin: 0 0 14px;
  color: #c5d5da;
  font-size: 14px;
}
.contact-captcha {
  min-height: 78px;
}
.contact-captcha iframe {
  display: block;
}
.contact-actions {
  padding-top: 24px;
}
.contact-submit:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}
.contact-status {
  margin: 14px 0 0;
  color: #c5d5da;
  font-size: 14px;
}

/* Project pages and original downloadable resources. */
.project-banner {
  padding-block: 60px 70px;
}
.project-banner h1 {
  max-width: 980px;
  margin: 24px auto 0;
  text-align: center;
  font-size: clamp(32px, 4.5vw, 58px);
  text-transform: uppercase;
}
.back-link {
  color: #b4e5f1;
}
.back-link:hover {
  color: #fff;
}
.project-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.project-copy {
  font-size: 18px;
}
.project-overview img {
  width: 100%;
  border-radius: var(--radius);
}
figcaption {
  padding-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.project-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.project-video {
  margin-top: 64px;
}
.project-video h2 {
  margin-bottom: 24px;
  font-size: 30px;
}
.project-video video {
  display: block;
  width: 100%;
  max-height: 660px;
  background: #111;
  border-radius: var(--radius);
}
.image-viewer {
  width: fit-content;
  max-width: 94vw;
  max-height: 94dvh;
  padding: 14px;
  border: 1px solid #49616b;
  border-radius: var(--radius);
  background: #172128;
  color: #fff;
}
.image-viewer::backdrop {
  background: #081117d9;
}
.image-viewer img {
  max-width: 88vw;
  max-height: 78dvh;
  object-fit: contain;
}
.image-viewer button {
  display: block;
  margin: 0 0 12px auto;
  padding: 8px 16px;
  border: 1px solid #7393a0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
}
.site-footer {
  padding: 44px 0 20px;
  background: #171e23;
  color: #d5e1e6;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}
.footer-inner p {
  margin-bottom: 6px;
}
.site-footer a {
  color: #a4d3df;
}
.copyright {
  margin: 36px 24px 0;
  text-align: center;
  font-size: 14px;
}

/* Small, optional motion; content is visible if scripts are unavailable. */
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: background-color .2s ease, box-shadow .2s ease; }
  .reveal-ready {
    transition: opacity .65s var(--ease), transform .65s var(--ease);
  }
  .reveal-pending {
    opacity: 0;
    transform: translateY(18px);
  }
  .education-card, .awards-grid article, .project-card {
    transition: transform .25s var(--ease), box-shadow .25s ease;
  }
  @media (hover: hover) {
    .education-card:hover, .awards-grid article:hover, .project-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 30px #15303e12;
    }
  }
  .image-viewer[open] {
    animation: dialog-enter .2s var(--ease);
  }
  @keyframes dialog-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1000px) {
  .container {
    width: calc(100% - 48px);
  }
  .header-inner {
    min-height: 96px;
  }
  .brand img {
    width: 180px;
    height: 72px;
  }
  .menu-toggle:not([hidden]) {
    display: inline-flex;
  }
  .site-header[data-menu-ready] .site-navigation {
    display: none;
  }
  .site-header[data-menu-ready] .site-navigation.is-open {
    display: flex;
    position: absolute;
    inset: 100% 24px auto auto;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    width: min(360px, calc(100vw - 48px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid #49616b;
    border-radius: var(--radius);
    background: #202a30;
    box-shadow: 0 20px 50px #0005;
  }
  .site-navigation a {
    padding: 14px;
  }
  .site-navigation a[aria-current] {
    background: #34464e;
    border-radius: 4px;
  }
  .site-navigation a::after {
    display: none;
  }
  .site-header:not([data-menu-ready]) .header-inner {
    flex-wrap: wrap;
    padding-bottom: 16px;
  }
  .site-header:not([data-menu-ready]) .site-navigation {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-grid {
    gap: 24px;
    min-height: 450px;
  }
  .hero-portrait {
    height: 430px;
  }
  .hero-copy {
    padding-block: 24px 40px;
  }
  .education-card h3 {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .container {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 54px;
  }
  .section-title {
    margin-bottom: 30px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-copy {
    grid-row: 1;
    text-align: center;
    padding: 20px 0 16px;
  }
  .hero h1 {
    margin-block: 18px 24px;
    font-size: clamp(38px, 11vw, 66px);
  }
  .hero-intro, .hero-roles {
    font-size: 19px;
  }
  .hero-portrait {
    width: min(100%, 340px);
    height: 350px;
  }
  .awards-grid, .project-overview {
    grid-template-columns: 1fr;
  }
  .education-card, .awards-grid article {
    padding: 24px;
  }
  .carousel-controls {
    gap: 16px;
    align-items: flex-end;
  }
  .carousel-controls p {
    font-size: 14px;
  }
  .carousel-controls > div {
    gap: 9px;
  }
  .carousel-card {
    flex-basis: 88%;
  }
  .experience-card, .certificate-card {
    padding: 24px;
  }
  .experience-company {
    font-size: 24px;
  }
  .project-card-content {
    padding: 24px;
  }
  .project-card h3 {
    font-size: 22px;
  }
  .contact-form {
    padding: 24px;
  }
  .contact-fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-submit {
    width: 100%;
  }
  .project-overview {
    gap: 32px;
  }
  .project-copy {
    font-size: 16px;
  }
  .project-resources .button, .project-resources .button-secondary {
    flex: 1 1 auto;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}
