/* The entrance and the independent pivots share a spring, but never a transform. */
:root {
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
}
.layer {
  transition: none;
}
.cover-block {
  animation: none;
}
#pointer-dot {
  display: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-pointer #pointer-dot {
    display: block;
    position: fixed;
    inset: 0 auto auto 0;
    width: 7px;
    height: 7px;
    border-radius: 100%;
    background: var(--wine);
    pointer-events: none;
    z-index: 111;
  }
  #pointer.visible::before {
    display: none;
  }
  #pointer.over {
    width: 64px;
    height: 64px;
  }
  #pointer.named {
    width: 84px;
    height: 84px;
  }
  #pointer.pressed {
    width: 24px;
    height: 24px;
  }
}
.cover-intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #fff;
  transition:
    background 0.85s,
    opacity 0.4s;
}
.cover-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#edf0f4 1px, transparent 1px), linear-gradient(90deg, #edf0f4 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0;
  transition: opacity 0.8s;
}
.cover-intro.ready::before {
  opacity: 1;
}
.cover-intro.flying {
  background: transparent;
}
.cover-intro.flying::before,
.cover-intro.landed {
  opacity: 0;
}
.intro-active {
  overflow: hidden;
}
.intro-lockup {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.intro-lockup img {
  height: min(26vh, 190px);
  opacity: 0;
  transform: scale(0.6) rotate(-8deg);
  transition:
    transform 1s var(--ease),
    opacity 0.6s;
}
.ready .intro-lockup img {
  opacity: 1;
  transform: none;
}
.flying .intro-lockup img {
  transform: var(--flight);
  transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1);
}
.intro-lockup div {
  overflow: hidden;
  color: var(--navy);
  letter-spacing: 0.55em;
  font-size: clamp(20px, 3vw, 34px);
  padding-left: 0.55em;
}
.intro-lockup :is(span, b) {
  display: inline-block;
  translate: 0 110%;
  transition: translate 0.8s var(--ease) 0.15s;
}
.intro-lockup b {
  transition-delay: 0.28s;
}
.ready .intro-lockup :is(span, b) {
  translate: 0 0;
}
.flying .intro-lockup div {
  opacity: 0;
  transition: opacity 0.3s;
}
.flying-logo > image {
  visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .cover-block,
  .cover-type {
    transform-box: fill-box;
    transform-origin: center;
    transition:
      scale 0.95s var(--ease) calc(var(--order, 0) * 45ms),
      opacity 0.7s calc(var(--order, 0) * 45ms),
      translate 0.9s var(--ease);
  }
  .assembling .cover-block {
    opacity: 0;
    scale: 0;
  }
  .assembling .cover-type {
    opacity: 0;
    translate: 0 40px;
  }
  .person {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: figure-idle 3.2s ease-in-out var(--bob-delay, 0s) infinite;
  }
  .block-link:is(:hover, :focus-visible) .person {
    animation: figure-hop 0.6s var(--ease);
  }
  @keyframes figure-idle {
    50% {
      transform: translateY(-2.5%);
    }
  }
  @keyframes figure-hop {
    35% {
      transform: translateY(-14%) rotate(-3deg);
    }
    70% {
      transform: none;
    }
    85% {
      transform: translateY(-3%);
    }
  }
  .motion .enter {
    transition:
      opacity 1.1s var(--ease),
      transform 1.2s var(--ease),
      filter 1.1s var(--ease);
  }
  .motion .enter:not(.in-view) {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  .chapter-title > span {
    display: inline-flex;
    overflow: hidden;
    padding: 0.02em 0.04em 0.06em 0;
  }
  .chapter-title i,
  .work-statement span {
    font-style: normal;
    display: inline-block;
    transition:
      transform 1s var(--ease) calc(var(--order) * 90ms),
      opacity 0.6s calc(var(--order) * 90ms);
  }
  .enter:not(.in-view) .chapter-title i,
  .chapter-title.enter:not(.in-view) i {
    opacity: 0;
    transform: translateY(105%) rotate(8deg);
  }
  .work-statement span {
    transition-delay: calc(var(--order) * 28ms);
  }
  .enter:not(.in-view) .work-statement span {
    opacity: 0;
    transform: translateY(60%);
  }
  .cover-hint {
    animation-duration: 2.4s;
  }
}
.chapter-title i {
  font-style: normal;
}

/* Folders lift out of the physical drawer; the enlarged cards use the same award records as the CV. */
.drawer-handle {
  position: absolute;
  left: 65%;
  top: 88.5%;
  width: 19%;
  height: 9.5%;
  border: 1px solid #806a53;
  border-top: 3px solid #b89c7d;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#c0a180, #a88867);
  color: #453a31;
  display: grid;
  place-items: center;
  transition:
    transform 0.5s var(--spring),
    box-shadow 0.5s;
}
.drawer-handle::before {
  content: "";
  width: 22%;
  height: 5px;
  background: #384355;
  border-radius: 4px;
  box-shadow: 0 2px 2px #533d2340;
}
.drawer-handle span {
  font-size: clamp(7px, 0.72vw, 11px);
  letter-spacing: 0.12em;
}
.drawer-open .drawer-handle,
.drawer-handle:hover {
  transform: translateY(8px) scaleX(1.025);
  box-shadow: 0 8px 10px #19233625;
}
.award-folder,
.desk-preview {
  position: absolute;
  display: block;
  width: min(250px, 67vw);
  height: 196px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  z-index: 6;
}
.award-folder {
  left: 74.5%;
  bottom: 9%;
  transform: translate(-50%, 24px) scale(0.72);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.42s var(--spring),
    opacity 0.32s;
}
.drawer-open .award-folder {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.folder-front {
  position: absolute;
  inset: auto 3% 0;
  text-align: left;
  height: 59%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid #ffffffdc;
  border-radius: 16px;
  background: linear-gradient(#ffffff94, #fffffff1 80%);
  box-shadow:
    0 2px 6px #1323391a,
    0 24px 38px -21px #13233977;
  backdrop-filter: saturate(180%) blur(12px);
  color: var(--navy);
}
.folder-front:before {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 99%;
  width: 58%;
  height: 17px;
  background: #f3f7fad9;
  border-radius: 13px 13px 0 0;
  border: 1px solid #fff;
  border-bottom: 0;
}
.folder-front b {
  font-size: 1.4rem;
  letter-spacing: -0.045em;
}
.folder-front small {
  font-size: 0.74rem;
  font-weight: 600;
  color: #41546b;
}
.folder-papers {
  position: absolute;
  inset: 0 5% 10%;
  border-radius: 14px;
  background: linear-gradient(transparent 24%, #e0e6ee 24%);
  pointer-events: none;
}
.folder-papers > * {
  position: absolute;
  top: 9%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 43%;
  height: 77%;
  object-fit: cover;
  font: 600 1.1rem Georgia;
  color: var(--wine);
  background: #f8f1dc;
  border: 4px solid #fff;
  border-radius: 10px;
  box-shadow: 0 8px 18px #18263b38;
  opacity: 0;
  transform: translate(-50%, 45%) scale(0.8);
  transition:
    transform 0.55s var(--spring),
    opacity 0.3s;
}
:is(.drawer-open .award-folder, .desk-preview.show) .folder-papers > :nth-child(1) {
  opacity: 1;
  transform: translate(-100%, 20%) rotate(-14deg);
  transition-delay: 60ms;
}
:is(.drawer-open .award-folder, .desk-preview.show) .folder-papers > :nth-child(2) {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 120ms;
}
:is(.drawer-open .award-folder, .desk-preview.show) .folder-papers > :nth-child(3) {
  opacity: 1;
  transform: translate(0, 20%) rotate(14deg);
  transition-delay: 180ms;
}
.awards-dialog {
  width: 100vw;
  max-width: 100%;
  height: 100dvh;
  max-height: 100%;
  inset: 0;
  padding: 0;
  border: 0;
  margin: 0;
  color: var(--navy);
  background: radial-gradient(at 50% 45%, #fff, #e4e9f4);
  overscroll-behavior: contain;
}
.awards-dialog::backdrop {
  background: #14253a99;
}
.archive-wrap {
  width: min(100%, 1000px);
  min-height: 100%;
  margin: auto;
  padding: clamp(12px, 3vh, 32px) clamp(14px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.archive-wrap header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.archive-wrap h2 {
  font-size: clamp(18px, 2.5vw, 32px);
  letter-spacing: -0.04em;
}
.archive-close,
.enlarged-award button {
  border: 1px solid #c9d3df;
  border-radius: 24px;
  padding: 9px 14px;
  font-size: 0.83rem;
  background: white;
}
.award-stage {
  position: relative;
  width: 100%;
  margin: 12px 0;
  isolation: isolate;
}
.award-display {
  position: relative;
  min-height: clamp(340px, 50vh, 530px);
  width: 100%;
  display: grid;
  place-items: center;
}
.award-figure {
  width: clamp(100px, 17vw, 200px);
  filter: drop-shadow(0 5px 4px #2c365822);
}
.celebrate {
  animation: celebrate 1.1s ease-in-out infinite;
}
.podium-shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: podium-shadow 1.1s ease-in-out infinite;
}
@keyframes celebrate {
  45%,
  60% {
    transform: translateY(-13px);
  }
}
@keyframes podium-shadow {
  50% {
    scale: 0.72 1;
    opacity: 0.45;
  }
}
.award-paper,
.enlarged-award article {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  border: 1px solid #cbbd98;
  background: linear-gradient(130deg, #fffef7, #f7f0dd);
  outline: 1px solid #ccba89;
  outline-offset: -7px;
  box-shadow: 0 7px 15px #19294519;
  color: #344256;
}
.award-paper {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(180px, 17vw, 240px);
  min-height: 115px;
  padding: 14px 12px;
  border-radius: 5px;
  transform: translate(-50%, -50%) translate(var(--arc-x), var(--arc-y)) rotate(var(--arc-r));
  animation:
    archive-fan 0.85s cubic-bezier(0.3, 1.3, 0.4, 1) calc(var(--index) * 70ms) backwards,
    drift 6s ease-in-out calc(var(--index) * -0.9s) infinite;
}
.award-display.filing .award-paper {
  transition:
    opacity 0.2s,
    scale 0.22s;
  opacity: 0;
  scale: 0.8;
}
@keyframes archive-fan {
  from {
    transform: translate(-50%, -50%) translateY(330px) scale(0.3);
    opacity: 0;
  }
}
.award-figure {
  animation: trophy-turn 0.6s var(--spring);
}
@keyframes trophy-turn {
  from {
    transform: perspective(600px) rotateY(-110deg);
    opacity: 0.3;
  }
}
.award-paper :is(small, span),
.enlarged-award :is(small, span) {
  font-size: clamp(10px, 0.9vw, 13px);
}
.award-paper strong {
  font:
    600 clamp(13px, 1.48vw, 21px) Georgia,
    serif;
}
.award-paper em,
.enlarged-award em {
  font-size: clamp(11px, 1vw, 15px);
  font-style: normal;
  color: var(--wine);
}
.award-paper i,
.enlarged-award i {
  font-style: normal;
  color: #ad842f;
}
.award-paper:hover {
  scale: 1.035;
}
@keyframes unfile {
  from {
    opacity: 0;
    transform: translateY(90px) scale(0.62) rotate(-5deg);
  }
}
@keyframes drift {
  50% {
    translate: 0 -7px;
  }
}
.archive-box {
  perspective: 900px;
  margin: 16px auto 0;
  width: min(100%, 800px);
  padding: 16px 18px 0;
  border-radius: 16px;
  background: linear-gradient(#26374f, #4c607a);
  box-shadow:
    inset 0 9px 14px #0d1f3680,
    0 22px 30px -20px #26374f8c;
  transform-origin: 50% 100%;
}
.awards-dialog[open] .archive-box {
  animation: drawer-arrival 1.05s cubic-bezier(0.3, 1.25, 0.4, 1) 0.08s both;
}
@keyframes drawer-arrival {
  from {
    opacity: 0;
    transform: translateY(240px) scale(0.55) perspective(900px) rotateX(16deg);
  }
}
.archive-folders {
  display: flex;
  align-items: end;
  gap: clamp(5px, 2vw, 16px);
  min-height: 75px;
}
.archive-folders button {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 19px 4px 10px;
  background: linear-gradient(#fcfcfd, #dfe6ed);
  border: 1px solid #fff;
  border-radius: 7px;
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(11px, 1.2vw, 16px);
  transition:
    translate 0.4s var(--spring),
    rotate 0.4s,
    box-shadow 0.4s;
}
.archive-folders button i {
  position: absolute;
  left: -1px;
  bottom: 100%;
  width: 43%;
  height: 8px;
  border-radius: 6px 6px 0 0;
  background: #e6c787;
}
.archive-folders button:is(:hover, [aria-pressed="true"]) {
  translate: 0 -9px;
  rotate: -2deg;
  box-shadow: 0 5px 8px #14243a33;
}
.archive-lip {
  height: 24px;
  margin: 0 -18px;
  background: linear-gradient(#536a85, #34475f);
  border-radius: 3px 3px 14px 14px;
  display: grid;
  place-items: center;
}
.archive-lip i {
  width: 65px;
  height: 4px;
  background: #c6cfd9;
  border-radius: 9px;
}
.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  left: var(--x);
  width: 5px;
  height: 9px;
  background: var(--color);
  opacity: 0;
}
.awards-dialog[open] .confetti i {
  animation: confetti 2.8s linear var(--t) infinite;
}
@keyframes confetti {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  10% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(390px) rotate(600deg);
  }
}
.enlarged-award {
  position: fixed;
  inset: 0;
  background: #132339b8;
  backdrop-filter: blur(7px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 20px;
  z-index: 2;
}
.enlarged-award article {
  width: min(530px, 100%);
  aspect-ratio: 1.5;
  padding: 24px;
  gap: 12px;
  animation: unfile 0.45s var(--ease);
}
.enlarged-award strong {
  font:
    600 clamp(22px, 4vw, 35px) Georgia,
    serif;
}
.enlarged-award article > b {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
}
@media (max-width: 820px) {
  .award-display {
    padding: 8px 0;
    min-height: 220px;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 12px;
  }
  .award-figure {
    grid-column: 1/-1;
    width: 150px;
    height: 138px;
  }
  .award-paper {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 114px;
    transform: none;
    animation-name: mobile-fan, drift;
  }
  @keyframes mobile-fan {
    from {
      opacity: 0;
      transform: translateY(-30px) scale(0.9);
    }
  }
  .award-paper span {
    line-height: 1.2;
  }
  .archive-wrap {
    justify-content: start;
  }
  .archive-box {
    position: sticky;
    bottom: 8px;
    z-index: 1;
    margin-top: auto;
  }
  .drawer-handle span {
    font-size: 7px;
  }
}
.desk-preview {
  bottom: auto;
  transform: translate(-50%, calc(-100% - 5px)) scale(0.88);
  opacity: 0;
  transition:
    opacity 0.26s,
    transform 0.35s var(--spring);
  pointer-events: none;
}
.desk-preview.show {
  transform: translate(-50%, calc(-100% - 17px)) scale(1);
  opacity: 1;
}
.desk-preview.below {
  transform: translate(-50%, 16px) scale(0.88);
}
.desk-preview.below.show {
  transform: translate(-50%, 34px) scale(1);
}
.desk-preview .folder-papers img {
  width: 43%;
  height: 77%;
  max-width: none;
}
.desk-scene [data-object] {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition:
    translate 0.45s var(--spring),
    scale 0.45s var(--spring),
    filter 0.4s;
}
.desk-scene [data-object].highlight {
  translate: 0 -8px;
  scale: 1.04;
  filter: drop-shadow(0 16px 14px #13233947);
}
.highlight .screen-tint {
  opacity: 0;
}
.screen-tint {
  transition: opacity 0.5s;
}
.desk-prompt i {
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  50% {
    rotate: 45deg;
    scale: 1.35;
  }
}
@media (hover: none) {
  .desk-preview.show {
    pointer-events: auto;
  }
}
@media (max-width: 730px) {
  .desk-preview,
  .award-folder {
    width: min(220px, 66vw);
    height: 176px;
  }
  .folder-front {
    padding: 12px;
  }
  .drawer-open .award-folder {
    left: clamp(120px, 70%, calc(100% - 110px));
  }
}
.project-tile {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 2px 6px #18283b0a,
    0 12px 28px -15px #18283b40;
  padding-bottom: 16px;
  transition:
    transform 0.7s var(--ease),
    box-shadow 0.7s var(--ease);
}
.tile-image {
  border-radius: 0;
}
.tile-name,
.project-tile > p {
  padding-inline: 15px;
}
.project-tile:is(:hover, :focus-visible) {
  transform: translateY(-6px);
  box-shadow: 0 23px 42px -22px #18283b66;
}
.tile-image span {
  transition: translate 0.6s var(--ease);
}
.project-tile:hover .tile-image span {
  translate: 0 -6px;
}
@media (prefers-reduced-motion: no-preference) {
  .project-wall > .project-tile {
    animation: print-arrival 0.72s var(--ease) calc(var(--order) * 45ms) backwards;
  }
  @keyframes print-arrival {
    from {
      opacity: 0;
      translate: 0 60px;
    }
  }
}
.project-dialog {
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.project-dialog .dialog-content,
.project-dialog .dialog-navigation {
  max-width: 1100px;
  width: 100%;
  margin: auto;
}
.dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(16px, 4vw, 60px);
  padding: clamp(26px, 6vw, 85px) clamp(18px, 4vw, 55px);
}
.dialog-content .project-hero {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 42px -24px #13233988;
}
.dialog-content article {
  padding: 0;
}
.project-dialog .dialog-top {
  padding: 12px var(--gutter);
}
.project-dialog[open] {
  animation: sheet-in 0.9s var(--ease);
}
.project-dialog.closing {
  animation: sheet-out 0.9s var(--ease) forwards;
}
@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}
@keyframes sheet-out {
  to {
    transform: translateY(100%);
  }
}
.project-hero img {
  animation: project-image 1.4s var(--ease) both;
}
@keyframes project-image {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}
@media (max-width: 700px) {
  .dialog-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 18px;
  }
  .dialog-content .project-hero {
    aspect-ratio: 1.85;
  }
}
.collection-feature:empty {
  display: none;
}
.collection-feature {
  margin: 0 0 34px;
}
.collection-feature h4 {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--navy);
  margin: 0 0 12px;
}
.feature-open {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 0.82rem;
}
.walkthrough {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 5vw, 65px);
}
.system-map {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
}
.system-map svg {
  display: block;
  width: 100%;
}
.system-map button {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  box-shadow: 0 0 0 5px #14253c25;
  transition:
    scale 0.35s var(--spring),
    background 0.3s;
}
.system-map button[aria-pressed="true"] {
  background: var(--wine);
  scale: 1.13;
  animation: pulse 2s ease infinite;
}
.step-panel h5 {
  font-size: clamp(20px, 2.3vw, 34px);
  margin: 8px 0;
  color: var(--navy);
}
.step-panel small {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.step-panel p {
  line-height: 1.7;
  margin: 0 0 16px;
}

.app-showcase {
  --window-ink: #203148;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 64px;
  padding: clamp(14px, 2.3vw, 30px);
  border: 1px solid #cdd8e4;
  border-radius: clamp(18px, 2vw, 30px);
  background:
    radial-gradient(ellipse at 45% 8%, #ffffffdc, transparent 64%),
    linear-gradient(144deg, #e5eef5 0%, #e9edf4 52%, #e1e3ed 100%);
  box-shadow: inset 0 1px 0 #ffffffda;
}
.app-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, #8295a63b 0.85px, transparent 1px) 0 0/17px 17px;
  mask-image: linear-gradient(155deg, #0009, transparent 52%, #0007);
}
.reel-head,
.reel-nav {
  display: flex;
  align-items: center;
}
.reel-head {
  justify-content: space-between;
  gap: 12px;
}
.reel-head h4 {
  margin: 0;
  letter-spacing: -0.045em;
}
.reel-nav {
  flex: none;
  white-space: nowrap;
  gap: 8px;
}
.reel-nav span {
  min-width: 5ch;
  text-align: center;
  font-size: 0.78rem;
  color: #3c5265;
  font-variant-numeric: tabular-nums;
}
.reel-nav button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #c1ced8;
  border-radius: 50%;
  background: #ffffffa8;
  color: var(--window-ink);
  font:
    400 25px/1 Arial,
    sans-serif;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.reel-nav button:is(:hover, :focus-visible) {
  background: #fff;
  border-color: #8297aa;
}
.app-reels {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  position: relative;
  perspective: 1500px;
  padding: clamp(18px, 3vw, 40px) 0 clamp(27px, 3.4vw, 46px);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.app-frame {
  grid-area: 1/1;
  --window-width: min(57cqi, 550px);
  --spread: min(205px, calc((100cqi - var(--window-width) * 0.82) / 4));
  width: var(--window-width);
  min-width: 0;
  position: relative;
  padding: 0;
  border: 1px solid #92a5b8;
  border-radius: 12px;
  background: #edf1f5;
  color: var(--window-ink);
  box-shadow:
    0 26px 41px -27px #15294199,
    0 5px 13px -6px #25395260;
  z-index: calc(5 - var(--away));
  transform: translateX(calc(var(--offset) * var(--spread))) translateZ(calc(var(--away) * -105px))
    rotateY(calc(var(--offset) * -19deg)) scale(calc(1 - var(--away) * 0.105));
  filter: saturate(calc(1 - var(--away) * 0.24)) brightness(calc(1 - var(--away) * 0.07))
    blur(calc(var(--away) * 0.35px));
  transition:
    transform 0.72s cubic-bezier(0.22, 0.78, 0.18, 1),
    filter 0.58s,
    opacity 0.56s,
    box-shadow 0.45s;
}
.app-frame[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}
.app-frame[aria-current="true"] {
  box-shadow:
    0 29px 38px -24px #14243b8a,
    0 6px 15px -7px #24384b66;
}
.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  gap: 8px;
  background: linear-gradient(#fbfcfd, #e6ecf2);
  border-bottom: 1px solid #c7d1da;
  border-radius: 11px 11px 0 0;
}
.window-bar b {
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 600;
  line-height: 1.3;
  color: #32445a;
}
.window-lights {
  display: flex;
  gap: 4px;
  align-items: center;
}
.window-lights i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid #0001;
  border-radius: 50%;
  background: #d18e91;
}
.window-lights i:nth-child(2) {
  background: #d9bc7e;
}
.window-lights i:nth-child(3) {
  background: #8ab5a0;
}
.window-expand {
  position: relative;
  justify-self: end;
  width: 10px;
  height: 10px;
  opacity: 0.7;
}
.window-expand::before,
.window-expand::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: solid currentColor;
}
.window-expand::before {
  inset: 0 0 auto auto;
  border-width: 1px 1px 0 0;
}
.window-expand::after {
  inset: auto auto 0 0;
  border-width: 0 0 1px 1px;
}
.window-screen {
  display: grid;
  place-items: center;
  aspect-ratio: 1.6;
  margin: 0 4px 4px;
  border-radius: 0 0 7px 7px;
  background: var(--preview-mat, #f4f6f8);
}
.window-screen img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.app-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  gap: clamp(4px, 0.65vw, 9px);
  padding: 5px 8px;
  border: 1px solid #ffffffed;
  border-radius: 13px;
  background: #ffffffaa;
  box-shadow:
    0 4px 15px -9px #33485d77,
    inset 0 0 0 1px #b5c3d055;
}
.app-dock button {
  position: relative;
  width: clamp(34px, 5.3vw, 63px);
  height: clamp(34px, 4vw, 47px);
  padding: 3px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  background: transparent;
  transition:
    transform 0.25s var(--ease),
    border-color 0.2s;
}
.app-dock img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: contain;
  background: var(--preview-mat, #f4f6f8);
  pointer-events: none;
}
.app-dock button[aria-pressed="true"] {
  border-color: #475f76;
  background: #fff;
}
.app-dock button:is(:hover, :focus-visible) {
  transform: translateY(-2px);
}
.dialog-content .project-hero.apps img {
  object-fit: contain;
  object-position: center;
}
@media (max-width: 700px) {
  .app-reels {
    perspective: 900px;
  }
  .app-frame {
    --window-width: 77cqi;
  }
  .app-showcase .reel-nav button {
    width: 42px;
    height: 42px;
  }
  .app-dock button {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 480px) {
  .app-showcase {
    padding: 12px 10px 14px;
    border-radius: 16px;
  }
  .app-frame {
    --window-width: 88cqi;
    border-radius: 9px;
    transform: translateX(calc(var(--offset) * min(13cqi, 48px))) translateZ(calc(var(--away) * -110px))
      rotateY(calc(var(--offset) * -13deg)) scale(calc(1 - var(--away) * 0.09));
  }
  .app-showcase .reel-head h4 {
    font-size: 16px;
    white-space: nowrap;
  }
  .app-reels {
    padding: 17px 0 24px;
  }
  .window-bar {
    min-height: 23px;
    border-radius: 8px 8px 0 0;
    padding: 4px 8px;
  }
  .window-lights {
    gap: 3px;
  }
  .window-lights i {
    width: 5px;
    height: 5px;
  }
  .window-screen {
    margin: 0 2px 2px;
  }
  .reel-nav {
    gap: 4px;
  }
  .app-dock {
    padding: 3px 5px;
    gap: 2px;
  }
}
.range-board {
  background: #ffffffdf;
  border: 1px solid #dfe5ea;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 35px);
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) 1fr;
  align-items: center;
  gap: 30px;
}
.animated-count {
  font-size: clamp(46px, 6vw, 82px);
  letter-spacing: -0.06em;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
}
.range-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.75fr) 1fr 20px;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.85rem;
}
.range-list i {
  height: 8px;
  border-radius: 8px;
  background: #e6edf2;
  overflow: hidden;
}
.range-list b {
  display: block;
  height: 100%;
  background: var(--navy);
  width: calc(100% * var(--fraction));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.15s var(--ease) calc(var(--order) * 90ms);
}
.counting .range-list b {
  transform: scaleX(1);
}
.range-list em {
  font-style: normal;
  color: var(--muted);
}
@media (max-width: 600px) {
  .walkthrough,
  .range-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .range-board > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
}

.skill-list li {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  transform: none !important;
}
.skill-list li button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  border: 1px solid #17283c18;
  background: #fff;
  box-shadow: 0 3px 6px #17283c13;
  padding: 8px;
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.4s;
}
.skill-list button:has(.skill-wordmark) {
  padding: 1px;
}
.skill-list button:is([aria-label="XGBoost"], [aria-label="spaCy"], [aria-label="SQLAlchemy"]) {
  padding: 3px;
}
.skill-wordmark {
  color: var(--navy);
  font-size: 10px;
  letter-spacing: -0.05em;
}
.skill-list li button:is(:hover, :focus-visible, [aria-expanded="true"]) {
  transform: translateY(-5px) rotate(-6deg) scale(1.08);
  box-shadow: 0 14px 24px -12px #13233999;
}
.skill-list li:has(button:is(:hover, :focus-visible, [aria-expanded="true"])) {
  z-index: 4;
}
.skill-list li span {
  bottom: calc(100% + 12px);
  padding: 8px 11px;
  border-radius: 7px;
  width: max-content;
  max-width: min(190px, calc(100vw - 16px));
  white-space: normal;
  text-align: center;
  transform: translate(calc(-50% + var(--shift, 0px)), 6px) scale(0.86);
  transition:
    opacity 0.2s,
    transform 0.3s var(--spring);
}
.skill-list [role="tooltip"] small {
  display: block;
  margin-top: 3px;
  color: #d1e7f8;
  font-size: 11px;
}
.skill-list li span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--shift, 0px) - 5px);
  border: 5px solid transparent;
  border-top-color: var(--navy);
}
.skill-list button:not(.dismissed):is(:focus-visible, [aria-expanded="true"]) + span {
  opacity: 1;
  transform: translate(calc(-50% + var(--shift, 0px)), 0) scale(1);
}
@media (hover: hover) {
  .skill-list button:not(.dismissed):hover + span {
    opacity: 1;
    transform: translate(calc(-50% + var(--shift, 0px)), 0) scale(1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .skill-list li {
    transition:
      opacity 0.5s calc(var(--order) * 45ms),
      scale 0.6s var(--spring) calc(var(--order) * 45ms),
      translate 0.6s var(--spring) calc(var(--order) * 45ms);
  }
  .motion .toolbox:not(.in-view) li {
    opacity: 0;
    scale: 0.7;
    translate: 0 16px;
  }
  .contact-body .sticker {
    transition:
      scale 0.6s var(--spring),
      transform 0.45s var(--spring);
    transition-delay: var(--stagger, 0ms);
  }
  .contact-body:not(.in-view) .sticker {
    scale: 0;
  }
  .contact-body .sticker:hover {
    animation: sticker-wiggle 0.45s var(--ease);
  }
  @keyframes sticker-wiggle {
    35% {
      rotate: -12deg;
      scale: 1.18;
    }
    70% {
      rotate: 8deg;
      scale: 1.12;
    }
  }
}
.stickers {
  z-index: 0;
}
.contact-body > :not(.stickers) {
  position: relative;
  z-index: 1;
}
.sticker:nth-child(2n) {
  --stagger: 80ms;
}
.sticker:nth-child(3n) {
  --stagger: 155ms;
}
.sticker:nth-child(4n) {
  --stagger: 225ms;
}
.robot-track {
  height: 90px;
  overflow: visible;
  margin: 30px 0 8px;
  pointer-events: none;
}
.bot-position {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  transform: translateX(var(--x, -140px));
  pointer-events: auto;
}
.little-bot {
  position: relative;
  left: auto;
  bottom: auto;
  width: 78px;
  height: 70px;
  animation: none;
}
.little-bot svg {
  height: 100%;
  animation: none;
  transition: scale 0.35s;
}
.facing-left .little-bot svg {
  scale: -1 1;
}
.little-bot.moving svg {
  animation: bot-steps 0.4s ease infinite alternate;
}
@keyframes bot-steps {
  to {
    transform: translateY(-2px) rotate(2deg);
  }
}
.bot-bubble {
  position: absolute;
  bottom: 95%;
  left: 35%;
  width: max-content;
  max-width: min(230px, 72vw);
  padding: 15px;
  border: 1px solid #d4dee8;
  border-radius: 16px 16px 16px 3px;
  background: #fff;
  box-shadow: 0 12px 32px #15263b26;
  animation: bubble-up 0.35s var(--spring) both;
  transform-origin: 20% 100%;
}
.bubble-left .bot-bubble {
  left: auto;
  right: 15%;
  border-radius: 16px 16px 3px 16px;
  transform-origin: 85% 100%;
}
.bot-bubble .robot-note {
  position: static;
  display: block;
  opacity: 1;
  background: none;
  color: var(--navy);
  padding: 0;
  font:
    650 0.9rem Montserrat,
    sans-serif;
}
.bot-bubble p {
  margin: 5px 0 12px;
  font-size: 0.83rem;
  line-height: 1.5;
}
.bot-bubble :is(a, button) {
  font:
    600 0.74rem Montserrat,
    sans-serif;
  border: 1px solid #bdcad5;
  padding: 6px 8px;
  border-radius: 16px;
  text-decoration: none;
  background: white;
}
.bot-bubble a {
  background: var(--navy);
  color: white;
  margin-right: 5px;
}
@keyframes bubble-up {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.87);
  }
}
@media (max-width: 640px) {
  .stickers {
    display: block;
    inset: 0;
    opacity: 0.88;
  }
  .contact-body {
    padding-top: 14px;
  }
  .contact-body .sticker {
    width: 19px;
  }
  .sticker:nth-child(n) {
    display: none;
  }
  .sticker:nth-child(1),
  .sticker:nth-child(5) {
    display: block;
    top: 0 !important;
  }
  .robot-track {
    height: 64px;
  }
  .bot-position,
  .little-bot {
    width: 58px;
  }
  .little-bot {
    height: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .contact-links a {
    translate: none !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mist-disc {
    transform-box: fill-box;
    transform-origin: center;
    transition:
      scale 0.95s var(--ease) calc(var(--order) * 45ms),
      opacity 0.7s;
  }
  .assembling .mist-disc {
    opacity: 0;
    scale: 0;
  }
  .cover-block .person {
    transition:
      translate 0.7s var(--ease) calc(var(--order) * 45ms + 0.35s),
      opacity 0.5s calc(var(--order) * 45ms + 0.35s);
  }
  .assembling .person {
    opacity: 0;
    translate: 0 -30px;
  }
  .plant-leaf {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: leaf-sway 5s ease-in-out infinite alternate;
  }
  .plant-leaf + .plant-leaf {
    animation-delay: -2s;
  }
  .cup-steam {
    animation: rising-steam 3s ease-out infinite;
  }
  .highlight .hat-tassel {
    transform-box: fill-box;
    transform-origin: left top;
    animation: tassel-swing 0.8s ease-in-out infinite alternate;
  }
  [data-object="contact"].highlight rect:nth-child(2) {
    fill: #779eb6;
    transition: fill 0.35s;
  }
  @keyframes leaf-sway {
    from {
      rotate: -2deg;
    }
    to {
      rotate: 2deg;
    }
  }
  @keyframes rising-steam {
    0% {
      opacity: 0;
      translate: 0 3px;
    }
    45% {
      opacity: 0.9;
    }
    100% {
      opacity: 0;
      translate: 1px -9px;
    }
  }
  @keyframes tassel-swing {
    from {
      rotate: -7deg;
    }
    to {
      rotate: 8deg;
    }
  }
}
.robot-track {
  min-height: 180px;
}
@media (max-width: 640px) {
  .robot-track {
    min-height: 170px;
  }
}

.view-certificates,
.award-pages button,
.reader-actions a {
  border: 1px solid #bccbd8;
  border-radius: 24px;
  background: white;
  color: var(--navy);
  font: inherit;
}
.view-certificates {
  margin-top: 2px;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  scroll-margin-top: 78px;
}
.view-certificates:hover,
.reader-actions a:hover {
  background: #eaf3f8;
}
.award-pages {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  color: var(--navy);
  font-size: 0.8rem;
}
.award-pages button {
  min-width: 40px;
  min-height: 34px;
  font-size: 1.25rem;
}
.award-pages button:disabled {
  opacity: 0.4;
  cursor: default;
}
.award-paper.cert-paper {
  grid-template-columns: minmax(56px, 0.83fr) minmax(0, 1.17fr);
  align-items: center;
  padding: 12px;
  gap: 9px;
  border-color: #bac7d2;
  outline-color: #dce5ed;
  background: linear-gradient(135deg, #fff, #f1f5f8);
  text-align: left;
  transition: scale 0.25s var(--ease);
}
.cert-paper img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid white;
  box-shadow: 0 4px 10px #13233932;
  rotate: -4deg;
}
.cert-label {
  display: grid;
  gap: 5px;
  width: 100%;
}
.cert-paper .cert-label strong {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.12;
}
.cert-paper .cert-label em {
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.24;
}
.enlarged-award:not([open]) {
  display: none;
}
.enlarged-award {
  width: 100%;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--navy);
}
.enlarged-award::backdrop {
  background: #15263866;
}
.reader-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.reader-actions a {
  padding: 9px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}
.enlarged-award.scan-reader article {
  width: min(940px, 100%);
  aspect-ratio: auto;
  display: block;
  padding: 0;
  outline: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 55px #08111f4d;
}
.scan-reader article img {
  width: 100%;
  height: auto;
  max-height: 68dvh;
  object-fit: contain;
  display: block;
  background: #e8edf1;
}
.cert-caption {
  padding: 14px 22px 18px;
  text-align: left;
}
.cert-caption h3 {
  margin: 0 0 4px;
  font:
    600 1.18rem Georgia,
    serif;
}
.cert-caption p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .award-paper.cert-paper {
    grid-template-columns: 90px 1fr;
    min-height: 106px;
    padding: 14px 18px;
    gap: 17px;
  }
  .cert-paper .cert-label strong {
    font-size: 18px;
  }
  .cert-paper .cert-label em {
    font-size: 14px;
  }
  .archive-folders {
    overflow-x: auto;
    padding: 15px 4px 4px;
    gap: 8px;
  }
  .archive-folders button {
    flex: 1 0 84px;
  }
  .award-pages {
    margin-bottom: 15px;
  }
  .cert-caption {
    padding: 12px 15px 15px;
  }
  .enlarged-award {
    padding: 12px;
  }
}
@media (max-height: 540px) {
  .enlarged-award {
    align-content: safe center;
  }
  .scan-reader article img {
    max-height: 50dvh;
  }
}
