:root {
  --gutter: 10px;
  --left-column-width: 8.333%;
  --spacer-width: calc((2 / 11) * 100%);
  --sticky-offset: 10px;
  --blue: #006ff0;
  --gray: #474747;
  --slide-bg: #d9d9d9;
  --slide-gap: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--blue);
  background-color: #ffffff;
}

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

.portfolio {
  min-height: 100vh;
  background-color: #ffffff;
}

.fixed-photo {
  display: none;
}

.photo-frame {
  width: 98px;
  height: 98px;
  overflow: hidden;
  background-color: #ffffff;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.content {
  padding: var(--gutter);
}

.photo-mobile {
  margin-bottom: 20px;
}

.intro {
  margin-bottom: 30px;
}

.intro-columns {
  display: flex;
  gap: var(--gutter);
}

.intro-spacer {
  display: none;
}

.intro-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.intro-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--blue);
}

.project {
  margin-bottom: 50px;
}

.project-columns {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-description p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray);
}

.project-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #ffffff;
  padding: 10px 0;
}

.project-company,
.project-position {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.project-position {
  text-wrap: balance;
}

.project-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.project-arrow {
  display: inline-flex;
  width: 12.976px;
  height: 14.83px;
  color: var(--blue);
}

.project-arrow svg {
  width: 100%;
  height: 100%;
}

.project-slides {
  --slide-overlap: 80px;
  display: grid;
  gap: var(--slide-gap);
  margin-top: var(--slide-gap);
  position: relative;
  padding-bottom: calc((var(--slide-count, 1) - 1) * var(--slide-overlap));
}

.project-slide {
  position: sticky;
  top: var(--slide-sticky-top, 0px);
  margin-top: calc(var(--slide-index, 0) * -1 * var(--slide-overlap));
  z-index: var(--slide-z, 1);
  width: 100%;
  background-color: var(--slide-bg);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .portfolio {
    position: relative;
  }

  .fixed-photo {
    display: block;
    position: fixed;
    top: var(--gutter);
    left: var(--gutter);
    width: calc(var(--left-column-width) - var(--gutter));
    z-index: 20;
  }

  .photo-mobile {
    display: none;
  }

  .content {
    padding: var(--gutter);
    padding-left: calc(var(--left-column-width) + var(--gutter));
  }

  .intro {
    margin-bottom: 50px;
  }

  .intro-columns {
    gap: 0;
  }

  .intro-spacer {
    display: block;
    width: var(--spacer-width);
    padding-right: var(--gutter);
    flex-shrink: 0;
  }

  .project-columns {
    flex-direction: row;
    gap: 0;
  }

  .project-description {
    width: var(--spacer-width);
    padding-right: var(--gutter);
    flex-shrink: 0;
  }

  .project-description-inner {
    position: sticky;
    top: var(--sticky-offset);
  }

  .project-content {
    flex: 1;
  }

  .project-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
  }

  .project-position {
    text-align: center;
  }

  .project-dates {
    justify-content: flex-end;
  }

  .project-slides {
    --slide-overlap: 140px;
  }

  .project-slide {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .project {
    margin-bottom: 100px;
  }
}
