:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #4b4b4b;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
}

.profile {
  --profile-top: clamp(64px, 16.8svh, 180px);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: var(--profile-top) 24px 64px;
}

html:has(body.profile-showcase-active),
body.profile-showcase-active {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body.profile-showcase-active {
  position: fixed;
  top: calc(-1 * var(--profile-scroll-y, 0px));
  width: 100%;
}

body.profile-showcase-active .page-switcher {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
}

body.profile-showcase-open h1 {
  transform: translateY(calc(clamp(20px, 4dvh, 40px) - var(--profile-top) + var(--profile-scroll-y, 0px)));
}

h1 {
  margin: 0 0 48px;
  color: #363636;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.8px;
  text-align: center;
  position: relative;
  z-index: 20;
  transition: transform 720ms cubic-bezier(.22, 1, .36, 1);
}

.profile-copy {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  min-height: 0;
}

.profile-intro,
.profile-details p {
  transform: translate3d(0, 0, 0) rotate(0deg);
  opacity: 1;
  transition: transform 720ms cubic-bezier(.22, 1, .36, 1), opacity 560ms ease;
}

.profile-intro {
  --fling-x: -120vw;
  --fling-y: -45vh;
  --fling-angle: -10deg;
}

.profile-details p:nth-child(1) {
  --fling-x: 120vw;
  --fling-y: -25vh;
  --fling-angle: 9deg;
}

.profile-details p:nth-child(2) {
  --fling-x: -120vw;
  --fling-y: 30vh;
  --fling-angle: -8deg;
}

.profile-details p:nth-child(3) {
  --fling-x: 120vw;
  --fling-y: 55vh;
  --fling-angle: 12deg;
}

.profile-details p:nth-child(4) {
  --fling-x: -90vw;
  --fling-y: 100vh;
  --fling-angle: -6deg;
}

body.profile-showcase-open .profile-intro,
body.profile-showcase-open .profile-details p {
  transform: translate3d(var(--fling-x), var(--fling-y), 0) rotate(var(--fling-angle));
  opacity: 0;
  pointer-events: none;
  transition: transform 640ms cubic-bezier(.55, 0, .8, .35), opacity 560ms ease-in;
}

p {
  margin: 0 0 25px;
}

p:last-child {
  margin-bottom: 0;
}

.profile-copy a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.profile-copy a:hover {
  color: #111;
}

.profile-copy a:focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.showcase-reveal {
  /* Keep identical bounds through both directions of the reveal. */
  position: fixed;
  z-index: 10;
  top: clamp(80px, 12dvh, 108px);
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 60px));
  left: 50%;
  width: min(1120px, calc(100vw - 104px));
  min-height: 0;
  transform: translateX(-50%);
  visibility: hidden;
  overflow-anchor: none;
  transition: visibility 0ms linear 640ms;
}

.showcase-reveal-inner {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.showcase-card {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: #fff;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 640ms cubic-bezier(.65, 0, .35, 1);
}

.showcase-reveal[aria-hidden="false"] {
  visibility: visible;
  transition: visibility 0ms;
}

.showcase-reveal[aria-hidden="false"] .showcase-card {
  clip-path: inset(0);
}

.showcase-close {
  position: absolute;
  top: 0;
  left: calc(100% + 4px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.showcase-reveal[aria-hidden="false"] .showcase-close {
  opacity: 1;
  pointer-events: auto;
}

.showcase-close svg {
  width: 20px;
  height: 20px;
  transition: transform 160ms ease, stroke-width 160ms ease;
}

.showcase-close:hover svg {
  transform: scale(1.1);
  stroke-width: 2;
}

.showcase-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -6px;
}

.showcase-frame {
  position: relative;
  height: 100%;
  min-height: 0;
  background: #fff;
}

.showcase-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 240ms ease;
}

.showcase-frame.is-loaded iframe {
  opacity: 1;
}

.showcase-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 24px;
  color: #767676;
  font-size: 15px;
  text-align: center;
}

.showcase-frame.is-loaded .showcase-loading {
  visibility: hidden;
}

@media (max-width: 600px) {
  .profile {
    --profile-top: 64px;
    padding-bottom: 48px;
  }

  h1 {
    margin-bottom: 36px;
    font-size: 30px;
  }

  .profile-copy {
    font-size: 17px;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1,
  .profile-intro,
  .profile-details p,
  body.profile-showcase-open .profile-intro,
  body.profile-showcase-open .profile-details p,
  .showcase-reveal,
  .showcase-reveal[aria-hidden="false"],
  .showcase-card,
  .showcase-close,
  .showcase-frame iframe,
  .showcase-close svg {
    transition: none;
  }
}
