.showcase-preview {
  --red: #353fc7;
  --red-deep: #22298d;
  --red-soft: #edeeff;
  --line: #e1e4f0;
  --soft: #f3f4fb;
  --frame: min(92%, 1520px);
  --navy: #040518;
}

.showcase-preview .site-nav .nav-inner {
  width: var(--frame);
}

@media (min-width: 761px) {
  .showcase-preview .site-nav .nav-links {
    gap: 8px;
  }

  .showcase-preview .site-nav .nav-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
  }

  .showcase-preview .site-nav .nav-links > a:not(.nav-cta)::after {
    right: 18px;
    left: 18px;
  }
}

.js .showcase-preview .site-nav:not(.is-scrolled) {
  background: linear-gradient(180deg, #040518a6, transparent);
}

.js .showcase-preview .site-nav:not(.is-scrolled) .brand-dot { color: #a6b4ff; }

.showcase-preview .cta-band {
  background: radial-gradient(ellipse at 79% 0%, #353cb4 0%, transparent 52%), #10143c;
}

.showcase-preview .cta-copy h2 span { color: #c8ceff; }
.showcase-preview .site-footer { background: #080a20; }

.showcase-preview .resume-list li { gap: 12px; align-items: baseline; }
.showcase-preview .resume-list li > span { flex-shrink: 0; }

.showcase-preview .resume-list li > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.site-versions { display: flex; gap: 16px; align-items: center; }
.site-versions [aria-current] { color: #c8ceff; }
.site-versions a { color: #eff0ff; text-decoration: underline; text-underline-offset: 3px; }

.showcase {
  --pointer-x: 0px;
  --pointer-y: 0px;
  --scroll-progress: 0;
  --enter-ease: cubic-bezier(.16, 1, .27, 1);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: max(750px, 100svh);
  overflow: clip;
  color: #f6f7ff;
  background: var(--navy);
}

.showcase-visual,
.showcase-shade,
.showcase-flare {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.showcase-visual {
  z-index: -4;
  inset: -.9% -2.5% -2.5%;
  container-type: size;
  transform-origin: 72% 34%;
  transform:
    translate3d(var(--pointer-x), calc(var(--pointer-y) + var(--scroll-progress) * 204px), 0)
    scale(calc(1.025 + var(--scroll-progress) * .18));
}

.showcase-image {
  position: absolute;
  top: min(0px, calc((100cqh - 100cqw * 941 / 1672) * .35));
  right: 0;
  width: max(100cqw, calc(100cqh * 1672 / 941));
  height: max(100cqh, calc(100cqw * 941 / 1672));
  transform-origin: 74% 33%;
}

.showcase-art { display: block; width: 100%; height: 100%; }

.showcase-badge-qr {
  position: absolute;
  left: 75.538%;
  top: 48.14%;
  width: 13.158%;
  height: auto;
  border-radius: 2%;
  /* Align the live QR image with the tilted panel in the illustration. */
  transform: matrix(.97727, .19545, -.25455, 1.03636, 0, 0);
  transform-origin: top left;
  pointer-events: none;
}

.showcase-badge-hit {
  position: absolute;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

html:not(.js) .showcase-badge-hit { display: none; }
.showcase-badge-hit:hover { background: #bee2ff0d; }
.showcase-badge-hit:focus-visible { background: #bde4ff45; }

.showcase-shade {
  z-index: -3;
  background:
    linear-gradient(0deg, #050619 0%, #050619a6 12%, transparent 29%),
    linear-gradient(90deg, #040518 2%, #040518c2 30%, #04051875 43%, transparent 61%),
    linear-gradient(180deg, #04051891 0%, transparent 19%);
}

.showcase-wordmark {
  position: absolute;
  z-index: -2;
  inset: clamp(84px, 11vh, 146px) auto auto 3.8%;
  width: max-content;
  color: #2735b0;
  font: clamp(130px, 23.5vw, 410px) / .9 Impact, "Arial Narrow", sans-serif;
  letter-spacing: -.024em;
  opacity: .29;
  mask-image: linear-gradient(90deg, #000 19vw, #0007 25vw, transparent 32vw);
  transform: translateY(calc(var(--scroll-progress) * -112px));
  user-select: none;
  pointer-events: none;
}

.showcase-flare {
  z-index: -1;
  inset: -60% -20%;
  background: linear-gradient(113deg, transparent 39%, #425cff14 44%, #96baff70 47%, #547cff29 48%, transparent 49.2%, transparent 51%, #587bff44 51.3%, #3254ec24 51.8%, transparent 55%);
  mask-image: linear-gradient(90deg, transparent 25%, #000 64%);
  mix-blend-mode: screen;
  opacity: 0;
}

.showcase-frame {
  width: var(--frame);
  margin-inline: auto;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(44px, 6vh, 94px);
  padding-block: max(114px, 15vh) 26px;
  pointer-events: none;
}

.showcase-copy {
  width: min(100%, 42rem);
  max-width: 47vw;
  pointer-events: auto;
}

.showcase-eyebrow {
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .21em;
  color: #b7c5ff;
}

.showcase-title {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin: 13px 0 clamp(32px, 5vh, 47px);
  white-space: nowrap;
}

.showcase h1 {
  font-family: "Noto Sans SC", var(--sans);
  font-size: clamp(88px, 10.5vw, 171px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-shadow: 0 12px 38px #00032d6b;
  transform: translateX(-.025em);
}

.showcase-signature {
  position: absolute;
  right: -4%;
  bottom: -.46em;
  transform: rotate(-8deg);
  font: clamp(28px, 3.8vw, 66px) / 1.16 "Segoe Script", "Brush Script MT", cursive;
  letter-spacing: -.09em;
  color: #ffabe5;
  text-shadow: 0 0 20px #e551d489;
}

.showcase-statement {
  max-width: 24em;
  margin-bottom: 8px;
  font-size: clamp(20px, 1.9vw, 33px);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: pretty;
}

.showcase-quote {
  color: #d6ddff;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.55;
}

.showcase-lead {
  max-width: 30.5em;
  margin-top: 16px;
  color: #b4bfdc;
  font-size: clamp(14px, 1.13vw, 17px);
  line-height: 1.75;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 25px;
}

.showcase-primary, .showcase-secondary {
  width: fit-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 5px 6px 5px 17px;
  border: 1px solid #91a4ff9c;
  border-radius: 27px;
  color: #f6f7ff;
  background: #192354cf;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}

.showcase-primary span {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #0b1534;
  background: #acbdff;
  font-size: 17px;
}

.showcase-primary:hover { background: #263875; border-color: #a1b4ff; }

.showcase-secondary {
  padding-inline: 14px;
  border-color: #7c8ac955;
  color: #d9e1ff;
  background: #07091bb8;
}

.showcase-secondary:hover { background: #181e43; border-color: #91a4ff; }

.showcase-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #b5c3ff64;
  pointer-events: auto;
}

.showcase-directory a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 15px clamp(12px, 2.1vw, 34px) 3px;
  color: #f2f4ff;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 620;
}

.showcase-directory a:first-child { padding-left: 0; }
.showcase-directory a:last-child { padding-right: 0; }
.showcase-directory a + a { border-left: 1px solid #a5b5ff40; }
.showcase-directory a span { color: #a8baff; transition: transform .22s ease; }
.showcase-directory a:hover span { color: #f0f3ff; }

.showcase :where(a):focus-visible {
  outline: 2px solid #bcd5ff;
  outline-offset: 4px;
}

.showcase-ready .showcase-image { animation: showcase-rush 1330ms both; }
.showcase-ready .showcase-flare { animation: showcase-flash 850ms linear 105ms both; }

.showcase-ready .showcase-reveal {
  animation: showcase-rise 660ms var(--enter-ease) both;
  animation-delay: var(--entry-delay, 75ms);
}

.showcase-title { --entry-delay: 115ms; }
.showcase-statement { --entry-delay: 205ms; }
.showcase-quote { --entry-delay: 250ms; }
.showcase-lead { --entry-delay: 300ms; }
.showcase-actions { --entry-delay: 355ms; }
.showcase-ready .showcase-directory { animation: showcase-rise 660ms var(--enter-ease) 420ms both; }

@keyframes showcase-rush {
  0% {
    transform: perspective(790px) translate3d(7%, 8%, 156px) rotateY(-13deg) rotateX(5deg) rotateZ(4deg) scale(1.14);
    filter: brightness(.69) blur(14px) saturate(1.12);
    animation-timing-function: cubic-bezier(.14, .7, .22, 1);
  }
  52% {
    transform: perspective(790px) translate3d(-1.4%, -.8%, 12px) rotateY(2.2deg) rotateX(-1.3deg) rotateZ(-.6deg) scale(1.025);
    filter: brightness(1.04) blur(0) saturate(1.06);
    animation-timing-function: cubic-bezier(.2, .7, .25, 1);
  }
  100% {
    transform: perspective(790px) translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1);
    filter: brightness(1) blur(0) saturate(1);
  }
}

@keyframes showcase-flash {
  0% { opacity: 0; transform: translateX(-58%); }
  26% { opacity: .59; }
  68% { opacity: .44; }
  100% { opacity: 0; transform: translateX(68%); }
}

@keyframes showcase-rise {
  0% { opacity: .7; transform: translate3d(0, 34px, 0); }
  62% { opacity: 1; transform: translate3d(0, -2px, 0); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 900px), (max-aspect-ratio: 6 / 5) {
  .showcase { min-height: 100svh; }
  .showcase-frame {
    --portrait-height: clamp(365px, 77vw, 550px);
    gap: 28px;
    padding: calc(var(--portrait-height) - 43px) 0 18px;
  }
  .showcase-copy { width: min(100%, 45rem); max-width: none; }
  .showcase h1 { font-size: clamp(69px, 17vw, 112px); }
  .showcase-title { margin-bottom: 28px; }
  .showcase-visual, .showcase-shade {
    inset: 48px 0 auto;
    height: clamp(365px, 77vw, 550px);
  }
  .showcase-visual {
    transform: translateY(calc(var(--scroll-progress) * 32px)) scale(calc(1 + var(--scroll-progress) * .045));
  }
  .showcase-image { top: min(0px, calc((100cqh - 100cqw * 941 / 1672) * .32)); }
  .showcase-ready .showcase-image { animation-duration: 960ms; }
  .showcase-ready .showcase-flare { display: none; }
  .showcase-shade {
    inset: 39px 0 auto;
    height: calc(clamp(365px, 77vw, 550px) + 28px);
    background: linear-gradient(0deg, #040518 1%, #040518ea 15%, #0405184d 38%, transparent 55%);
  }
  .showcase-wordmark {
    inset-block-start: clamp(352px, 77vw, 545px);
    font-size: clamp(80px, 21vw, 154px);
    opacity: .22;
    mask-image: linear-gradient(90deg, #000 48%, #0005 88%, transparent);
    transform: translateY(calc(var(--scroll-progress) * -23px));
  }
  .showcase-signature { font-size: clamp(26px, 6.4vw, 45px); }
  .showcase-statement span { display: inline-block; }
  .showcase-lead { margin-top: 13px; }
  .showcase-actions { margin-top: 19px; }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .showcase-ready .showcase-image { animation-name: showcase-rush-mobile; }
}

@keyframes showcase-rush-mobile {
  0% { transform: perspective(930px) translate3d(1%, 2%, 40px) rotateY(-4deg) scale(1.04); filter: brightness(.82) blur(5px); }
  58% { transform: perspective(930px) translate3d(-.6%, -.5%, 9px) rotateY(.65deg) scale(1.006); filter: brightness(1.02) blur(0); }
  100% { transform: perspective(930px) translate3d(0, 0, 0) rotateY(0deg) scale(1); filter: brightness(1) blur(0); }
}

@media (max-width: 410px) {
  .showcase-directory a { gap: 2px; padding-inline: 7px; font-size: 12px; }
  .showcase-statement { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase *, .showcase *::before, .showcase *::after {
    animation: none !important;
    transition: none !important;
  }
  .showcase-visual, .showcase-wordmark { transform: none; }
}

.showcase-badge-hit {
  left: 69.378%;
  top: 41.126%;
  width: 21.053%;
  height: 48.247%;
  clip-path: polygon(30.398% 0.000%, 100.000% 10.573%, 72.159% 100.000%, 0.000% 87.445%);
}
