@font-face {
  font-family: "Space Grotesk";
  src: url("/portal/font.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
::selection {
  background: var(--signal);
  color: var(--black);
}
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
main {
  min-height: 100svh;
  width: min(100%, 460px);
  margin: auto;
  padding: 72px 28px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 32%;
  display: block;
}
h1 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin: 16px 0 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 8px;
  border-radius: var(--radius-small);
}
@media (max-width: 600px) {
  main {
    padding-top: 48px;
    padding-bottom: 36px;
  }
}


.work-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 34px;
  padding: 22px 24px;
  width: 100%;
  max-width: 350px;
  background: rgba(240, 237, 228, 0.045);
  border-radius: var(--radius-surface);
}
.work-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.work-brand img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  border-radius: 18%;
}
.work-heading {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.035em;
  margin-top: 16px;
}
.work-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  margin-top: 7px;
}
.work-action {
  font-size: 13px;
  margin-top: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.work-link:hover, .work-link:focus-visible {
  background: var(--signal);
  color: var(--ivory);
}
.work-link:is(:hover, :focus-visible) .work-description { color: var(--ivory); }

.about {
  width: 100%;
  max-width: 350px;
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  line-height: 1.75;
  color: var(--dim);
}
.about p {
  margin: 0 0 16px;
}
.about p:last-child {
  margin-bottom: 0;
}
.about .about-close {
  color: var(--ivory);
}
.work-link + .work-link {
  margin-top: 14px;
}
.work-link:not(:first-of-type) .work-brand img {
  border-radius: 0;
}


/* Autoplay and interaction set one target; every visual uses the same progress. */
@property --reveal {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.identity {
  width: 100%;
  --reveal: 0;
  transition: --reveal 700ms cubic-bezier(.22,.61,.36,1);
}
.identity[data-auto-reveal] { --reveal: 1; }
.identity:is([open], :has(summary:focus-visible)) { --reveal: 1; }
@media (hover: hover) {
  .identity:hover { --reveal: 1; }
}
.identity summary { display: flex; flex-direction: column; align-items: center; cursor: pointer; list-style: none; }
.identity summary::-webkit-details-marker { display: none; }
.identity summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 8px; border-radius: var(--radius-small); }
.name-accessible { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.name-sequence { display: flex; justify-content: center; align-items: center; width: 280px; height: 36px; }
.name-lee, .name-joshua { display: inline-flex; align-items: baseline; white-space: nowrap; }
.name-lee { transform: translateX(calc(94px * var(--reveal))); margin-right: calc(14px * var(--reveal)); }
.name-joshua { transform: translateX(calc(-52px * var(--reveal))); }
.name-extra { position: relative; display: inline-block; width: calc(var(--letter-space) * var(--reveal)); opacity: var(--reveal); transform: translateY(calc(-10px * (1 - var(--reveal)))); }
.name-extra > span { position: relative; display: block; width: max-content; overflow: visible; }
.name-e { --letter-space: 14px; }
.name-jo { --letter-space: 28px; }
.portrait-flip { display: block; width: 80px; height: 80px; perspective: 600px; }
.portrait-faces { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(calc(180deg * var(--reveal))); }
.portrait-faces .portrait { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.portrait-back { transform: rotateY(180deg); object-position: center; }
.work-link { transition: color 160ms ease, background 160ms ease; }
@media (prefers-reduced-motion: reduce) {
  .identity { animation: none; transition: none; }
  .work-link { transition: none; }
}
