:root {
  --page-padding-inline: 20px;
  --page-padding-bottom: 20px;
  --sections-width: calc(100% - (var(--page-padding-inline) * 2));
  --sections-gap: 20px;
  --section-gap: 20px;
  --color-background: #000000;
  --color-foreground: #ffffff;
  --text-size: 18px;
  --text-line-height: 20px;
  --font-weight-medium: 500;
  --underline-thickness: 0.08em;
  --underline-offset: 0.16em;
  --header-brand-width: 78px;
  --header-gap: 20px;
}

@media (min-width: 724px) {
  :root {
    --sections-width: 684px;
    --header-brand-width: 286px;
  }
}

html {
  background: var(--color-background);
  color-scheme: dark;
}

body {
  min-width: 0;
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: var(--text-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--text-line-height);
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: var(--color-background);
  overflow: hidden;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0) 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.14) 52%, rgba(0, 0, 0, 0.34) 100%);
  pointer-events: none;
}

.page-header {
  position: absolute;
  top: var(--page-padding-inline);
  left: var(--page-padding-inline);
  right: var(--page-padding-inline);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.header-main,
.header-mobile-info {
  display: flex;
  align-items: flex-start;
}

.header-main {
  gap: var(--header-gap);
}

.header-brand,
.header-time,
.header-email {
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: var(--text-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--text-line-height);
}

.header-brand {
  width: var(--header-brand-width);
}

.header-email {
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
  pointer-events: auto;
  text-decoration-line: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
}

.header-time {
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
}

.header-mobile-info {
  display: none;
}

.image-cloud {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1800px;
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
}

.cloud-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: auto;
  will-change: transform;
  transform-style: preserve-3d;
}

.cloud-swatch {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 1;
  transform-origin: center center;
  transition: opacity 180ms ease;
}

.cloud-image {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: none;
  height: auto;
  opacity: 0;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  transition: opacity 180ms ease;
}

.cloud-item:hover .cloud-swatch {
  opacity: 0;
}

.cloud-item:hover .cloud-image {
  opacity: 1;
}

.sections {
  position: absolute;
  left: var(--page-padding-inline);
  bottom: var(--page-padding-bottom);
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sections-gap);
  align-items: start;
  width: var(--sections-width);
  mix-blend-mode: difference;
  pointer-events: none;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  width: 100%;
  min-width: 0;
}

.title-wrapper,
.content {
  width: 100%;
}

.experience-viewport {
  width: 100%;
}

.experience-content-shell {
  position: relative;
}

.experience-scroll {
  width: 100%;
}

.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title,
.section-body,
.experience-list__role,
.experience-list__company,
.experience-list__dates,
.section-link {
  font-family: var(--font-sans);
  font-size: var(--text-size);
  font-weight: var(--font-weight-medium);
  line-height: var(--text-line-height);
  color: var(--color-foreground);
}

.section-title {
  width: 100%;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--text-line-height);
  width: 100%;
}

.experience-list {
  display: grid;
  width: 100%;
}

.experience-list__item {
  display: grid;
  grid-template-columns: 104px 136px auto;
  align-items: start;
  column-gap: 20px;
  width: 100%;
}

.experience-list__role,
.experience-list__company,
.experience-list__dates {
  min-width: 0;
}

.experience-list__company,
.experience-list__dates {
  white-space: nowrap;
}

.experience-list__dates {
  text-align: right;
}

.socials-list {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sections-gap);
  justify-content: center;
  width: 100%;
  white-space: nowrap;
}

.section-link {
  display: inline-block;
  width: fit-content;
  pointer-events: auto;
  text-decoration-line: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
}

@media (max-width: 723px) {
  body,
  .page {
    min-height: 100svh;
  }

  .page {
    display: flex;
    flex-direction: column;
  }

  .page-header {
    align-items: flex-start;
  }

  .header-main {
    gap: 0;
  }

  .header-main .header-email {
    display: none;
  }

  .header-brand {
    line-height: var(--text-line-height);
  }

  .page-header > .header-time {
    display: none;
  }

  .header-mobile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }

  .header-time--mobile {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .sections {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: auto;
    margin-left: var(--page-padding-inline);
    margin-right: var(--page-padding-inline);
    margin-bottom: var(--page-padding-bottom);
  }

  .info-section--experience,
  .info-section--experience > .content,
  .experience-viewport,
  .experience-content-shell {
    overflow: visible;
  }

  .experience-viewport {
    position: relative;
    width: calc(100% + (var(--page-padding-inline) * 2));
    transform: translateX(calc(var(--page-padding-inline) * -1));
  }

  .experience-viewport::before,
  .experience-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 1;
    pointer-events: none;
  }

  .experience-viewport::before {
    left: 0;
    background: linear-gradient(
      to right,
      var(--color-background) 0%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .experience-viewport::after {
    right: 0;
    background: linear-gradient(
      to left,
      var(--color-background) 0%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .experience-content-shell {
    width: 100%;
    pointer-events: auto;
  }

  .experience-scroll {
    width: 100%;
    box-sizing: border-box;
    padding-left: var(--page-padding-inline);
    padding-right: var(--page-padding-inline);
  }

  .experience-list__item {
    grid-template-columns: 104px 136px auto;
    column-gap: 20px;
    row-gap: 0;
  }

  .experience-list__role {
    white-space: nowrap;
  }

  .info-section--socials {
    gap: 0;
  }

  .info-section--socials .title-wrapper {
    display: none;
  }

  .info-section--socials .content {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 367px) {
  .experience-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
  }

  .experience-list {
    min-width: 328px;
  }
}

@media (min-width: 724px) {
  .sections {
    grid-template-columns: minmax(0, 1fr) minmax(328px, 1fr) max-content;
  }

  .experience-list__item {
    grid-template-areas: none;
  }

  .experience-list__role {
    white-space: nowrap;
  }

  .page-header > .header-time {
    width: 171px;
    justify-content: flex-end;
  }

  .socials-list {
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    width: auto;
  }
}
