@font-face {
  font-family: 'Iosevka';
  src: url('/fonts/iosevka-regular-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Iosevka';
  src: url('/fonts/iosevka-semibold-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --yellow: #fcee0a;
  --cyan: #20e6ed;
  --pink: #ff72cd;
  --ink: #10110f;
  --body-size: 16px;
  --body-leading: 1.6;
  font-family: 'Iosevka', ui-monospace, monospace;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  background: var(--ink);
  color: #eeeee6;
}
* {
  box-sizing: border-box;
}
.page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* Safari 15.x does not support overflow: clip. */
  overflow-x: hidden;
  overflow-x: clip;
}
.page::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.045;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.page__ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, #2b322342, transparent 57%),
    radial-gradient(ellipse at 0% 100%, #252c191c, transparent 50%);
}
.page__main {
  position: relative;
  /* Clip overscanned artwork outside the 3D scene, including in iOS WebKit. */
  overflow: hidden;
  flex: 1;
  display: grid;
  align-items: stretch;
  padding: 0;
}
.stage {
  min-width: 0;
  width: 100%;
  perspective: none;
  position: relative;
  isolation: isolate;
}
.stage__shadow {
  display: none;
  position: absolute;
  inset: 8% 0 -3%;
  border-radius: 30px;
  background: #000;
  filter: blur(32px);
  opacity: 0.8;
  transform: translateY(25px) scale(0.9);
}
.card {
  position: relative;
  border-radius: 0;
  transform: none;
  transform-style: flat;
  will-change: transform;
}
.card__layers {
  display: grid;
  position: relative;
  border-radius: inherit;
  transform: none;
  transform-style: flat;
}
.card__layers--animated {
  transition: var(--flip-transition, transform 280ms cubic-bezier(0.65, 0, 0.35, 1));
}
.card--flipped {
  --card-rotation: 180deg;
}
.card__face {
  --foil-primary: #fcee0a;
  --foil-mid: #cebd4a;
  --foil-secondary: #30cfc6;
  --foil-highlight: #fff28c;
  box-shadow: none;
  position: relative;
  display: flex;
  grid-area: 1 / 1;
  min-width: 0;
  padding: 0;
  border-radius: inherit;
  background: #252b20;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card__face--front {
  --foil-secondary: #c9a34a;
}
.card__face[aria-hidden='true'] {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
}
.card__face--back {
  transform: none;
  --yellow: var(--cyan);
  --foil-primary: var(--cyan);
  --foil-mid: #4abdce;
  --foil-secondary: #cfc630;
  --foil-highlight: #8cfff2;
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-nav {
  --link-color: #fff;
  text-decoration: none;
  position: relative;
  flex: none;
  white-space: nowrap;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: var(--body-size);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}
.card-nav__label {
  position: relative;
}
.card-nav__content {
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-nav__glint {
  position: absolute;
  inset: 0;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  /* Glow is applied after masking, so light spills beyond the lit strokes. */
  filter: drop-shadow(0 0 0.5px #fff) drop-shadow(-2px 0 2px #fcee0a)
    drop-shadow(0 0 3px var(--cyan)) drop-shadow(2px 0 4px var(--pink));
  animation: var(--glint-flash, flip-glint-flash 6s linear infinite);
  animation-play-state: var(--effect-play-state, running);
}
.card-nav__content--glint {
  /* A soft beam with a tight specular core crosses letters and arrow together. */
  mask-image: linear-gradient(
    110deg,
    transparent 42%,
    #0003 46%,
    #000 49%,
    #000 51%,
    #0003 54%,
    transparent 58%
  );
  mask-size: 300% 100%;
  mask-repeat: no-repeat;
  animation: var(--glint-sweep, flip-glint-sweep 6s cubic-bezier(0.25, 0.1, 0.35, 1) infinite);
  animation-play-state: var(--effect-play-state, running);
}
@keyframes flip-glint-sweep {
  0%,
  83% {
    mask-position: 100% 0;
  }
  94%,
  100% {
    mask-position: 0% 0;
  }
}
@keyframes flip-glint-flash {
  0%,
  83%,
  94%,
  100% {
    opacity: 0;
  }
  85.5%,
  90% {
    opacity: 1;
  }
}
.card__face[aria-hidden='true'],
.card--paused {
  --effect-play-state: paused;
}
.card__surface {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  /* WebKit can paint composited texture layers outside a rounded overflow clip. */
  clip-path: inset(0);
  background: #252b20;
  isolation: isolate;
}
.card__edge {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid transparent;
  /* Only a border is painted: no full-size rainbow backing to leak in WebKit. */
  border-image: linear-gradient(135deg, var(--cyan), var(--pink) 35%, #fcee0a 65%, var(--cyan)) 1;
  box-shadow:
    0 2px 0 #703b57,
    0 4px 0 #1c2117,
    0 8px 20px #0006;
  opacity: 0;
}
.card__foil {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    115deg,
    var(--foil-primary) 0%,
    var(--foil-mid) 8%,
    var(--foil-secondary) 17%,
    #db599f 24%,
    var(--pink) 33%,
    var(--foil-highlight) 42%,
    var(--foil-primary) 50%
  );
  background-size: 214.286% 214.286%;
  background-position: 50% 50%;
  opacity: 0.91;
  will-change: transform;
}
.card__foil::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 40%, #ff72cd70, #ff72cd00 48%),
    repeating-linear-gradient(125deg, #0000 0 2px, #fff28018 2px 3px, #0004 3px 4px),
    repeating-conic-gradient(
      from 20deg at 50% 50%,
      #ff72cd33 0deg,
      #70fff333 20deg,
      #fcee0a44 40deg,
      #0000 60deg
    );
  mix-blend-mode: color-dodge;
}
.card__etching {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: repeating-radial-gradient(
    ellipse at 75% 74%,
    transparent 0 6px,
    #fff7c242 6.5px 7px,
    transparent 7.5px 13px
  );
  mix-blend-mode: overlay;
}
.card__dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.52;
  mix-blend-mode: multiply;
  image-rendering: pixelated;
}
.card__glare {
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at 50% 50%, #e76ba780 0%, #df78ad59 7.5%, #df78ad00 28.5%);
  mix-blend-mode: normal;
  opacity: 0.32;
  will-change: transform, opacity;
}
.card__vignette {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px #ff48b838,
    inset 0 0 16px #ff299f1c;
  background:
    linear-gradient(90deg, #0b150be8, #0b150bb8 55%, #0b150b26),
    linear-gradient(0deg, transparent 20%, #111a12e6 100%);
}
.card__dither--back {
  mask-image: radial-gradient(ellipse at 0% 100%, #000 10%, #0008 45%, transparent 75%);
}
.card__vignette--back {
  background: radial-gradient(ellipse at 0% 100%, #0b151bcc 0%, #0b151bd9 35%, #0b151bf2 65%);
}
.card__content {
  --text-gap: 16px;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--text-gap);
  transform: none;
}
.identity__name {
  font-size: clamp(32px, 7vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0;
  color: var(--yellow);
}
.identity__fingerprint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: var(--text-gap) 0 0;
  font-size: var(--body-size);
  line-height: var(--body-leading);
}
.identity__fingerprint-icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: calc((var(--body-leading) * 1em - 17px) / 2);
}
.identity__fingerprint-group {
  white-space: nowrap;
}
.identity__fingerprint-link {
  text-decoration: none;
}
.identity__role {
  margin: var(--text-gap) 0 0;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  color: #d0d8c9;
}
.text-link {
  color: var(--link-color, #f0f4df);
  text-decoration-color: #dfd38b80;
  text-underline-offset: 4px;
}
.text-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}
/* Headings receive focus after navigation to announce the active view. */
.identity__name:focus,
.resume__title:focus {
  outline: none;
}
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text__slice {
  position: absolute;
  inset: 0;
  color: inherit;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
}
.glitch-text__slice--top {
  clip-path: inset(15% 0 58%);
}
.glitch-text__slice--bottom {
  clip-path: inset(58% 0 14%);
}
/* Keep the sliced copies local to the text; no layout changes or frame loop. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .text-link:hover .glitch-text {
    animation: link-twitch 5s steps(1, end) infinite;
    animation-play-state: var(--effect-play-state, running);
  }
  .text-link:hover .glitch-text__slice {
    animation: link-noise 850ms steps(1, end) infinite;
    animation-play-state: var(--effect-play-state, running);
  }
  .text-link:hover .glitch-text__slice--bottom {
    animation-duration: 1.1s;
    animation-direction: reverse;
  }
}
@keyframes link-twitch {
  0%,
  4%,
  7%,
  36%,
  70%,
  97%,
  99%,
  100% {
    transform: none;
  }
  2% {
    transform: skewX(-4deg);
  }
  5% {
    transform: translateX(0.5px) skewX(3deg);
  }
  34%,
  68% {
    transform: skewX(-3deg);
  }
  /* Tarnhelm's large twitch: a 50ms shear near the end of each cycle. */
  96% {
    transform: rotateX(10deg) skewX(60deg);
  }
  98% {
    transform: translateX(-1px) skewX(-12deg);
  }
}
@keyframes link-noise {
  0%,
  14%,
  35%,
  65%,
  100% {
    opacity: 0;
    transform: none;
  }
  4% {
    opacity: 0.85;
    transform: translateX(-2px);
  }
  9% {
    opacity: 0.7;
    transform: translateX(2px);
  }
  26% {
    opacity: 0.8;
    transform: translateX(1px);
  }
  30% {
    opacity: 0.65;
    transform: translateX(-3px);
  }
  58% {
    opacity: 0.75;
    transform: translateX(2px);
  }
  88% {
    opacity: 0.8;
    transform: translateX(-1px);
  }
}
.socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--text-gap);
}
.socials__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  text-decoration: none;
}
.identity__job {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  text-decoration: none;
}
.identity__icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: calc((1.6em - 17px) / 2);
}
.glitch-text,
.card-nav__text {
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.socials__icon,
.socials__glyph {
  width: 17px;
  height: 17px;
}
.socials__icon {
  display: inline-flex;
  flex: none;
}
.resume {
  --nav-right: 16px;
  --nav-top: 16px;
  gap: 20px;
  color: #d0e9e9;
}
.resume__title {
  margin: 0;
  min-height: 44px;
  color: var(--cyan);
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.2;
}
.resume__company {
  margin: 0;
  color: var(--cyan);
  font-size: var(--body-size);
  font-weight: 600;
  line-height: var(--body-leading);
}
.resume__link {
  color: inherit;
  text-decoration-color: #20e6ed80;
}
.resume__description {
  color: #acbcb7;
  font-weight: 400;
}
.resume__entry--project {
  border-top: 1px solid #8adbd033;
  margin-top: 4px;
  padding-top: 12px;
}
.resume__role {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin: 2px 0 0;
  font-size: var(--body-size);
  line-height: var(--body-leading);
}
.resume__dates {
  color: #acbcb7;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 601px) and (hover: hover) and (pointer: fine) {
  :root {
    --body-size: 18px;
  }
  .page__main {
    overflow: visible;
    place-items: center;
    padding: 56px 40px;
  }
  .stage {
    perspective: 1000px;
    width: min(720px, 100%);
  }
  .stage__shadow {
    display: block;
  }
  .card {
    border-radius: 20px;
    transform: rotateZ(-2deg);
    transform-style: preserve-3d;
  }
  .card__layers {
    transform: rotateY(var(--card-rotation, 0deg));
    transform-style: preserve-3d;
  }
  .card__header {
    display: block;
  }
  .card__face {
    padding: 1px;
    background:
      linear-gradient(
        115deg,
        #fff0 12%,
        #fff6 20%,
        #fff0 28%,
        #0003 48%,
        #fff0 64%,
        #fff8 73%,
        #fff0 81%
      ),
      linear-gradient(135deg, var(--cyan), var(--pink) 35%, #fcee0a 65%, var(--cyan));
    box-shadow:
      0 0 0 1px #ff72cd40,
      1px 4px 0 #703b57,
      2px 6px 0 #1c2117,
      0 20px 70px #0007;
  }
  .card__face[aria-hidden='true'] {
    display: flex;
    position: relative;
    inset: auto;
    overflow: visible;
    visibility: visible;
  }
  .card__face--back {
    transform: rotateY(180deg);
  }
  .card__surface {
    inset: 1px;
    border-radius: 19px;
    clip-path: inset(0 round 19px);
  }
  .card__edge {
    display: none;
  }
  .identity__name {
    margin-right: 96px;
  }
  .resume__title {
    margin-right: 104px;
  }
  .socials__link {
    min-height: 24px;
  }
  .resume__role {
    flex-direction: row;
  }
  .card__content {
    transform: translateZ(1px);
    min-height: 720px;
    padding: 32px 48px 48px;
  }
  .card-nav {
    position: absolute;
    padding: 0 12px;
    right: var(--nav-right, 24px);
    top: var(--nav-top, 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page {
    --glint-flash: none;
    --glint-sweep: none;
    --flip-transition: none;
  }
  .card,
  .card__foil,
  .card__glare {
    will-change: auto;
  }
}
