:root {
  color-scheme: light;
  font-family: "Lebowski by Pragmatica", "Arial Narrow", Arial, sans-serif;
  color: #0a0a0a;
  background: #fff;
  --secondary: rgb(10 10 10 / 60%);
  --avatar-size: 52px;
  --project-grid-max-width: 1392px;
}
* { box-sizing: border-box; }
body { margin: 0; }
.home-page { padding: 20px 24px 40px; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #7356bd; outline-offset: 4px; }
img { display: block; }
h1, h2, p { margin: 0; }
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 8px 12px;
  background: #fff;
  transform: translateY(calc(-100% - 8px));
}
.skip:focus { transform: none; }
.home-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--avatar-size) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 20px;
}
.home-header-link {
  justify-self: start;
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
}
.home-header-link:last-child { justify-self: end; }
.home-header-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-avatar {
  position: relative;
  width: var(--avatar-size);
  height: var(--avatar-size);
  overflow: hidden;
  border-radius: 16px;
}
.home-avatar img {
  position: absolute;
  inset: -6.85% auto auto -6.85%;
  width: 113.7%;
  height: 113.7%;
  object-fit: cover;
}
.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
}
.home-intro {
  width: min(448px, calc((100% - 48px) / 3 + .67px));
  text-align: center;
  font-size: 18px;
  line-height: 26px;
}
.home-intro h1 {
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
}
.home-role { margin-top: 6px; color: var(--secondary); }
.home-description { margin-top: 52px; }
.home-projects {
  width: min(100%, var(--project-grid-max-width));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.home-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border-radius: 24px 24px 4px 4px;
}
.home-cover {
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: min(24px, 7%);
  aspect-ratio: 448 / 400;
  max-height: 400px;
  overflow: hidden;
  border-radius: 24px;
  background: #eae5ef;
}
.home-cover-media { min-width: 0; }
.home-cover-media img { width: 100%; height: auto; }
.home-cover--unistars {
  background: url("assets/home/unistars-glow.svg") -373px 90px no-repeat, #d6caf4;
  --cover-shadow: 0 8px 24px -20px rgb(81 56 153 / 80%), 0 10px 24px -8px rgb(81 56 153 / 25%);
}
.home-cover--dentist {
  background:
    url("assets/home/highlight.svg") -5.33px -283px no-repeat,
    url("assets/home/dentist-glow.svg") -333.33px 90px no-repeat,
    #adcfd1;
}
.home-cover--a101 {
  background:
    url("assets/home/highlight.svg") -4.67px -283px no-repeat,
    url("assets/home/a101-glow.svg") -332.67px 90px no-repeat,
    #ed7c73;
  --cover-shadow: 0 8px 24px -20px rgb(194 90 81 / 80%), 0 10px 24px -8px rgb(194 90 81 / 25%);
}
.home-cover--unistars .home-cover-media, .home-cover--a101 .home-cover-media {
  flex: 0 0 min(155px, 36.75cqi);
  aspect-ratio: 155 / 336;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--cover-shadow);
}
.home-cover--unistars img, .home-cover--a101 img {
  height: 100%;
  object-fit: cover;
}
.home-cover--dentist .home-cover-media {
  flex: 0 0 min(359px, 85cqi);
  aspect-ratio: 359 / 312;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px -20px rgb(86 152 162 / 80%), 0 10px 24px -8px rgb(86 152 162 / 25%);
}
.home-cover--dentist img {
  height: 100%;
  object-fit: contain;
}
.home-cover:not(.home-cover--unistars, .home-cover--dentist, .home-cover--a101) {
  padding: 16px;
}
.home-cover:not(.home-cover--unistars, .home-cover--dentist, .home-cover--a101) .home-cover-media {
  max-width: 90%;
  max-height: 90%;
}
.home-cover:not(.home-cover--unistars, .home-cover--dentist, .home-cover--a101) img {
  max-height: min(320px, 72cqi);
  object-fit: contain;
}
.home-card-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-inline: 4px;
  font-size: 18px;
  line-height: 26px;
}
.home-card-label h2 { font-size: inherit; font-weight: 400; }
.home-card-label p { color: var(--secondary); text-align: right; }
.home-card:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.home-contact {
  display: block;
  min-width: 106px;
  text-align: center;
  padding: 7px 16px 9px;
  border-radius: 12px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 300;
  font-size: 18px;
  line-height: 26px;
  transition: background .16s ease;
}
.home-contact:hover { background: #343434; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-cover-media { transition: transform 230ms cubic-bezier(.2, .75, .2, 1); }
  .home-card:is(:hover, :focus-visible) .home-cover-media { transform: translateY(-8px); }
}
@media (max-width: 1050px) {
  .home-intro { width: min(100%, 448px); }
}
@media (max-width: 900px) {
  .home-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
}
@media (max-width: 680px) {
  .home-page { padding: 24px 24px 60px; }
  .home-main { gap: 60px; }
  .home-projects { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .home-cover { aspect-ratio: 354 / 320; max-height: 320px; gap: min(20px, 5.65%); }
  .home-cover--unistars .home-cover-media, .home-cover--a101 .home-cover-media {
    flex-basis: min(129px, 36.45cqi);
    aspect-ratio: 129 / 280;
    border-radius: 16px;
  }
  .home-cover--dentist .home-cover-media { flex-basis: min(290px, 81.92cqi); }
}
@media (prefers-reduced-motion: reduce) {
  .home-contact { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: 260ms; }
  ::view-transition-group(case-cover) {
    animation-duration: 440ms;
    animation-timing-function: cubic-bezier(.22, .72, .24, 1);
  }
  ::view-transition-image-pair(case-cover) {
    overflow: clip;
    border-radius: 24px;
  }
  ::view-transition-old(case-cover),
  ::view-transition-new(case-cover) {
    height: 100%;
    object-fit: cover;
  }
}
