
/* ========================================= */
/* Base */
/* ========================================= */

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    color: #282828;

    font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;

    font-size: 15.5px;
    font-weight: 400;
    line-height: 25px;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}


/* ========================================= */
/* Home Page Navbar */
/* ========================================= */

.home-navbar {
  height: 64px;
  width: 100%;
}

.home-navbar-inner {
  width: 100%;
  height: 100%;

  margin-left: auto;
  margin-right: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-brand-link,
.home-nav-menu a {
  text-decoration: none;
}

.home-brand-link {
  color: rgba(255, 255, 255, 0.92);
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.3px;

  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.home-brand-link:hover {
  color: #FFFFFF;
}

.home-nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(34px, 4vw, 58px);
}

.home-nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: rgba(255, 255, 255, 0.88);

  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;

  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.home-nav-menu a:not(.home-resume-button):hover,
.home-nav-menu a:not(.home-resume-button):focus-visible {
  color: #ffffff;
  text-decoration: solid underline rgba(255, 255, 255, 0.6);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.home-resume-button {
  padding-bottom: 1.5px;
  border-bottom: solid 1px rgba(255, 255, 255, 0);

  transition:
    color 160ms ease,
}

.home-resume-button:hover {
  color: rgba(255, 255, 255, 1);
  border-bottom: solid 1px rgba(255, 255, 255, 0.6);
}

.home-resume-label {
  font-weight: 300;
  font-size: 16px;
  opacity: 0.85;
}

.home-resume-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;

  opacity: 0.85;
}

.home-menu-button {
  display: none;
}


/* ========================================= */
/* Mobile Navbar with Hamburger Menu */
/* ========================================= */

@media (max-width: 720px) {

    body.home-menu-open {
        overflow: hidden;
    }

    .home-navbar {
        height: 54px;
    }

    .home-navbar-inner {
        position: relative;
        z-index: 1001;

        height: 54px;

    }

    .home-brand-link {
        position: relative;
        z-index: 1002;

        font-size: 21px;
    }

    .home-nav-menu {
        position: fixed;
        inset: 0;
        z-index: 999;

        width: 100%;
        height: 100dvh;

        padding-top: 192px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 36px;

        background: #031B57;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity 180ms ease,
            visibility 0s linear 180ms;
    }

    body.home-menu-open .home-nav-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transition:
        opacity 180ms ease,
        visibility 0s;
    }

    .home-nav-menu a {
        color: #ffffff;

        font-size: 22px;
        font-weight: 400;
        line-height: 1.15;
    }

    .home-nav-menu a:hover,
    .home-nav-menu a:focus-visible {
        text-decoration: none;
    }

    .home-resume-label {
        font-size: 18px;
        font-weight: 300;
        letter-spacing: 0.01em;
        opacity: 0.72;
    }

    .home-resume-icon {
        width: 15px;
        height: 15px;
        transform: translateY(1px);
        opacity: 0.72;
    }

    .home-menu-button {
        position: relative;
        z-index: 1002;

        display: inline-flex;
        align-items: center;
        gap: 7px;

        padding: 0;

        background: none;
        border: none;

        color: #ffffff;

        font-family: 'Inter', sans-serif;
        cursor: pointer;
    }

    .home-menu-label {
        font-size: 12px;
        font-weight: 400;
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .home-menu-icon {
        position: relative;

        width: 18px;
        height: 16px;

        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;

        flex: 0 0 auto;
    }

    .home-menu-icon span {
        display: block;

        width: 100%;
        height: 1.5px;

        background: currentColor;

        transition:
            transform 180ms ease,
            opacity 180ms ease;
    }

    body.home-menu-open .home-menu-icon span:nth-child(1) {
        transform: translateY(7.25px) scale(1.15) rotate(45deg);
    }

    body.home-menu-open .home-menu-icon span:nth-child(2) {
        opacity: 0;
    }

    body.home-menu-open .home-menu-icon span:nth-child(3) {
        transform: translateY(-7.25px) scale(1.15) rotate(-45deg);
    }

    body.home-menu-open .home-menu-label {
      transform: translateX(2px);
    }

}


/* ========================================= */
/* Project Page Navbar */
/* ========================================= */

.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: #031B57;

  transition:
    transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-navbar {
  height: 54px;
}

.top-navbar-hidden {
  transform: translateY(-102%);
}

.project-navbar-inner {
  width: 100%;
  max-width: 1050px;

  height: 100%;

  margin-left: auto;
  margin-right: auto;

  padding-left: 24px;
  padding-right: 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #ffffff;
  opacity: 0.98;
  text-decoration: none;

  font-size: 15px;
  font-weight: 400;
}

.nav-link-icon {
  width: 12px;
  height: 12px;

  flex: 0 0 auto;

  transform: rotate(90deg) translateX(-0.5px);
}

.toc-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: none;
  border: none;
  padding: 0;

  color: white;
  opacity: 0.98;

  font-size: 15px;
  font-weight: 400;
  font-family: inherit;

  cursor: pointer;
}

.toc-button-icon {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;

  transform: translateY(-0.5px);
}

/* ========================================= */
/* Floating TOC button */
/* ========================================= */

.floating-toc-button {
  position: fixed;

  top: 14px;

  right:max(clamp(20px, 5vw, 40px), calc((100% - 1050px) / 2 + 40px));
  margin-right: -8px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: none;
  border: none;

  cursor: pointer;

  z-index: 1100;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 200ms ease,
    transform 200ms ease,
    visibility 200ms;
}

.floating-toc-icon {
  width: 34px;
  height: 34px;

  display: block;
}

.floating-toc-icon-bg {

  fill: rgba(255,255,255,0.97);

  stroke: #0A1F44;
  stroke-width: 0.5;
  stroke-opacity: 0.75;

  transition:
    fill 200ms ease,
    stroke 200ms ease;

}

.floating-toc-icon-lines {

  fill: #0A1F44;

  transition: fill 200ms ease;

}

/* === HOVER === */

.floating-toc-button:hover
.floating-toc-icon-lines {

  fill: white;

}

.floating-toc-button:hover
.floating-toc-icon-bg {

  fill: #002a72;
  stroke: #002a72;
}

.floating-toc-button-visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================= */
/* TOC panel */
/* ========================================= */

.toc-overlay {
  position: fixed;
  
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: rgba(0, 0, 0, 0.22);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 220ms ease,
    visibility 220ms;

  z-index: 1200;

  touch-action: none;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.toc-panel {
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;

  width: min(440px, calc(100vw - 20px));

  background: #FFFFFF;

  border-left: 1px solid #DADADA;

  overflow: auto;
  overscroll-behavior: contain;

  transform:
    translateX(100%)
    translateZ(0);

  transition: transform 240ms cubic-bezier(.47,.13,.35,.85);

  z-index: 1300;

  will-change: transform;
  backface-visibility: hidden;
}

body.toc-open,
html.toc-open {
  overscroll-behavior: none;
}

.toc-open .toc-overlay {
  opacity: 1;
  visibility: visible;
}

.toc-open .toc-panel {
  transform: translateX(0);
}

.toc-panel-header {
  position: sticky;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 54px;
  padding:
    0px
    20px
    0px;

  background: #FAFAFA;

  border-bottom: 1px solid #E3E3E3;

  z-index: 2;
}

.toc-panel-title {
  font-size: 18px;
  font-weight: 600;
}

.toc-close-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  padding: 0;

  background: none;
  border: none;

  color: #0A1F44;

  cursor: pointer;
}

.toc-nav {
  display: flex;
  flex-direction: column;

  padding:
    18px
    20px
    40px;
}

.toc-link {
  position: relative;
  
  display: block;
  align-content: center;
  
  padding:
      4px 12px
      4px 18px;
  left: 10px;

  color: #1f2328;
  text-decoration: none;
  letter-spacing: 0.03;

  border-radius: 8px;

  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.toc-link:hover {
    background-color: rgba(10, 31, 68, 0.04);
}

.toc-link-active {
  background-color: rgba(10, 31, 68, 0.06);

  font-weight: 500;
}

.toc-link-active::before {
  content: '';

  position: absolute;

  top: 50%;

  left: -10px;
  transform: translateY(-50%);

  width: 5px;
  height: 75%;

  border-radius: 999px;

  background: rgba(10, 52, 125, 0.8);
}

.toc-link-level-0 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;

  margin-top: 10px;
}

.toc-link-level-1 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;

  margin-top: 6px;

  padding-left: 36px;
}

.toc-link-level-2 {
  font-size: 14px;
  line-height: 1.5;
  color: #23282e;

  padding-left: 52px;
}

/* ========================================= */
/* Home Page: Page Layout */
/* ========================================= */

.projects-container,
.education-container,
.about-container,
.footer-content {
    max-width: 1270px;

    margin: 0 auto;

    padding-inline:
        clamp(20px, 4vw, 60px);
}

.home-hero-section {
    max-width: 1270px;
}

.home-hero-container {
    max-width: 1070px;

    width: 100%;

    margin: 0 auto;

    padding-inline:
        clamp(20px, 4vw, 60px);
}

.home-navbar {
    padding-inline:
        clamp(20px, 4vw, 60px);
}

.section-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  margin-top: 52px;
  margin-bottom: 72px;
  margin-left: -2px;
}


/* ========================================= */
/* Main Page Layout */
/* ========================================= */

.page-wrapper {
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

.doc-container {
    width: 100%;
    max-width: 740px;

    margin-left: auto;
    margin-right: auto;

    padding-top: 56px;
    padding-bottom: 120px;
}

/* ========================================= */
/* Typography */
/* ========================================= */

h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

h4 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;

    color: #202020;

    margin-top: 72px;
    margin-bottom: 16px;
}

h5 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;

    color: #242424;

    margin-top: 72px;
    margin-bottom: 16px;
}

h6 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;

    color: #242424;

    margin-top: 0;
    margin-bottom: 10px;
}

p {
    margin-top: 0;
    margin-bottom: 26px;
}

.section-intro {
    margin-bottom: 54px;
}

.subsection {
    margin-bottom: 54px;
}

/* ========================================= */
/* Lists */
/* ========================================= */

.bullet-point-list {
    padding-left: 12px;
    margin-top: -18px;
    margin-bottom: 30px;
}

.bullet-point-list li {
    display: flex;
    align-items: flex-start;

    margin-top: 10px;

    list-style: none;
}

.bullet {
    width: 16px;
    flex: 0 0 auto;
}

.bullet-text {
    flex: 1;
}

@media (max-width: 550px) {
    .mapping-label {
        display: block;
        margin-top: 2px;
    }
}

.key-ideas-list {
  margin-top: -10px;
}

.key-ideas-list > li:not(:first-child) {
  margin-top: -6px;
}

.numbered-list {
    list-style: none;
    counter-reset: step;
    padding-left: 0px;
    margin-top: -14px;
}

.numbered-list li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 10px auto;
    column-gap: 18px;  

    margin-bottom: 8px;
}

.numbered-list li::before {
    content: counter(step) ".";
}

.alpha-list li::before {
    content: counter(step, upper-alpha) ".";
}

.solution-overview-list li {
    margin-top: 4px;
}

@media (max-width: 600px) {
    .bullet-point-list, 
    .numbered-list,
    .alpha-list {
      padding-left: 0px;
    }

    .numbered-list li {
      column-gap: 10px;
    }
}

/* ========================================= */
/* Documentation overview */
/* ========================================= */

.documentation-overview {
    width: 100%;  
    margin-top: 48px;
    margin-bottom: 72px;
}

.documentation-overview-title {
    margin-bottom: 12px;
    font-size: 20px;
}

.documentation-overview-intro {
    margin-bottom: 16px;
}

.documentation-overview-list {
    list-style: none;
    padding-left: 24px;
    counter-reset: section-counter;
}

.documentation-overview-list li {
    counter-increment: section-counter;

    display: grid;
    grid-template-columns: 18px auto;
    column-gap: 12px;  

    margin-bottom: 8px;
}

.documentation-overview-list li::before {
    content: counter(section-counter) ".";
}

.documentation-overview-list a {
    display: inline-block;  
    color: inherit;
    text-decoration: none;
}

.documentation-overview-list a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
  .documentation-overview-list {
    padding-left: 0;
}
}

/* ========================================= */
/* Inline Code */
/* ========================================= */

code {
    font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

    background: #F0F1F2;

    padding: 0.2em 0.4em;

    border-radius: 6px;

    font-size: 13.5px;
}

/* ========================================= */
/* Code Block */
/* ========================================= */

.code-block {
  padding: 22px 18px; 

  background: #F6F8FA;

  border-radius: 8px;

  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-family:
    Consolas,
    Monaco,
    monospace;

  font-size: 13.5px;
  padding: 0;
  border-radius: 0;
  display: block;
  line-height: 1.3;
  background: none;

  color: #242424;

  white-space: pre;
}

.tall-line-height-code code {
  line-height: 1.6;
}

/* ========================================= */
/* Code Block */
/* ========================================= */

.long-code-block {
  position: relative;

  max-height: var(--collapsed-height, 400px);

  overflow: hidden;

  transition: max-height 380ms cubic-bezier(0.22, 1, 0.36, 1);

  padding-bottom: 44px;
}

.expandable-code-block {
  padding-top: 16px;
  position: relative;
  margin-bottom: 60px;
}

.expandable-code-block.expanded
.long-code-block {

  max-height: 5000px;
}

.expand-code-button {
  position: absolute;

  bottom: 10px;
  left: 18px;

  z-index: 2;

  display: flex;
  align-items: center;
  gap: 5px;

  padding: 0;

  background: none;
  border: none;

  cursor: pointer;

  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;

  color: #626262;

  transition: color 160ms ease;
}


.expand-code-button:hover {
  color: #133063;
}

.expand-code-label::after {
  content: "Show more";
}

.expandable-code-block.expanded
.expand-code-label::after {
  content: "Collapse";
}

.expand-code-chevron {
  width: 11px;
  height: 11px;

  opacity: 0.85;

  flex-shrink: 0;

  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.expandable-code-block.expanded
.expand-code-chevron {
  transform: rotate(180deg);
}

.long-code-block::after {
  content: "";

  position: absolute;

  z-index: 1;

  left: 0;
  right: 0;
  bottom: 0;

  height: 90px;

  background: linear-gradient(
    to bottom,
    rgba(246,248,250,0),
    rgba(246,248,250,0.8) 50%,
    rgba(246,248,250,1)
  );

  pointer-events: none;

  transition: opacity 220ms ease;
}

.expandable-code-block.expanded
.long-code-block::after {

  opacity: 0;
}


/* ========================================= */
/* Code syntax highlighting with Prism */
/* ========================================= */
/*
.token.function {
   color: #1d5fda; 
} */

.token.excelString {
  color: #1A7F37;
}

.token.excelNumber {
  color: #6b2ae3;
}

.token.excelLamba {
  color: #930a6f;
}

.token.comment {
  color: #8B949E;
  font-style: italic;
}

/* ========================================= */
/* Prism Override */
/* ========================================= */

pre[class*="language-"],
code[class*="language-"] {

  background: none !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 0 !important;

  text-shadow: none !important;

  font-family:
    Consolas,
    Monaco,
    monospace;

  font-size: clamp(13.5px, 1.5vw, 14.5px) !important;
  color: #242424 !important;
  line-height: 1.3 !important;
}

/* ========================================= */
/* Images */
/* ========================================= */

.image-container {
    width: 100%;

    margin-top: clamp(42px, 8vw, 52px);
    margin-bottom: clamp(42px, 8vw, 62px); 
    margin-left: auto;
    margin-right: auto; 
}

.compact-image {
  max-width: 450px;
}

.large-image {
  max-width: 580px;
}

.image-caption {
    margin-top: 16px;

    text-align: center;

    font-size: 13.5px;
    line-height: 20px;

    color: #7A7C80;
}

.zoomable-image {
    width: 100%;
    height: auto;
    display: block;  
    cursor: pointer;

    transition: filter 200ms ease;
}

.bordered-image {
  border: 1px solid #DADADA; 
}

/* ========================================= */
/* PhotoSwipe customization */
/* ========================================= */


.pswp__button--close .pswp__icn {
  display: none;
}

.pswp__button--close::before {
  content: "";

  width: 24px;
  height: 24px;

  display: block;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.9;

  transition: opacity 0.2s ease;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6L18 18M18 6L6 18' stroke='black' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M6 6L18 18M18 6L6 18' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pswp__button--close:hover::before {
  opacity: 1;
}

.pswp__img {
  border: none !important;
}

.pswp {
  --pswp-bg: rgba(0, 0, 0, 0.97);
}


/* ========================================= */
/* Image gallery */
/* ========================================= */

.image-gallery {
    margin-top: clamp(42px, 8vw, 52px);
    margin-left: auto;
    margin-right: auto; 
}

.gallery-main {
    margin-bottom: 18px;
}

.gallery-main-image {
    width: 100%;

    transition: opacity 0.25s ease;
}

.gallery-item {
  display: block;
}

.gallery-thumbnails {
    display: grid;

    grid-template-columns: repeat(var(--thumbnail-count, 3), 1fr);
    gap: clamp(6px, 1.5vw, 12px);

    margin: 0;
}

.gallery-thumbnails-two {
  max-width: 310px;
}

.gallery-thumb {
    display: block;
    width: 100%;
    height: auto;

    cursor: pointer;

    border: 2px solid transparent;
    /* border-radius: 6px; */

    filter: brightness(0.96);
    opacity: 0.98;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

@media (max-width: 500px) {

    .gallery-thumbnails-two {
        display: inline-flex;
        gap: 8px;
    }

    .gallery-thumbnails-two .gallery-item {
        flex: none;
        width: auto;
    }

    .gallery-thumbnails-two .gallery-thumb {
        display: block;
        width: auto;
        height: 60px;
    }
}


.gallery-thumb:hover {
    filter: brightness(1);
    opacity: 1;
}

.gallery-thumb.active {
    border-color: #0f8f9a;
    filter: brightness(1);
    opacity: 1;
}

.gallery-caption {
  margin-top: -8px;
  margin-bottom: 12px;
  text-align: left;
}


/* ========================================= */
/* Home Page Hero Section */
/* ========================================= */

.home-hero-section {
    box-sizing: border-box;
    
    height: calc(100svh - 85px);

    margin-left: 140px;
    
    display: grid;

    padding-top: max(90px, 10vh);
}

.home-hero-intro {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.home-hero-title {
    margin: 0;

    display: flex;
    flex-direction: column;

    color: #2D2D3D;

    font-family: 'Inter', sans-serif;
    font-size: clamp(44px, 6.5vw, 74px);
    font-weight: 500;
    line-height: .96;
    letter-spacing: 0.65px;

    margin-left: -5px;
}

.home-hero-subtitle {
    margin: 0;

    color: rgba(36,36,59,.9);

    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.5;
}

.hero-skills {
    display: flex;
    flex-wrap: wrap;

    margin-top: clamp(72px, 7vh, 90px);
}

.hero-skill {
    color: rgba(36, 36, 59, 0.55);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.hero-skill:not(:last-child)::after {
    content: "•";

    margin: 0 6px;

    color: rgba(36, 36, 59, 0.25);

    font-size: 11px;
}

.hero-cta-wrapper {
    margin-top: clamp(90px, 8vh, 110px);
}


@media (max-width: 900px) {

    .home-hero-section {
        margin-left: clamp(0px, calc(0.35 * 100vw - 175px), 140px)
    }

    .home-hero-title {
        margin-left: 0px;
    }
}

/* ========================================= */
/* Project Page Hero Section */
/* ========================================= */

.hero-section {
    width: 100%;
    min-height: calc(100svh - 54px);
    
    padding-top: 90px;
    padding-bottom: 20px;
}

.project-hero-content {
    display: grid;

    grid-template-columns: 1.07fr 1.25fr;
    
    gap: 0 clamp(20px, 4vw, 45px);

    align-items: stretch;
}

.hero-text-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-title {
    font-size: clamp(30px, 3.7vw, 38px);
    line-height: 1.05;
    font-weight: 700;

    color: #242424;

    margin-top: 0;
    margin-bottom: 24px;
}

.hero-description {
    font-size: clamp(15.5px, 10vw, 16px);
    line-height: 1.6;
    color: #4A4A4A;
    
    max-width: 95%;
    /* margin-bottom: 42px; */
}

.hero-image {
    width: 100%;

    height: auto;
    display: block;
}

.home-hero-CTA,
.project-page-hero-CTA {
    
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 14px;

    color: #1F4BD8;
    text-decoration: none;
    outline: 1px solid #1F4BD8;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    
    transition: background 0.2s ease;
}

.hero-button-icon {
    width: 13px;
    height: 13px;
    padding-top: 1px;

    flex: 0 0 auto;
}

.hero-image-column {
    
    display: flex;
    justify-content: center;
    align-items: center;

    align-self: center;
}


/* ==== PROJECT HERO: Mobile responsiveness ==== */

@media (max-width: 900px) { 
  
  .hero-section {
      max-width: 740px;
      padding-top: 48px;
      padding-left: 0;
      padding-right: 0;
      margin-left: auto;
      margin-right: auto;
  }

  .project-hero-content {
      display: flex;
      flex-direction: column;
  }

  .hero-title {
      margin-bottom: 14px;
  }

  .hero-description {
      font-size: 15px;
      max-width: 530px;
      margin-bottom: 36px;
  }

  .hero-image-column {
      width: 100%;
      display: flex;
      justify-content: left;
      align-items: left;
  }

  .hero-text-column {
      display: contents;
  }

  .hero-image {
      max-width: 510px;
      height: auto;
  }

  .project-hero-content .hero-button {
      outline: none;
      padding-left: 0;
      padding-right: 0;
  }

  .project-hero-content .hero-cta-wrapper {
      margin-top: max(30px, 6vw);
  }

  .hero-text-content {
      order: 1;
  }

  .hero-image-column {
      order: 2;
  }

  .hero-cta-wrapper {
      order: 3;
  }
}

/* ========================================= */
/* HOME PAGE: PROJECTS SECTION  */
/* ========================================= */

.projects-section {
    background: #F1F1F4;

    padding-block:
        clamp(100px, 12vh, 160px);

    width: 100%;
}

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 32px;

}

.project-card {

    display: flex;
    flex-direction: column;

    position: relative;

    color: inherit;
    text-decoration: none;

    background: #ffffff;
}

.project-card::before {

    content: "";

    position: absolute;
    inset: 0;

    border: 1px solid transparent;

    pointer-events: none;

    transition:
        border-color 160ms ease;

}

.project-card-image {

    width: 100%;

    aspect-ratio: 3 / 2;

    object-fit: cover;

    display: block;

}

.project-card-body {

    display: flex;
    flex-direction: column;

    flex-grow: 1;

    padding:
        20px 20px 24px;

    border-top:
        1px solid rgba(0,0,0,.08);

}

.project-card-title {

    margin-top: 4px;
    margin-bottom: 0;

    color: #24243b;

    font-size: clamp(20px, 2vw, 21px);
    font-weight: 600;
    line-height: 1.2;

    min-height: 2.6em; /* enough for two-lines */

}

.project-card-description {

    margin-top: 10px;
    margin-bottom: 18px;

    color: rgba(36,36,59,.85);

    line-height: 1.65;

}

.project-card-CTA {

    margin-top: auto;

    padding-top: 14px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-weight: 500;
    color: #0b4cff;

    text-decoration: none;

}

/* Project card hover effects */

.project-card:hover::before {

    border-color: #0b4cff;

}

.project-card-CTA span {

    color: #0b4cff;

    text-decoration-color:
        transparent;

    transition:
        text-decoration-color 160ms ease;

}

.project-card:hover
.project-card-CTA span {

    text-decoration: underline;
    text-underline-offset: 3px;

}

.project-card-CTA-icon {
    width: 11px;
    height: 11px;

    color: #0b4cff;

    transform: rotate(-90deg);

    transition: transform 160ms ease;
}


.project-card:hover
.project-card-CTA-icon {

    transform: rotate(-90deg) translateY(4px);

}

/* Project grid responsive layout */

@media (max-width:1150px) {

    .projects-container {
        max-width: 1010px;
    }

    .projects-grid {

        margin-left: auto;
        margin-right: auto;

        grid-template-columns:
            repeat(2,1fr);
        
        column-gap: clamp(26px, 3.4vw, 32px);

    }

}

@media (max-width:700px) {

    .projects-grid {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;

        grid-template-columns:
            1fr;
          
        gap: 48px;

    }

    .project-card-body {
        padding: 10px 18px 24px 18px;
    }

    .project-card-title {
        min-height: auto;
        margin-top: 12px;
        margin-bottom: 6px;
    }

}


/* ========================================= */
/* HOME PAGE: EDUCATION SECTION  */
/* ========================================= */

.education-container {
    margin-top: 92px;
}

.education-accent {

    width: 8px;

    background: #0b4cff;

    flex-shrink: 0;

}

.education-header {

    position: relative;

    display: flex;

    padding-left: 22px;

    margin-bottom: 24px;

}

.education-header::before {

    content: "";

    position: absolute;

    left: 0;
    top: 4px;
    bottom: 4px;

    width: 8px;

    background: #0b4cff;

}

.education-header-content {

    display: flex;
    flex-direction: column;

    gap: 6px;

}

.education-heading {

    margin: 0;
    line-height: 1.3;

    font-size: clamp(22px, 3vw, 24px);
    font-weight: 600;

}

.education-subtitle {

    margin: 0;
    margin-bottom: 2px;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;

    color: #383838;

}

.education-date {

    margin: 0;
    line-height: 1.2;
    font-size: 13.5px;
    font-weight: 400;

    color: #848484;

}

.data-analyst-training-intro {
  padding-left: 22px;
  max-width: 680px;
  line-height: 1.55;
  color: rgba(36,36,59,.75);
  margin-bottom: 40px;
}

.competency-grid {

    display: grid;

    padding-left: clamp(20px, calc(0.0825 * 100vw - 17.125px), 90px);
    padding-right: clamp(20px, calc(0.0825 * 100vw - 17.125px), 90px);
    padding-top: 50px;
    padding-bottom: 50px;
    
    margin-left: auto;
    margin-right: auto;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    row-gap: clamp(30px, 4vw, 50px);
    column-gap: clamp(30px, 4vw, 50px);

    background-color: #F3F3F6;

}

.competency-item {

    padding:

        26px
        26px
        32px
        26px;

    background-color: #FFFFFF;

}

.competency-number {

    color: #8fa1d0;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1;

    margin-bottom: 6px;

}

.competency-title {

    margin: 0;

    color: #24243b;

    font-size: 19px;

    font-weight: 700;

    letter-spacing: -0.005em;

}

.competency-intro {

    margin-top: 10px;

    line-height: 1.6;

    color: rgba(36,36,59,.85);

}

.competency-project-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #76819b;

    margin-top: 28px;
    margin-bottom: 4px;
}

.competency-projects {

    margin-top: 8px;

    display: flex;
    flex-direction: column;

    gap: 18px;

}

.competency-project {

    display: flex;
    flex-direction: column;

    gap: 2px;

}

.competency-project-link {
    color: #2857d9;
    font-weight: 500;
    line-height: 1.6;

    text-decoration: none;
}

.competency-project-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.competency-project-link-icon {
    width: 10px;
    height: 10px;

    margin-left: 1px;

    transition: transform 160ms ease;
}

.competency-project-link-new-tab-icon {

    width: 12px;
    height: 12px;

    color: currentColor;

    margin-left: 1px;

    transform: translateY(0.5px);
}

.competency-project-link:hover
.competency-project-link-icon {

    transform: translateX(3px);

}

.competency-project-no-link {
    color: #323232;
    font-weight: 500;
}

.competency-project-outcomes {
    list-style: none;
    padding-left: 0;
    margin-top: 2px;
    margin-bottom: 2px;
}

.competency-project-outcomes li {
    position: relative;

    padding-left: 12px;
    padding-top: 4px;

    color: rgba(36,36,59,.85);

    line-height: 1.65;
}

.competency-project-outcomes li::before {

    content: "•";

    position: absolute;

    left: 0;

    top: 5px;

    font-size: 13.5px;

    color: #6c768e;

}

/* === University subsection === */

.university-layout {

    display: grid;

    grid-template-columns:
        298px
        minmax(0,1fr);

    column-gap: clamp(36px, calc(0.16 * 100vw - 108px), 100px);

    align-items: start;

    max-width: 1200px;

    margin-top: 112px;

}

.university-link {
    text-decoration: none;

    margin: 0;
    margin-bottom: 2px;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;

    color: #383838;
} 

.university-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.uni-info {
    
    display: grid;
    grid-template-columns:
        0.91fr
        1fr;

    column-gap: clamp(45px, calc(0.0875 * 100vw - 33.75px), 80px);

    margin-top: 4px; 
    padding-left: clamp(22px, calc(0.045 * 100vw - 18.5px), 40px);
    padding-right: clamp(26px, calc(0.16 * 100vw - 118px), 90px);
    padding-bottom: 12px;

    background: #F6F6F9;
}

.university-card {

    position: relative;

    height: 100%;

    padding-top: 20px;
    padding-bottom: 20px;

    color: rgba(36,36,59,.85);;
  
}

.university-card-title {

    margin: 0 0 20px;
    padding-bottom: 3px;

    width: 100%;

    border-bottom: 2px solid rgba(20, 70, 208, 0.55);

    color: #24243b;

    font-size: clamp(17px, calc(0.0025 * 100vw + 14.75px), 18px);
    font-weight: 500;

}

.home-page-list {

    margin: 0;
    padding-left: 20px;

}


/* Education section: Responsiveness */

@media (max-width:900px) {

    .competency-grid {

        grid-template-columns:
            1fr;

        gap: 40px;
    }

    .university-layout {

        grid-template-columns: 1fr;

        gap: 24px;

    }

    .uni-info {
        gap: clamp(70px, 10vw, 150px);
    }

}

@media (max-width:768px) {
    
    .uni-info {
        grid-template-columns:
            1fr;
        
        gap: 10px;
    }

    .university-card-title {
        width: max-content;
        padding-right: 16px;
        margin-bottom: 16px;

    }
}

@media (max-width: 450px) {
    
    .competency-grid {
        width: 100vw;
        margin-left: calc(50% - 50vw);

        padding-top: 38px;
        padding-bottom: 38px;

        gap: 54px;
    }

    .education-header {
        padding-left: 18px;
    }

    .data-analyst-training-intro {
        padding-left: 18px;
        margin-bottom: 32px;
    }

    .competency-item {
        padding: 24px 18px 28px 18px;
    }
}


/* ========================================= */
/* HOME PAGE: ABOUT SECTION  */
/* ========================================= */

.about-section {
    margin-top: 100px;
}

.about-container .section-title {
    margin-bottom: 46px;
}

.about-layout {

    display: grid;

    grid-template-columns:
        298px
        minmax(0, 1fr);

    column-gap: clamp(36px, calc(0.16 * 100vw - 108px), 100px);

    align-items: start;

}

.about-summary-card {

    background: #F6F6F9;

    padding: 18px 28px 32px 28px;

    color: rgba(36,36,59,.85);

}

.about-summary-card h3 {
    padding-top: 12px;
    margin-bottom: 6px;
    color: rgba(36,36,59,.92);
}

.about-junior-title {
    font-size: 20px;
    padding-top: 0;
    margin-top: 0;
}

.about-summary-grid {

    display: block;

}

.about-content {

    max-width: 700px;
    padding-top: 18px;

}

.about-narrative-heading {
    font-size: 17px;
    font-weight: 600;
    padding-top: 14px;
    margin-top: 0;
    margin-bottom: 8px;
}

.about-content p {

    margin-bottom: 22px;

    line-height: 1.75;

    color: rgba(36,36,59,.8);

}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {

    .about-layout {

        grid-template-columns: 1fr;

        row-gap: 40px;

    }

    .about-summary-grid {

        display: grid;

        grid-template-columns: repeat(2, minmax(auto, max-content));

        column-gap: 105px;

        max-width: 650px;
        width: 100%;

        align-items: start;

    }

    .about-summary-card {
        padding-top: 14px;
        padding-bottom: 24px;
        padding-inline: 22px;
    }

    .about-content {
        padding-top: 0;
    }
}


@media (max-width: 520px) {

    .about-summary-card {
        padding: 4px 20px 20px 20px;

        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    .about-summary-grid {

        grid-template-columns: repeat(1, minmax(0,1fr));

    }

    .about-summary-card h3 {
        margin-top: 12px;
    }
}


/* ========================================= */
/* Validation table */
/* ========================================= */

.validation-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  
  margin-bottom: 32px;
}

.validation-table {
  border-collapse: collapse;

  margin-top: 20px;
  margin-bottom: 12px;

  font-size: 15px;

  line-height: 1.5;

  width: max(320px, 100%);
}


.validation-table th:first-child,
.validation-table td:first-child {
  width: 240px;
}

@media (max-width: 500px) {
  .validation-table {
    table-layout: fixed;
  }
  
  .validation-table th:first-child,
  .validation-table td:first-child {
    width: 142px;
  }
}

.validation-table tbody td:first-child {
  font-weight: 500;
}

.validation-table th,
.validation-table td {
  padding: 8px 14px;

  text-align: left;

  vertical-align: top;

  border-left: 1px solid #D1D9E0;
  border-right: 1px solid #D1D9E0;
  border-top: 1px solid #D1D9E0;
}

.validation-table th {
  font-weight: 700;
  font-size: 15px;

  color: #202020;

  border-bottom: 2px solid #D1D9E0;
}

.validation-table tbody tr {
  border-bottom: 1px solid #D1D9E0;
}

.validation-table tbody tr:nth-child(even) {
  background: #F6F8FA;
}

.validation-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.validation-table td {
  color: #282828;
}

/* ========================================= */
/* Download project file button */
/* ========================================= */

.download-section {
    margin-top: 42px;
    margin-bottom: 56px;

    text-align: center;
}

.download-project-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 10px 12px;

    color: #1F4BD8;
    text-decoration: none;

    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.download-project-button-icon {
  width: 16px;
  height: 16px;
  transform: translateY(-1px);
}

.download-project-button:hover {
    text-decoration: underline 1px;
    text-underline-offset: 2px;
}

.download-meta {
    margin-top: 0px;

    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0.01em;

    color: #9ca3af;
}

@media (max-width: 900px) {
  .download-project-button {
    font-size: 15px;
    padding: 6px 8px;
  }

  .download-project-button-icon {
    width: 14px;
    height: 14px;
    transform: translateY(-0.5px);
}
}

/* ========================================= */
/* Footer */
/* ========================================= */

.site-footer {

    margin-top: 120px;

    background: #f5f5f5;

    border-top: 1px solid #ececec;
}

.footer-content {

    padding-top: 36px;
    padding-bottom: 36px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.footer-copyright {

    font-size: 14px;

    color: #7a7a7a;
}

.footer-socials {

    display: flex;

    gap: 14px;
}

.footer-socials a {

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 0.65;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.footer-socials a:hover {
    opacity: 1;
}

.footer-socials img {

    width: 24px;
    height: 24px;
}

@media (max-width: 440px) {

    .footer-content {

        flex-direction: column;

        gap: 14px;

        text-align: center;

        padding-top: 26px;
        padding-bottom: 30px;
    }

}


/* ========================================= */
/* Mobile responsiveness */
/* ========================================= */
@media (max-width: 900px) {

    .project-navbar-inner {
        padding-left: clamp(20px, 5vw, 40px);
        padding-right: clamp(20px, 5vw, 40px);
    } 

    .footer-content {
        padding-left: clamp(20px, 5vw, 40px);
        padding-right: clamp(20px, 5vw, 40px);
    }

    .toc-button-icon {
        margin-right: 5px;
    }

    .floating-toc-button {
        margin-right: -4px;
    }

    .page-wrapper {
        padding-left: clamp(20px, 5vw, 40px);
        padding-right: clamp(20px, 5vw, 40px);
    }

}    

@media (hover: hover) {

    .hero-button:hover {
      background: #F5F8FF;
    }

    .zoomable-image:hover {
      filter: brightness(0.92);
    }

}

