@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Kalice;
  src: url("assets/fonts/kalice-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Kalice, Georgia, serif;
  color: #252b2c;
  background: #eaf0f0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-image: url("assets/images/DSC_8524-BW_new.jpg");
  background-size: 100% auto;
  background-repeat: no-repeat;
}
.background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(1);
  pointer-events: none;
}
.portrait {
  --photo-lift: max(0px, calc(43vw - 260px));
  position: relative;
  width: 100%;
  height: calc(144.269vw - var(--photo-lift));
}
.portrait__image {
  position: absolute;
  inset: calc(-1 * var(--photo-lift)) 0 auto;
  z-index: -1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.portrait__reveal {
  --reveal-x: -1000px;
  --reveal-y: -1000px;
  --reveal-radius: clamp(220px, 26vw, 500px);
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0%, #000 48%, transparent 100%);
  mask-image: radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0%, #000 48%, transparent 100%);
  mask-repeat: no-repeat;
  transition: opacity 260ms ease;
}
.portrait.is-revealing .portrait__reveal { opacity: 1; }
@supports not ((mask-image: radial-gradient(black, transparent)) or (-webkit-mask-image: radial-gradient(black, transparent))) {
  .portrait__reveal { display: none; }
}
.portrait__intro {
  position: absolute;
  z-index: 1;
  inset: clamp(28px, 3.3vw, 52px) 20px auto;
  text-align: center;
}
h1 {
  margin: 0;
  font: 400 38px / 1.15 Geist, Arial, sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.portrait__bio {
  max-width: 560px;
  margin: 14px auto 0;
  font: 400 16px / 1.4 Kalice, Georgia, serif;
  color: #3c4546;
  text-wrap: balance;
}
.projects {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100% - 64px, 1040px);
  margin: 0 auto;
  padding: 22px 0 64px;
}
.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 138px;
  padding: 28px 18px;
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: 20px;
  background: rgb(255 255 255 / 24%);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.project__name {
  font: 400 clamp(17px, 1.6vw, 22px) / 1.25 Geist, Arial, sans-serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.project__domain {
  font: 400 15px / 1.4 Kalice, Georgia, serif;
  color: #596567;
  overflow-wrap: anywhere;
}
.project:focus-visible {
  outline: 2px solid #45595b;
  outline-offset: 5px;
  background: rgb(255 255 255 / 62%);
}
@media (hover: hover) {
  .project:hover {
    background: rgb(255 255 255 / 58%);
    border-color: rgb(255 255 255 / 95%);
    transform: translateY(-3px);
  }
}
@media (max-width: 640px) {
  .portrait { --photo-lift: 0px; }
  .portrait__intro { inset-inline: 16px; }
  .portrait__bio { max-width: 330px; margin-top: 9px; font-size: 16px; }
  .projects {
    grid-template-columns: 1fr;
    gap: 10px;
    width: calc(100% - 40px);
    padding: 22px 0 36px;
  }
  .project { min-height: 96px; gap: 6px; padding: 20px; border-radius: 16px; }
  .project__name { font-size: 19px; }
}
@media (max-width: 360px) {
  .portrait { --photo-lift: -60px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait__reveal { transition: none; }
  .project { transition: none; }
  .project:hover { transform: none; }
}
