@font-face {
  font-family: "TT Interfaces";
  src: url("assets/fonts/TTInterfaces-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #2f3133;
  --muted: #808080;
  --line: #f2f2f2;
  --radius-2xl: 16px;
  --page-padding: 24px;
  --header-top-space: 64px;
  font-family: "TT Interfaces", system-ui, sans-serif;
  font-size: 14px;
  line-height: 20.3px;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  overscroll-behavior-y: contain;
}
h1,
h2,
p,
ul {
  margin: 0;
  font: inherit;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
  border-radius: 2px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.main-info {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  align-items: start;
  padding: calc(var(--header-top-space) + env(safe-area-inset-top, 0px))
    max(var(--page-padding), env(safe-area-inset-right, 0px)) 64px
    max(var(--page-padding), env(safe-area-inset-left, 0px));
}
.identity h1 {
  font-weight: 400;
}
.identity p {
  color: var(--muted);
  line-height: 21px;
}
.content-column {
  width: 520px;
  max-width: 100%;
  padding-bottom: 64px;
}
.navigation,
.quick-links {
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.navigation {
  padding-bottom: 16px;
}
.navigation a {
  color: #80808099;
}
.navigation a[aria-current="page"] {
  color: var(--ink);
}
.quick-links {
  white-space: nowrap;
}
#about,
#career {
  padding-top: 16px;
}
html[data-view="about"] #career,
html[data-view="career"] #about,
html[data-view="career"] .works {
  display: none;
}
.biography {
  display: grid;
  gap: 16px;
}
.contacts {
  padding-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}
.contacts:before {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: #ededed;
  flex-basis: 50px;
  margin-bottom: 26px;
}
.contacts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  column-gap: 12px;
  row-gap: 0;
}
.contacts:before {
  grid-column: 1/-1;
  margin-bottom: 38px;
}
.contacts a {
  text-decoration: underline;
  text-decoration-color: #c7c7c7;
  text-decoration-thickness: 1px;
  text-underline-position: from-font;
}
.career-group + .career-group {
  margin-top: 24px;
}
.career-group h2 {
  color: #0006;
  line-height: 18px;
  letter-spacing: -0.00643em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.companies li,
.achievements li {
  display: grid;
  gap: 16px;
  padding: 11.76px 0;
  border-bottom: 1px solid var(--line);
  line-height: 18px;
  color: #111;
}
.companies li:last-child,
.achievements li:last-child {
  border-bottom: 0;
}
.companies li {
  grid-template-columns: clamp(48px, 12vw, 92px) max-content minmax(0, 1fr);
  gap: clamp(8px, 2vw, 16px);
  align-items: center;
}
.role,
.result {
  color: #0006;
  text-align: right;
  letter-spacing: -0.00643em;
}
.achievements li {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
}
.works,
.works-fallback {
  display: grid;
  gap: 8px;
  padding: 0 max(var(--page-padding), env(safe-area-inset-right, 0px))
    max(24px, env(safe-area-inset-bottom, 0px))
    max(var(--page-padding), env(safe-area-inset-left, 0px));
}
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.work-row.paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.work-image {
  display: block;
  width: 100%;
  height: auto;
}
.work-picture {
  display: block;
  min-width: 0;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: #f5f5f5;
}
/* A zero-height sticky surface keeps the fade separate from scrolling content. */
.top-fade {
  position: sticky;
  top: -1px;
  height: 0;
  z-index: 10;
  pointer-events: none;
}
.top-fade::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: #fff;
}
.top-fade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: env(safe-area-inset-top, 0px);
  height: var(--header-top-space);
  background: linear-gradient(
    180deg,
    #fff 0%,
    #fff 15%,
    rgb(255 255 255 / 92%) 26%,
    rgb(255 255 255 / 78%) 36%,
    rgb(255 255 255 / 60%) 46%,
    rgb(255 255 255 / 42%) 55%,
    rgb(255 255 255 / 26%) 64%,
    rgb(255 255 255 / 13%) 73%,
    rgb(255 255 255 / 5%) 82%,
    rgb(255 255 255 / 0%) 100%
  );
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 24px;
  transform: translateY(-180%);
  z-index: 20;
  background: #fff;
  padding: 8px;
}
.skip-link:focus {
  transform: none;
}
@media (max-width: 1023px) {
  :root {
    --header-top-space: 32px;
  }
  .main-info {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px 16px;
  }
  .identity {
    grid-row: 1;
    grid-column: 1;
  }
  .quick-links {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }
  .content-column {
    grid-row: 2;
    grid-column: 1/-1;
    padding-bottom: 24px;
  }
  .works,
  .works-fallback {
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 639px) {
  :root {
    --page-padding: 16px;
    --header-top-space: 24px;
  }
  .main-info {
    gap: 24px;
  }
  .content-column {
    width: 100%;
    padding-bottom: 16px;
  }
  .achievements li {
    gap: 12px;
    align-items: start;
  }
  .work-picture {
    border-radius: 8px;
  }
  .quick-links a,
  .navigation a {
    padding: 8px 0;
    margin: -8px 0;
  }
}

/* Underlines stay quiet until hover or keyboard focus. */
a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-underline-position: from-font;
  transition: text-decoration-color 300ms ease;
}
.contacts a,
.text-link {
  text-decoration-color: #c7c7c7;
}
a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}
@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

.motion-boot
  :is(
    .identity,
    .quick-links,
    .navigation,
    .biography > p,
    .contacts,
    .career-group > h2,
    .career-group li
  ) {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .motion-boot
    :is(
      .identity,
      .quick-links,
      .navigation,
      .biography > p,
      .contacts,
      .career-group > h2,
      .career-group li
    ) {
    opacity: 1;
  }
}

/* Dim parent surfaces independently from their children's reveal animations. */
.identity > *,
.content-column,
.works,
.works-fallback {
  transition: opacity 300ms ease;
}
.quick-links a {
  text-decoration: none;
  transition: opacity 300ms ease;
}
body:has(.quick-links a:focus-visible):not(:has(.quick-links a:hover))
  :is(.identity > *, .content-column, .works, .works-fallback),
body:has(.quick-links a:focus-visible):not(:has(.quick-links a:hover))
  .quick-links
  a:not(:focus-visible) {
  opacity: 0.5;
}
@media (hover: hover) {
  body:has(.quick-links a:hover)
    :is(.identity > *, .content-column, .works, .works-fallback),
  body:has(.quick-links a:hover) .quick-links a:not(:hover) {
    opacity: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .identity > *,
  .content-column,
  .works,
  .works-fallback,
  .quick-links a {
    transition: none;
  }
}

/* Crop the first exported image's edge while keeping its proportions. */
:is(.works, .works-fallback) > .work-row:first-child .work-picture {
  background: #f6f6f6;
}
:is(.works, .works-fallback) > .work-row:first-child .work-image {
  transform: scale(1.025);
  transform-origin: center;
}
.work-row.joined .work-picture {
  border-radius: var(--radius-2xl);
}

.navigation a {
  text-decoration: none;
}
