@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

body.homepage {
  --desktop-width: 936px;
  --desktop-section-gap: 216px;
  --home-notice-background: #efefed;
  background: #fff;
  font: 400 18px/24px 'IBM Plex Sans', sans-serif;
}

.homepage .portfolio {
  max-width: var(--desktop-width);
  margin: var(--desktop-section-gap) auto 96px;
}
.desktop-home h1,
.desktop-home h2 {
  font-weight: 600;
  text-transform: uppercase;
}
.desktop-home h3 {
  margin: 0;
  font: inherit;
  font-weight: 600;
}
.desktop-home .text-link {
  text-decoration-thickness: from-font;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
#projects,
#experience { scroll-margin-top: 96px; }

.desktop-nav {
  position: sticky;
  z-index: 4;
  top: 0;
  background: #fff;
}
.desktop-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--desktop-width);
  height: 72px;
  margin-inline: auto;
}
.desktop-nav-links { display: flex; justify-content: space-between; width: 100%; }
.desktop-nav-links > div { display: flex; gap: 40px; }
.home-menu-button { display: none; }

.desktop-intro-content {
  display: grid;
  grid-template-columns: 360px 276px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.desktop-intro-content > p { max-width: 272px; }
.desktop-photos { display: flex; gap: 24px; }
.desktop-image-reveal {
  --expanded-scale: 1.5;
  --image-open: 0;
  --image-scale: 1;
  --image-reveal-transition: 420ms var(--ease-out-expo);
  --tooltip-visibility: hidden;
  --image-pointer-events: none;
  position: relative;
  z-index: var(--image-open);
}
.desktop-image-crop {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  transform: scale(var(--image-scale));
  transform-origin: var(--image-origin);
  transition: transform var(--image-reveal-transition);
  pointer-events: var(--image-pointer-events);
}
.desktop-image-tooltip {
  position: absolute;
  top: calc(100% * var(--expanded-scale) + 8px);
  left: var(--tooltip-center, 50%);
  width: max-content;
  max-width: 220px;
  transform: translateX(-50%);
  text-align: center;
  opacity: var(--image-open);
  visibility: var(--tooltip-visibility);
  transition: opacity 180ms ease-out, visibility 180ms;
  pointer-events: var(--image-pointer-events);
}
.desktop-image-tooltip::before {
  content: '';
  position: absolute;
  inset: -8px 0 100%;
}
.desktop-image-reveal:focus-visible:not(.tooltip-dismissed) {
  --image-open: 1;
  --image-scale: var(--expanded-scale);
  --tooltip-visibility: visible;
  --image-pointer-events: auto;
  outline: none;
}
.desktop-image-reveal:focus-visible:not(.tooltip-dismissed) .desktop-image-crop {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .desktop-image-reveal:hover:not(.tooltip-dismissed) {
    --image-open: 1;
    --image-scale: var(--expanded-scale);
    --tooltip-visibility: visible;
    --image-pointer-events: auto;
  }
}
.desktop-photo {
  --image-origin: right top;
  --tooltip-center: 25%;
  width: 126px;
  height: 185px;
}
.desktop-photo-person img {
  position: absolute;
  top: -12.53%;
  left: -17.24%;
  width: 141.83%;
  height: 128.1%;
}
.desktop-photo-cat {
  --image-origin: left top;
  --tooltip-center: 75%;
}
.desktop-photo-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.desktop-contacts { text-align: right; }
.desktop-cv { margin-top: 24px; }

.desktop-projects { margin-top: 223px; }
.desktop-project-grid {
  display: grid;
  grid-template-columns: 360px 168px 360px;
  gap: 72px 24px;
  align-items: start;
  margin-top: 24px;
}
.desktop-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  text-decoration: none;
}
.desktop-card-autotest,
.desktop-card-chips { grid-column: span 2; }
.desktop-card-visual {
  position: relative;
  height: 432px;
  overflow: hidden;
}
.desktop-card-visual img {
  position: absolute;
  pointer-events: none;
}
.desktop-card-cells .desktop-card-visual {
  --crt-photo: url('../images/home-desktop/cell-protection.png');
  background: #141613;
}
.cells-crt-definitions { position: absolute; }
.cells-crt-scene,
.cells-crt-channel,
.cells-crt-tear {
  position: absolute;
  inset: 0;
  /* Use the card's original photo crop for every layer. */
  background: var(--crt-photo) 43.373% 77.422% / 287.19% 128.7% no-repeat;
}
.cells-crt-scene {
  transform: scale(var(--crt-zoom, 1));
  transition: transform 400ms cubic-bezier(.2, .65, .3, 1);
  pointer-events: none;
}
.cells-crt-screen {
  position: absolute;
  inset: 0;
  isolation: isolate;
  clip-path: polygon(
    27.717% 26.445%, 30.797% 26.156%, 72.464% 26.012%, 74.094% 26.301%,
    74.638% 27.023%, 74.819% 29.191%, 75.181% 57.659%, 74.819% 59.538%,
    74.094% 60.260%, 72.826% 60.549%, 26.449% 60.549%, 25.362% 60.116%,
    25% 58.960%, 25% 31.214%, 25.543% 30.202%, 26.449% 29.046%, 27.174% 27.601%
  );
  opacity: var(--crt-opacity, 0);
  transition: opacity 220ms ease;
}
.cells-crt-signal {
  position: absolute;
  inset: 0;
  isolation: isolate;
  background: #000;
}
.cells-crt-channel { mix-blend-mode: screen; }
.cells-crt-red { filter: url(#cells-crt-red); }
.cells-crt-cyan { filter: url(#cells-crt-cyan); }
.cells-crt-tear { opacity: 0; }
.cells-crt-tear-upper {
  clip-path: inset(34% 0 63.8% 0);
  filter: saturate(1.22);
}
.cells-crt-tear-middle {
  clip-path: inset(47% 0 49.9% 0);
  filter: hue-rotate(-12deg) contrast(1.08);
}
.cells-crt-tear-lower {
  clip-path: inset(55% 0 43.6% 0);
  filter: saturate(1.15);
}
.cells-crt-block {
  position: absolute;
  top: 48%;
  left: 40%;
  width: 15%;
  height: 1.2%;
  opacity: 0;
  background: #8bbfb0;
  mix-blend-mode: difference;
}
.cells-crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgb(0 0 0 / .16) 2px 3px, transparent 3px 4px);
}
.cells-crt-roll {
  position: absolute;
  inset: 0;
  transform: translateY(-35%);
  opacity: .65;
  background: linear-gradient(transparent 42%, rgb(202 230 180 / .09) 48%, rgb(0 0 0 / .08) 51%, transparent 57%);
}
.desktop-card-cells:is(:hover, :focus-visible) {
  --crt-zoom: 1.15;
  --crt-opacity: 1;
}
.desktop-card-cells:is(:hover, :focus-visible) .cells-crt-red { animation: cells-crt-red 2.8s steps(1, end) infinite; }
.desktop-card-cells:is(:hover, :focus-visible) .cells-crt-cyan { animation: cells-crt-cyan 2.8s steps(1, end) infinite; }
.desktop-card-cells:is(:hover, :focus-visible) .cells-crt-tear-upper { animation: cells-crt-tear-upper 2.8s steps(1, end) infinite; }
.desktop-card-cells:is(:hover, :focus-visible) .cells-crt-tear-middle { animation: cells-crt-tear-middle 2.8s steps(1, end) infinite; }
.desktop-card-cells:is(:hover, :focus-visible) .cells-crt-tear-lower { animation: cells-crt-tear-lower 2.8s steps(1, end) infinite; }
.desktop-card-cells:is(:hover, :focus-visible) .cells-crt-block { animation: cells-crt-block 2.8s steps(1, end) infinite; }
.desktop-card-cells:is(:hover, :focus-visible) .cells-crt-scanlines { animation: cells-crt-scanlines .24s steps(2, end) infinite; }
.desktop-card-cells:is(:hover, :focus-visible) .cells-crt-roll { animation: cells-crt-roll 3.8s linear infinite; }

@keyframes cells-crt-red {
  0%, 11%, 13%, 26%, 34%, 75%, 84%, 100% { transform: translateX(.25%); }
  6%, 29%, 78% { transform: translate(.7%, .12%); }
  9%, 31%, 81% { transform: translateX(-.45%); }
}
@keyframes cells-crt-cyan {
  0%, 11%, 13%, 26%, 34%, 75%, 84%, 100% { transform: translateX(-.25%); }
  6%, 29%, 78% { transform: translate(-.6%, -.1%); }
  9%, 31%, 81% { transform: translateX(.4%); }
}
@keyframes cells-crt-tear-upper {
  0%, 11%, 26%, 34%, 75%, 84%, 100% { opacity: 0; transform: none; }
  6%, 29%, 78% { opacity: 1; transform: translateX(2.1%); }
  9%, 31%, 81% { opacity: .85; transform: translateX(-1.5%); }
}
@keyframes cells-crt-tear-middle {
  0%, 13%, 75%, 84%, 100% { opacity: 0; transform: none; }
  6%, 78% { opacity: .85; transform: translateX(-2.6%); }
  9%, 81% { opacity: 1; transform: translateX(1.2%); }
}
@keyframes cells-crt-tear-lower {
  0%, 34%, 100% { opacity: 0; transform: none; }
  29% { opacity: .9; transform: translateX(1.9%); }
  31% { opacity: .8; transform: translateX(-1.1%); }
}
@keyframes cells-crt-block {
  0%, 11%, 84%, 100% { opacity: 0; }
  9%, 81% { opacity: .3; transform: translateX(1%); }
}
@keyframes cells-crt-scanlines {
  0%, 100% { opacity: .8; }
  50% { opacity: .68; }
}
@keyframes cells-crt-roll {
  from { transform: translateY(-35%); }
  to { transform: translateY(35%); }
}
@media (hover: none) {
  .desktop-card-cells:hover:not(:focus-visible) { --crt-zoom: 1; }
  .desktop-card-cells:hover:not(:focus-visible) .cells-crt-screen { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .desktop-card-cells:is(:hover, :focus-visible) { --crt-zoom: 1; }
  .cells-crt-tear,
  .cells-crt-block,
  .cells-crt-roll { display: none; }
  .cells-crt-red { transform: translateX(.2%); }
  .cells-crt-cyan { transform: translateX(-.2%); }
}
.homepage { --figma-slow-spring: ease-out; }
@supports (transition-timing-function: linear(0, 1)) {
  .homepage {
    /* Figma's 1.25 second Slow spring, sampled for CSS. */
    --figma-slow-spring: linear(0, .1048, .2905, .4671, .6104, .7192, .7992, .857, .8985, .928,
      .949, .9639, .9744, .9819, .9872, .9909, .9936, .9955, .9968, .9977, 1);
  }
}
.desktop-card-autotest {
  --autotest-hover: 0;
  --autotest-transition: 300ms ease-out;
}
@media (prefers-reduced-motion: no-preference) {
  .desktop-card-autotest:focus-visible {
    --autotest-hover: 1;
    --autotest-transition: 1250ms var(--figma-slow-spring);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .desktop-card-autotest:hover {
    --autotest-hover: 1;
    --autotest-transition: 1250ms var(--figma-slow-spring);
  }
}
.desktop-card-autotest .desktop-card-visual::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgb(0 0 0 / .1);
  pointer-events: none;
}
.desktop-card-autotest .desktop-card-backdrop,
.desktop-card-autotest .desktop-card-screenshot {
  top: 0;
  left: 0;
  transform-origin: top left;
}
.desktop-card-autotest .desktop-card-backdrop {
  width: 140.06%;
  height: 114.12%;
  transform: translate(
    calc(-33.06px + 33.06px * var(--autotest-hover)),
    calc(-43.03px + 21.09px * var(--autotest-hover))
  ) scale(calc(1 - .07925 * var(--autotest-hover)));
  transition: transform var(--autotest-transition);
}
.desktop-card-autotest .desktop-card-screenshot {
  width: 698.94px;
  height: 393.15px;
  object-fit: cover;
  transform:
    translate(calc(35px - 20px * var(--autotest-hover)), calc(106.86px - 91.86px * var(--autotest-hover)))
    rotate(calc(-6.4deg + 6.4deg * var(--autotest-hover)))
    scale(calc(1 + .21613 * var(--autotest-hover)), calc(1 + .21581 * var(--autotest-hover)));
  box-shadow: 0 3.29px 35.60px .82px rgb(248 244 237 / var(--autotest-hover));
  transition: transform var(--autotest-transition), box-shadow var(--autotest-transition);
}
.desktop-card-chips {
  --chips-active: 0;
  --chips-transition: 1250ms var(--figma-slow-spring);
  position: relative;
}
.desktop-chips-content {
  display: flex;
  flex-direction: column;
  gap: inherit;
}
.desktop-card-chips:is(.has-notice, :has(.desktop-chips-trigger:focus-visible)) {
  --chips-active: 1;
}
@media (hover: hover) and (pointer: fine) {
  .desktop-card-chips:hover { --chips-active: 1; }
}
.desktop-card-chips .desktop-card-backdrop {
  top: -53.85%;
  left: -54.55%;
  width: 221.37%;
  height: 188.58%;
  filter: brightness(calc(1 - .2 * var(--chips-active)));
  transition: filter var(--chips-transition);
}
.desktop-card-chips .desktop-card-screenshot {
  top: 0;
  left: 0;
  width: 442px;
  height: 243px;
  border-radius: 2px;
  object-fit: cover;
  transform-origin: top left;
  transform:
    translate(calc(55px - 50px * var(--chips-active)), calc(94px - 47px * var(--chips-active)))
    scale(calc(1 + .22624 * var(--chips-active)), calc(1 + .22956 * var(--chips-active)));
  transition: transform var(--chips-transition);
}
.desktop-chip {
  top: 0;
  left: 0;
  width: var(--chip-size);
  height: auto;
  transform-origin: top left;
  transform:
    translate(
      calc(var(--chip-x) + var(--chip-travel-x, 0px) * var(--chips-active)),
      calc(var(--chip-y) + var(--chip-travel-y) * var(--chips-active))
    )
    rotate(calc(var(--chip-angle, 0deg) + var(--chip-turn, 0deg) * var(--chips-active)))
    scale(calc(1 - var(--chip-shrink) * var(--chips-active)));
  transition: transform var(--chips-transition);
}
.desktop-chip-01 {
  --chip-size: 212px;
  --chip-x: 389.87px;
  --chip-y: 511.02px;
  --chip-angle: -30deg;
  --chip-travel-x: -62.87px;
  --chip-travel-y: -154.08px;
  --chip-turn: 23.29deg;
  --chip-shrink: .23585;
}
.desktop-chip-02 {
  --chip-size: 267px;
  --chip-x: 167px;
  --chip-y: 411px;
  --chip-travel-y: -110px;
  --chip-shrink: .18727;
}
.desktop-chip-03 {
  --chip-size: 239px;
  --chip-x: 503.12px;
  --chip-y: 389.68px;
  --chip-angle: -30deg;
  --chip-travel-x: -93.12px;
  --chip-travel-y: -80.76px;
  --chip-turn: 15deg;
  --chip-shrink: .20921;
}
.desktop-chip-04 {
  --chip-size: 227px;
  --chip-x: 10.55px;
  --chip-y: 435.30px;
  --chip-angle: -.29deg;
  --chip-travel-x: 46.61px;
  --chip-travel-y: -126.30px;
  --chip-turn: 3.26deg;
  --chip-shrink: .22026;
}
.desktop-chip-05 {
  --chip-size: 198px;
  --chip-x: -141.86px;
  --chip-y: 306.72px;
  --chip-angle: 35.29deg;
  --chip-travel-x: 124.08px;
  --chip-travel-y: -38.72px;
  --chip-turn: -15.45deg;
  --chip-shrink: .25253;
}
.desktop-chips-alert {
  position: absolute;
  top: 258.29px;
  left: -40.36px;
  width: 615.02px;
  padding: 4px 0;
  background: #f9cd1e;
  box-shadow: 0 4px 7px rgb(0 0 0 / .12);
  text-align: center;
  text-transform: uppercase;
  transform-origin: top left;
  transform: translateY(6px) rotate(-9.79deg);
  opacity: 0;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
  pointer-events: none;
}
.desktop-card-chips.has-notice .desktop-chips-alert {
  transform: translateY(0) rotate(-9.79deg);
  opacity: 1;
}
.desktop-chips-status {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.desktop-card-chips.is-shaking .desktop-chips-content {
  animation: desktop-chips-shake 360ms ease-in-out;
}
@keyframes desktop-chips-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
}
.desktop-card-discovery {
  --maze-open: 0;
  --maze-transition: 320ms ease-out;
  --maze-enter-easing: ease-out;
}
@supports (transition-timing-function: linear(0, 1)) {
  .desktop-card-discovery {
    /* Approximate the Figma Gentle spring while keeping the prototype's duration. */
    --maze-enter-easing: linear(0, .101 4%, .308 8%, .528 12%, .714 16%, .852 20%,
      .942 24%, .995 28%, 1.02 32%, 1.028 36%, 1.027 40%, 1.018 46%, 1.01 52%, 1 65%, 1);
  }
}
.desktop-card-discovery:focus-visible {
  --maze-open: 1;
  --maze-transition: 1277ms var(--maze-enter-easing);
}
@media (hover: hover) and (pointer: fine) {
  .desktop-card-discovery:hover {
    --maze-open: 1;
    --maze-transition: 1277ms var(--maze-enter-easing);
  }
}
.desktop-card-discovery .desktop-card-visual {
  isolation: isolate;
  background: #2c2c2c;
}
.compact-plugins-image { display: none; }
.maze-background { inset: 0; object-fit: cover; }
.maze-light {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffdc50;
  filter: blur(52.1px);
  pointer-events: none;
  transition: width var(--maze-transition), top var(--maze-transition), left var(--maze-transition);
}
.maze-light-lantern {
  width: calc(34px + 19px * var(--maze-open));
  top: calc(382px - 15px * var(--maze-open));
  left: calc(38px - 9.5px * var(--maze-open));
}
.maze-light-goblet {
  width: calc(34px + 17px * var(--maze-open));
  top: calc(17px - 5px * var(--maze-open));
  left: calc(309px - 8.5px * var(--maze-open));
}
.maze-route {
  top: 3.34px;
  left: 70.5px;
  opacity: var(--maze-open);
  filter: blur(calc(5px * (1 - var(--maze-open))));
  transition: opacity var(--maze-transition), filter var(--maze-transition);
}
.maze-adventurer { bottom: 0; left: 0; }
.maze-goblet { top: 9px; left: 299px; }
.maze-found, .maze-question { transition: opacity var(--maze-transition); }
.maze-found { opacity: var(--maze-open); }
.maze-question { opacity: calc(1 - var(--maze-open)); }
.maze-found-figure { top: 74px; left: 25px; }
.maze-found-frog { top: 292px; left: 100px; }
.maze-found-gem { top: 169px; left: 169px; }
.maze-found-chest { top: 317px; left: 294px; }
.maze-found-spider { top: 27.5px; left: 172px; }
.maze-question-first { top: 79px; left: 36px; }
.maze-question-second { top: 299px; left: 108.5px; }
.maze-question-third { top: 179px; left: 181.5px; }
.maze-question-fourth { top: 321px; left: 301px; }
.maze-question-fifth { top: 36px; left: 178px; }

.desktop-experience { margin-top: 168px; }
.desktop-jobs {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  column-gap: 24px;
  margin-top: 48px;
}
.desktop-job {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: start;
}
.desktop-job-company {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.desktop-job-company img { object-fit: cover; }
.desktop-job-period { font-weight: 400; }

.desktop-skills { margin-top: 168px; }
.desktop-skills-grid {
  display: grid;
  grid-template-columns: 552px minmax(0, 1fr);
  grid-template-rows: minmax(144px, auto) minmax(120px, auto) minmax(120px, auto) auto;
  column-gap: 24px;
  margin: 48px 0 0;
}
.desktop-skills-grid dt { font-weight: 600; }
.desktop-skills-grid dd { margin: 0; }

.desktop-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 264px;
  text-align: center;
}
.desktop-footer-links { display: flex; gap: 24px; }
.desktop-footer-links > span { font-weight: 300; }

@media (width < 985px) {
  body.homepage { font-size: 16px; line-height: 22px; }
  .desktop-intro-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 22px;
    margin-top: 22px;
  }
  .desktop-intro-content > p { order: 2; max-width: none; }
  .desktop-photos { order: 1; gap: 22px; }
  .desktop-contacts { order: 3; display: flex; flex-wrap: wrap; gap: 22px 44px; text-align: left; }
  .desktop-cv { margin-top: 0; }
  .desktop-image-reveal.is-tap-tooltip-visible {
    --image-open: 1;
    --image-scale: 1;
    --tooltip-visibility: visible;
  }
  .desktop-image-reveal:is(.is-tap-tooltip-visible, .tooltip-dismissed) .desktop-image-tooltip {
    transition: none;
  }
  .desktop-image-reveal.is-tap-tooltip-visible .desktop-image-tooltip {
    top: calc(100% + 2px);
    left: 50%;
    max-width: 190px;
    padding: 1px 8px;
    background: var(--home-notice-background);
    font-size: 14px;
    line-height: 18px;
  }
  .desktop-project-grid { display: flex; flex-direction: column; margin-top: 22px; }
  .desktop-card { width: 100%; gap: 22px; }
  .desktop-card-cells .cells-crt-screen { display: none; }
  .desktop-card-autotest .desktop-card-backdrop { width: 140.06%; height: 149.39%; transform: translate(-4.28%, -8.72%); }
  .desktop-card-chips .desktop-card-backdrop { inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .desktop-card-discovery .desktop-card-visual > :not(.compact-plugins-image) { display: none; }
  .desktop-card-discovery .compact-plugins-image { display: block; }
  .compact-plugins-image img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .desktop-jobs { margin-top: 44px; }
  .desktop-job { gap: 22px; }
  .desktop-job-company img { width: 22px; height: 22px; }
  .desktop-skills-grid { margin-top: 33px; }
}

@media (600px <= width < 985px) {
  .homepage .portfolio { margin: 60px 22px 86px; }
  .desktop-nav-inner { margin: 0 22px; }
  .desktop-projects { margin-top: 78px; }
  .desktop-project-grid { gap: 66px; }
  .desktop-card-visual { height: auto; aspect-ratio: 726 / 330; }
  .desktop-card-cells .cells-crt-scene { background: url('../images/home-desktop/tablet-cells.png') center / cover no-repeat; }
  .desktop-card-autotest .desktop-card-screenshot {
    width: 96.27%; height: auto;
    top: 13.15%; left: 4.68%; transform: rotate(-6.4deg);
  }
  .desktop-card-chips .desktop-card-screenshot {
    width: 74.66%; height: auto;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
  }
  .desktop-chip { left: var(--tablet-x); top: var(--tablet-y); transform: rotate(var(--tablet-angle)); width: var(--tablet-size); }
  .desktop-chip-01 { --tablet-x: 70%; --tablet-y: 75%; --tablet-size: 18.59%; --tablet-angle: -6.71deg; }
  .desktop-chip-02 { --tablet-x: 38%; --tablet-y: 67%; --tablet-size: 24.91%; --tablet-angle: 13.2deg; }
  .desktop-chip-03 { --tablet-x: 84%; --tablet-y: 50%; --tablet-size: 23.18%; --tablet-angle: -21.24deg; }
  .desktop-chip-04 { --tablet-x: 4%; --tablet-y: 68%; --tablet-size: 20.31%; --tablet-angle: 7.07deg; }
  .desktop-chip-05 { --tablet-x: -7%; --tablet-y: 35%; --tablet-size: 16.99%; --tablet-angle: 19.84deg; }
  .desktop-experience { margin-top: 110px; }
  .desktop-jobs { grid-template-columns: 38.2% minmax(0, 1fr); gap: 22px; }
  .desktop-skills { margin-top: 110px; }
  .desktop-skills-grid {
    grid-template-columns: 58.8% minmax(0, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 33px 22px;
  }
  .desktop-skills-grid br { display: none; }
  .desktop-footer { margin-top: 154px; }
}

@media (width < 600px) {
  .homepage .portfolio { margin: 22px 16px 66px; }
  #projects, #experience { scroll-margin-top: 66px; }

  .desktop-nav-inner { height: 44px; justify-content: flex-end; padding-inline: 16px; }
  .home-menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .home-menu-button:focus-visible { outline-offset: -4px; }
  .desktop-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    padding: 0 16px 8px;
    background: #fff;
    border-bottom: 1px solid rgb(0 0 0 / .1);
  }
  .home-menu-button[aria-expanded="true"] + .desktop-nav-links,
  .desktop-nav-links > div { display: flex; flex-direction: column; gap: 0; }
  .desktop-nav-links a { display: flex; align-items: center; min-height: 44px; }

  .desktop-intro { min-height: 352px; }
  .desktop-contacts { column-gap: clamp(14px, calc(100vw - 346px), 44px); }
  .desktop-photos {
    --open-photo-space: 80px;
    align-items: start;
    width: min(275px, 100%);
    transition: padding-bottom 420ms var(--ease-out-expo);
  }
  .desktop-photo {
    --expanded-scale: 1.25;
    --image-origin: left top;
    --tooltip-center: 62.5%;
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    aspect-ratio: 126.5 / 185;
  }
  .desktop-photo-cat {
    --image-origin: right top;
    --tooltip-center: 37.5%;
    aspect-ratio: 126.5 / 185.734;
  }
  .desktop-image-tooltip { max-width: 150px; }
  .desktop-photos:has(.desktop-photo:focus-visible:not(.tooltip-dismissed)) {
    padding-bottom: var(--open-photo-space);
  }

  .desktop-projects, .desktop-experience, .desktop-skills, .desktop-footer { margin-top: 88px; }
  .desktop-project-grid { gap: 44px; }
  .desktop-card-visual { height: auto; aspect-ratio: 358 / 198; }
  .desktop-card-cells .cells-crt-scene {
    background-position: 43.71% 52.69%;
    background-size: 225.45% 229.41%;
    transform: none;
  }
  .desktop-card-autotest .desktop-card-screenshot {
    width: 110.97%;
    height: auto;
    top: 18.84%;
    left: 15.27%;
    transform: rotate(-6.4deg);
    transform-origin: center;
    box-shadow: none;
  }
  .desktop-card-chips .desktop-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgb(0 0 0 / .1);
    pointer-events: none;
  }
  .desktop-card-chips .desktop-card-backdrop { object-position: bottom; }
  .desktop-card-chips .desktop-card-screenshot {
    width: 76.82%;
    height: auto;
    top: 63.64%;
    left: 49.58%;
    transform: translate(-50%, -50%);
  }
  .desktop-chip {
    left: var(--mobile-chip-x);
    top: var(--mobile-chip-y);
    width: var(--mobile-chip-width);
    transform-origin: center;
    transform: rotate(var(--mobile-chip-angle));
  }
  .desktop-chip-01 { --mobile-chip-x: 83.28%; --mobile-chip-y: 54.12%; --mobile-chip-width: 19.78%; --mobile-chip-angle: 13.21deg; }
  .desktop-chip-02 { --mobile-chip-x: -9.64%; --mobile-chip-y: 55.31%; --mobile-chip-width: 33.77%; --mobile-chip-angle: 26.28deg; }
  .desktop-chip-03 { --mobile-chip-x: 50.81%; --mobile-chip-y: 82.37%; --mobile-chip-width: 20.66%; --mobile-chip-angle: -17.83deg; }
  .desktop-chip-04 { --mobile-chip-x: 84.05%; --mobile-chip-y: 1.47%; --mobile-chip-width: 18.47%; --mobile-chip-angle: -33.97deg; }
  .desktop-chip-05 { --mobile-chip-x: -7.70%; --mobile-chip-y: 6.78%; --mobile-chip-width: 19.61%; --mobile-chip-angle: 13.95deg; }
  .desktop-chips-alert { display: none; }
  .desktop-chips-status:not(:empty) {
    position: fixed;
    z-index: 3;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    height: auto;
    clip-path: none;
    padding: 10px 18px;
    background: var(--home-notice-background);
    pointer-events: none;
  }

  .desktop-jobs, .desktop-skills-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .desktop-jobs { gap: 66px; }
  .desktop-skills-grid { gap: 22px; }
  .wide-home-break, .wide-home-copy { display: none; }
}

@media (width < 600px) and (hover: hover) and (pointer: fine) {
  .desktop-photos:has(.desktop-photo:hover:not(.tooltip-dismissed)) { padding-bottom: var(--open-photo-space); }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-photos { --open-photo-space: 42px; }
  .maze-light, .maze-route, .maze-found, .maze-question { transition: none; }
  .desktop-image-reveal {
    --expanded-scale: 1;
    --tooltip-center: 50%;
  }
}
