:root {
  --ink: 23 23 23;
  --ink-soft: 91 91 91;
  --accent: 158 204 103;
  --nav-ink: #2a2c3e;
  --page: #fff;
  --content-width: 900px;
  --section-title-size: clamp(3.5rem, 5vw, 6rem);
}

@property --blur-solid {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 55%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: #efefeb;
}

a {
  color: inherit;
  text-decoration: none;
}

.intro-transition {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}

.hero {
  position: absolute;
  isolation: isolate;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--page);
  box-shadow:
    -5px 5px 10px rgb(230 230 230 / 20%),
    5px -5px 10px rgb(230 230 230 / 20%),
    -5px -5px 10px rgb(255 255 255 / 90%),
    5px 5px 13px rgb(230 230 230 / 90%),
    inset 1px 1px 2px rgb(255 255 255 / 30%),
    inset -1px -1px 2px rgb(230 230 230 / 50%);
}

.hero__portrait {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.hero__name {
  position: absolute;
  z-index: 1;
  top: 1.3889vh;
  left: 0.8854vw;
  width: 75.9896vw;
  height: 9vh;
  margin: 0;
  color: rgb(var(--ink) / 90%);
  font-family: "Google Sans Flex", "Helvetica Neue", Arial, sans-serif;
  font-size: 26.0417vw;
  font-weight: 400;
  font-optical-sizing: none;
  font-variation-settings:
    "opsz" 18,
    "wght" 400;
  line-height: normal;
  letter-spacing: 1px;
  white-space: nowrap;
}

.hero__name-line {
  position: absolute;
  left: 0;
  display: block;
}

.hero__name-line--first {
  top: 0;
}

.hero__name-line--second {
  top: 48.7037vh;
  color: rgb(var(--ink-soft) / 70%);
}

.hero__accent {
  color: rgb(var(--accent) / 80%);
}

.site-header {
  --nav-background: rgb(217 217 217 / 30%);
  --nav-border: rgb(255 255 255 / 16%);
  --nav-shadow: 0 2px 20px 1px rgb(0 0 0 / 20%);
  --nav-text: 30 30 30;
  --nav-focus: 158 204 103;
  position: fixed;
  z-index: 20;
  top: 15px;
  left: 50%;
  width: min(53.75vw, 1032px);
  min-width: 720px;
  transform: translateX(-50%);
  will-change: transform;
}

.site-header[data-theme="dark"] {
  --nav-background: rgb(14 14 14 / 72%);
  --nav-border: rgb(255 255 255 / 24%);
  --nav-shadow:
    0 8px 30px rgb(0 0 0 / 48%),
    inset 0 1px 0 rgb(255 255 255 / 7%);
  --nav-text: 245 245 242;
}

.nav-menu-toggle {
  display: none;
}

/* .site-header[data-theme="dark"] .site-nav a {
  font-weight: 350;
} */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 1.8vw, 2.2rem);
  width: 90%;
  height: 60px;
  padding: 0 2rem;
  /* border: 1px solid var(--nav-border); */
  border-radius: 40px;
  background: var(--nav-background);
  box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transition:
    background-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  color: rgb(var(--nav-text));
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.75rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: normal;
  letter-spacing: 1.25px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__home {
  min-width: 3.25rem;
  padding-right: 0.8rem !important;
  padding-left: 0.8rem !important;
}

.site-nav__home svg {
  width: clamp(1.8rem, 2.25vw, 2.6rem);
  height: clamp(1.8rem, 2.25vw, 2.6rem);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav a > span {
  position: relative;
  z-index: 1;
  display: block;
  transition: opacity 180ms ease;
}

.site-nav a.is-particle-active > span {
  opacity: 0;
}

.nav-particles {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: calc(100% + 48px);
  height: calc(100% + 36px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  overflow: visible;
}

.site-nav a:focus-visible {
  outline: 2px solid rgb(var(--nav-focus));
  outline-offset: 8px;
  border-radius: 2px;
}

.hero__veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: rgb(127 127 127 / 10%);
  -webkit-backdrop-filter: blur(0.5px);
  backdrop-filter: blur(0.5px);
}

.hero__bottom-blur {
  --blur-solid: 42%;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(239 239 235 / 48%) 0%,
    rgb(239 239 235 / 24%) 42%,
    rgb(239 239 235 / 6%) 80%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 var(--blur-solid),
    transparent 100%
  );
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 var(--blur-solid),
    transparent 100%
  );
  transform-origin: bottom center;
  will-change: height, backdrop-filter;
}

.about {
  position: absolute;
  z-index: 5;
  top: 100%;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  height: 100svh;
  min-height: 620px;
  padding: clamp(8.5rem, 13vh, 10rem) clamp(1.5rem, 7vw, 8.5rem)
    clamp(3rem, 6vh, 5rem);
  overflow: hidden;
  color: #242424;
  background:
    radial-gradient(circle at 80% 15%, rgb(158 204 103 / 16%), transparent 33%),
    #efefeb;
  will-change: top;
}

.about__inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.about__eyebrow {
  margin: 0 0 clamp(1.75rem, 3vh, 2.5rem);
  color: rgb(30 30 30 / 56%);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about__title {
  max-width: 12ch;
  margin: 0 0 clamp(2rem, 3.5vh, 3rem);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: var(--section-title-size);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.about__copy {
  display: block;
  width: min(100%, var(--content-width));
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.35rem, 1.55vw, 1.8rem);
  font-weight: 300;
  line-height: 1.5;
}

.about__copy p {
  margin: 0;
}

.about__copy p + p {
  margin-top: 1.5em;
}

.about__eyebrow,
.about__title,
.about__copy p {
  will-change: transform, opacity, filter;
}

.experience {
  position: relative;
  min-height: 100svh;
  padding: clamp(8rem, 11vw, 13rem) 0 clamp(6rem, 9vw, 10rem);
  overflow: hidden;
  color: #f6f6f3;
  background:
    radial-gradient(circle at 50% 18%, rgb(158 204 103 / 13%), transparent 28%),
    linear-gradient(180deg, #121212 0%, #050505 55%, #0d0d0d 100%);
}

.experience::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.19;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.experience__header {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto clamp(4rem, 7vw, 7rem);
}

.experience__eyebrow {
  margin: 0 0 1.4rem;
  color: rgb(255 255 255 / 48%);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience__title {
  margin: 0;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: var(--section-title-size);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.experience__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 0.75rem clamp(1.25rem, 2.4vw, 2.5rem);
  justify-content: start;
  margin-top: clamp(2rem, 3vw, 3.5rem);
  color: rgb(255 255 255 / 64%);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.1rem, 1.3vw, 1.45rem);
  line-height: 1.4;
}

.experience-carousel {
  position: relative;
  z-index: 2;
}

.experience-carousel__viewport {
  width: 100%;
  padding-block: 2rem;
  overflow: visible;
}

.experience-carousel__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  will-change: transform;
}

.experience-card {
  position: relative;
  flex: 0 0 clamp(28rem, 39vw, 39rem);
  min-height: clamp(18rem, 22vw, 22rem);
  padding: clamp(2rem, 2.7vw, 2.8rem) clamp(2rem, 3vw, 3.2rem);
  overflow: hidden;
  border: 0.5px solid rgb(255 255 255 / 82%);
  border-radius: 25px;
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 40%) 0%,
    rgb(178 178 178 / 20%) 100%
  );
  box-shadow: 0 28px 70px rgb(0 0 0 / 42%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transform-origin: center;
  will-change: transform, filter, opacity;
}

.experience-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(130deg, rgb(255 255 255 / 7%), transparent 42%);
}

.experience-card__index,
.experience-card__copy {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.experience-card__index {
  margin-bottom: clamp(1.2rem, 1.7vw, 1.8rem);
  color: rgb(255 255 255 / 72%);
  font-size: clamp(0.9rem, 1.05vw, 1.15rem);
}

.experience-card__copy {
  font-size: clamp(1.12rem, 1.35vw, 1.5rem);
  line-height: 1.42;
}

.experience-card__copy strong {
  color: rgb(var(--accent));
  font-weight: 700;
}

.experience-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.carousel-button {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(121 121 121 / 48%));
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 30%),
    0 5px 16px rgb(0 0 0 / 45%);
  cursor: pointer;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.carousel-button span {
  width: 19px;
  height: 19px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  transform: rotate(45deg) translate(-2px, 2px);
}

.carousel-button--previous span {
  transform: rotate(-135deg) translate(-2px, 2px);
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: scale(1.08);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 22%),
    0 0 22px rgb(255 255 255 / 20%);
}

.carousel-button:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 5px;
}

.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.experience-carousel__status {
  min-width: 4.5rem;
  margin: 0;
  color: rgb(255 255 255 / 48%);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

.experience-carousel__status span {
  color: white;
}

.read-more-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 0.75rem 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.read-more-button::after {
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.read-more-button:hover::after,
.read-more-button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.read-more-button:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 5px;
}

.read-more-button__icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.read-more-button__icon::before,
.read-more-button__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: translate(-50%, -50%);
}

.read-more-button__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.expandable-card__details {
  display: none;
}

.expandable-card__details-inner {
  padding-top: 2rem;
}

.expandable-card__details p {
  margin: 0;
}

.expandable-card__label {
  margin-bottom: 0.65rem !important;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.experience-card .expandable-card__details-inner {
  border-top: 1px solid rgb(255 255 255 / 18%);
  color: rgb(255 255 255 / 72%);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
}

.experience-card .expandable-card__label {
  color: rgb(var(--accent));
}

.projects {
  position: relative;
  min-height: 100svh;
  padding: clamp(9rem, 12vw, 14rem) clamp(1.5rem, 6vw, 7rem)
    clamp(7rem, 10vw, 12rem);
  overflow: hidden;
  color: #242424;
  background:
    radial-gradient(circle at 12% 14%, rgb(158 204 103 / 15%), transparent 27%),
    radial-gradient(circle at 88% 82%, rgb(158 204 103 / 9%), transparent 25%),
    #efefeb;
}

.projects::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.projects__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.projects__header {
  display: block;
  width: min(100%, var(--content-width));
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.projects__eyebrow {
  margin: 0 0 1.5rem;
  color: rgb(30 30 30 / 56%);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.projects__title {
  max-width: 11ch;
  margin: 0;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: var(--section-title-size);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.projects__introduction {
  max-width: 30rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: rgb(36 36 36 / 66%);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.2rem, 1.55vw, 1.7rem);
  font-weight: 300;
  line-height: 1.45;
}

.projects-view-toggle {
  position: relative;
  display: flex;
  width: fit-content;
  margin: 0 auto 2rem;
  padding: 0.3rem;
  border: 1px solid rgb(36 36 36 / 14%);
  border-radius: 999px;
  background: rgb(255 255 252 / 45%);
}

.projects-view-toggle::before {
  position: absolute;
  z-index: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  width: var(--toggle-indicator-width, 0px);
  border-radius: 999px;
  content: "";
  background: rgb(255 255 252 / 92%);
  box-shadow: 0 3px 12px rgb(36 36 36 / 10%);
  transform: translateX(var(--toggle-indicator-x, 0px));
  transition:
    width 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-view-toggle button {
  position: relative;
  z-index: 1;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  color: rgb(36 36 36 / 58%);
  background: transparent;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 320ms ease;
}

.projects-view-toggle button[aria-pressed="true"] {
  color: #242424;
  background: transparent;
}

.projects-view-toggle button:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 3px;
}

.projects-carousel__viewport {
  width: 100%;
  padding: 1.5rem 0;
  overflow: visible;
}

.projects__grid {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  will-change: transform;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(70vw, 40rem);
  min-height: 29rem;
  padding: clamp(1.7rem, 2.4vw, 2.4rem);
  overflow: hidden;
  border: 1px solid rgb(36 36 36 / 18%);
  border-radius: 30px;
  background: rgb(255 255 252 / 52%);
  box-shadow:
    0 22px 55px rgb(54 54 45 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 80%);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition:
    border-color 400ms ease,
    box-shadow 400ms ease;
}

.project-card--featured {
  min-height: 29rem;
}

.project-card:hover,
.project-card:focus-within {
  border-color: rgb(36 36 36 / 34%);
  box-shadow:
    0 30px 75px rgb(54 54 45 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 90%);
}

.project-card::before {
  position: absolute;
  top: -10rem;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  content: "";
  background: rgb(var(--accent) / 13%);
  filter: blur(18px);
}

.project-card__topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(36 36 36 / 54%);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card__topline p {
  margin: 0;
}

.project-card__topline time {
  white-space: nowrap;
}

.project-card__title {
  position: relative;
  z-index: 1;
  margin: clamp(2rem, 3.5vw, 3.25rem) 0 0;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.project-card:not(.project-card--featured) .project-card__title {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
}

.project-card__title span {
  display: block;
  max-width: 16ch;
  margin-top: 0.65rem;
  color: rgb(36 36 36 / 56%);
  font-size: 0.46em;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.project-card__title a {
  position: relative;
}

.project-card__title a::after {
  display: inline-block;
  margin-left: 0.2em;
  color: rgb(var(--accent));
  content: "↗";
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.38em;
  vertical-align: top;
}

.project-card__type {
  position: relative;
  z-index: 1;
  margin: 1.4rem 0 0;
  color: rgb(36 36 36 / 48%);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.project-card__stack li {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgb(36 36 36 / 15%);
  border-radius: 999px;
  color: rgb(36 36 36 / 68%);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.project-card__summary {
  position: relative;
  z-index: 1;
  max-width: 49rem;
  margin: auto 0 0;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.1rem, 1.35vw, 1.45rem);
  font-weight: 300;
  line-height: 1.45;
}

.project-card .expandable-card__details-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin-top: 2rem;
  border-top: 1px solid rgb(36 36 36 / 15%);
  color: rgb(36 36 36 / 70%);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 300;
  line-height: 1.5;
}

.project-card:not(.project-card--featured) .expandable-card__details-inner {
  grid-template-columns: 1fr;
}

.projects-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.project-carousel-button {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(36 36 36 / 20%);
  border-radius: 50%;
  color: #242424;
  background: rgb(255 255 252 / 58%);
  box-shadow: 0 5px 16px rgb(54 54 45 / 12%);
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.project-carousel-button span {
  width: 19px;
  height: 19px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  transform: rotate(45deg) translate(-2px, 2px);
}

.project-carousel-button--previous span {
  transform: rotate(-135deg) translate(-2px, 2px);
}

.project-carousel-button:hover,
.project-carousel-button:focus-visible {
  transform: scale(1.07);
  box-shadow: 0 8px 22px rgb(54 54 45 / 18%);
}

.project-carousel-button:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 4px;
}

.projects-carousel__status {
  min-width: 4.5rem;
  margin: 0;
  color: rgb(36 36 36 / 48%);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

.projects-carousel__status span {
  color: #242424;
}

.projects-carousel[data-view="grid"] .projects-carousel__viewport {
  padding: 0;
  overflow: visible;
}

.projects-carousel[data-view="grid"] .projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.projects-carousel[data-view="grid"] .project-card {
  width: 100%;
  min-height: 0;
}

.projects-carousel[data-view="grid"] .projects-carousel__controls {
  display: none;
}

.projects-carousel.is-switching {
  overflow: hidden;
}

.project-card__detail-section {
  min-width: 0;
}

.project-card .expandable-card__label {
  color: rgb(36 36 36 / 52%);
}

.project-card__metric {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(36 36 36 / 12%);
  color: #242424;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-reader {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  color: #242424;
  background:
    radial-gradient(circle at 82% 8%, rgb(158 204 103 / 15%), transparent 27rem),
    #efefeb;
  opacity: 0;
}

.article-reader[open] {
  display: block;
}

.article-reader::backdrop {
  background: rgb(10 10 10 / 62%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.article-reader__chrome {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 82px;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid rgb(36 36 36 / 10%);
  background: rgb(239 239 235 / 78%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.article-reader__brand {
  margin: 0;
  color: rgb(36 36 36 / 58%);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-reader__close {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(36 36 36 / 18%);
  border-radius: 50%;
  color: #242424;
  background: rgb(255 255 252 / 55%);
  cursor: pointer;
  transition:
    transform 250ms ease,
    background-color 250ms ease;
}

.article-reader__close:hover,
.article-reader__close:focus-visible {
  background: rgb(255 255 252 / 92%);
  transform: rotate(6deg) scale(1.05);
}

.article-reader__close:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 4px;
}

.article-reader__close span::before,
.article-reader__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.article-reader__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.article-reader__article {
  width: min(90%, var(--content-width));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(7rem, 12vw, 12rem);
}

.article-reader__header {
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.article-reader__kicker {
  margin: 0 0 1.5rem;
  color: rgb(36 36 36 / 54%);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.article-reader__title {
  margin: 0;
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.article-reader__lede {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  color: rgb(36 36 36 / 70%);
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: 300;
  line-height: 1.5;
}

.article-reader__body {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.2rem, 1.45vw, 1.45rem);
  font-weight: 300;
  line-height: 1.65;
}

.article-reader__body .expandable-card__details-inner {
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
}

.article-reader__body .project-card__detail-section + .project-card__detail-section {
  margin-top: 3.5rem;
}

.article-reader__body .expandable-card__label {
  margin-bottom: 0.85rem !important;
  color: rgb(36 36 36 / 52%);
}

.article-reader__body .project-card__metric {
  margin-top: 3.5rem;
}

body.has-open-reader {
  overflow: hidden;
}

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

  .hero__portrait {
    object-position: 49% center;
  }

  .hero__name {
    top: 12%;
    left: 2%;
    width: auto;
    font-size: clamp(8rem, 27vw, 15rem);
  }

  .hero__name-line--second {
    top: 38svh;
  }

  .site-header {
    top: 12px;
    right: auto;
    left: 50%;
    width: min(calc(100% - 24px), 22rem);
    min-width: 0;
    transform: translateX(-50%);
  }

  .nav-menu-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding: 0 1.4rem;
    border: 1px solid var(--nav-border);
    border-radius: 30px;
    color: rgb(var(--nav-text));
    background: var(--nav-background);
    box-shadow: var(--nav-shadow);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition:
      color 420ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 520ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-menu-toggle:focus-visible {
    outline: 2px solid rgb(var(--nav-focus));
    outline-offset: 4px;
  }

  .nav-menu-toggle__label {
    font-family: "Source Serif Pro", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.08em;
  }

  .nav-menu-toggle__icon {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
  }

  .nav-menu-toggle__icon span {
    position: absolute;
    right: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition:
      top 350ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-menu-toggle__icon span:first-child {
    top: 2px;
  }

  .nav-menu-toggle__icon span:last-child {
    top: 11px;
  }

  .site-header.is-menu-open .nav-menu-toggle__icon span:first-child {
    top: 6px;
    transform: rotate(45deg);
  }

  .site-header.is-menu-open .nav-menu-toggle__icon span:last-child {
    top: 6px;
    transform: rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 90%;
    height: auto;
    padding: 4.6rem 1rem 1rem;
    overflow: hidden;
    border: 1px solid var(--nav-border);
    border-radius: 30px;
    background: var(--nav-background);
    box-shadow: var(--nav-shadow);
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 280ms ease,
      visibility 280ms ease,
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .site-nav a {
    justify-content: space-between;
    min-height: 52px;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgb(var(--nav-text) / 12%);
    font-size: 1.2rem;
    text-align: left;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav__home {
    justify-content: flex-start !important;
  }

  .site-nav__home svg {
    width: 2rem;
    height: 2rem;
  }

  .hero__bottom-blur {
    height: 28%;
  }

  .about {
    padding-top: 8.5rem;
  }

  .about__inner,
  .experience__header {
    width: min(88%, var(--content-width));
  }

  .experience__meta {
    grid-template-columns: 1fr;
  }

  .experience-card {
    flex-basis: min(78vw, 38rem);
  }

  .projects__header {
    width: min(88%, var(--content-width));
  }

  .project-card {
    flex-basis: min(82vw, 36rem);
    min-height: 0;
  }

  .project-card__summary {
    margin-top: 2rem;
  }

  .project-card .expandable-card__details-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  :root {
    --section-title-size: clamp(3rem, 4.25vw, 5rem);
  }

  .about {
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .about__eyebrow {
    margin-bottom: 1.25rem;
  }

  .about__title {
    margin-bottom: 1.75rem;
  }

  .about__copy {
    font-size: clamp(1.15rem, 1.25vw, 1.45rem);
    line-height: 1.42;
  }

  .about__copy p + p {
    margin-top: 1em;
  }
}

@media (max-width: 540px) {
  :root {
    --section-title-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero__portrait {
    object-position: 52% center;
  }

  .hero__name {
    top: 18%;
    font-size: clamp(6.5rem, 28vw, 9.5rem);
  }

  .hero__name-line--second {
    top: 35svh;
  }

  .site-nav {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .site-nav a {
    font-size: 1.05rem;
  }

  .about__copy {
    font-size: 1.35rem;
  }

  .experience {
    padding-top: 8rem;
  }

  .projects {
    padding-top: 8rem;
  }

  .project-card {
    padding: 1.7rem;
    border-radius: 24px;
  }

  .project-card__topline {
    flex-direction: column;
  }

  .project-card__title,
  .project-card:not(.project-card--featured) .project-card__title {
    margin-top: 2rem;
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }

  .article-reader__article {
    width: min(90%, var(--content-width));
  }

  .experience__header {
    width: calc(100% - 2rem);
  }

  .experience-card {
    flex-basis: calc(100vw - 3.5rem);
    min-height: 23rem;
    padding: 2rem 1.7rem;
    border-radius: 22px;
  }

  .carousel-button {
    width: 58px;
    height: 58px;
  }

  .carousel-button span {
    width: 20px;
    height: 20px;
    border-width: 4px;
  }
}

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

  .site-nav a > span {
    transition: none;
  }

  .read-more-button::after,
  .read-more-button__icon::after,
  .article-reader__close,
  .nav-menu-toggle__icon span,
  .site-nav,
  .projects-view-toggle::before,
  .projects-view-toggle button {
    transition: none;
  }
}
