@font-face {
  font-family: Montserrat;
  src: url("./assets/montserrat.woff2") format("woff2");
  font-weight: 300 750;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #132339;
  --wine: #4a1220;
  --ice: #d1e7f8;
  --steel: #748ca7;
  --ink: #252833;
  --muted: #56606c;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.78, 0.22, 1);
  color: var(--ink);
  font:
    400 100% Montserrat,
    "Avenir Next",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 46px;
}
body {
  margin: 0;
  background-color: #fff;
  background-image:
    radial-gradient(circle at center, #fff 2.3px, #dfe4eb 2.9px, transparent 4.2px),
    linear-gradient(#edf0f4 1px, transparent 1px), linear-gradient(90deg, #edf0f4 1px, transparent 1px);
  background-size: 52px 52px;
  background-position:
    -25.5px -25.5px,
    0 0,
    0 0;
  -webkit-font-smoothing: antialiased;
}
button,
a {
  color: inherit;
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #367aa2;
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
::selection {
  background: var(--ice);
  color: var(--navy);
}
.sr-only,
.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
}
.skip:focus {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  background: #fff;
  padding: 10px;
}
.topbar {
  height: 48px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: #fffffff2;
  border-bottom: 1px solid #edf0f4;
  backdrop-filter: blur(4px);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  letter-spacing: 0.26em;
  color: var(--navy);
  text-decoration: none;
}
.wordmark img {
  width: 23px;
  height: 28px;
}
.topbar nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 35px);
}
.topbar nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.topbar nav small {
  color: #7188a1;
  padding-right: 6px;
}
.topbar nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 1px;
  height: 2px;
  background: var(--accent, #758965);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.topbar nav a:nth-child(2) {
  --accent: #722a39;
}
.topbar nav a:nth-child(3) {
  --accent: #bc8d39;
}
.topbar nav a:is(:hover, [aria-current])::after {
  transform: scaleX(1);
}
.reading-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--wine);
}
.cover {
  height: 100svh;
  min-height: 490px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 58px 0 30px;
  overflow: hidden;
}
#cover-art {
  display: block;
  width: min(92%, calc((100svh - 110px) * 1.26));
  min-width: 360px;
  overflow: visible;
}
#cover-art text {
  font-family: Montserrat, sans-serif;
}
.cover-hint,
.swing-hint {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: #6b819c;
}
.cover-hint {
  position: absolute;
  bottom: 26px;
  animation: breathe 3s ease-in-out infinite;
}
.touch-hint {
  display: none;
}
@keyframes breathe {
  50% {
    opacity: 0.45;
  }
}
.layer {
  translate: calc(var(--mx, 0px) * var(--depth, 0)) calc(var(--my, 0px) * var(--depth, 0));
  transition: translate 0.45s var(--ease);
}
.cover-block {
  transform-box: fill-box;
  transform-origin: center;
  animation: arrive 0.8s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(17px);
  }
}
.block-art {
  transition: filter 0.35s;
}
.block-link:is(:hover, :focus-visible) .block-art {
  filter: drop-shadow(0 6px 5px #13233936);
}
.block-link:is(:hover, :focus-visible) .person {
  animation: wave 0.48s var(--ease);
}
@keyframes wave {
  45% {
    translate: 0 -5px;
  }
}
.hover-caption {
  opacity: 0;
  transition: opacity 0.3s;
  fill: #fff;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.block-link:is(:hover, :focus-visible) .hover-caption {
  opacity: 1;
}
#pointer {
  display: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-pointer,
  html.has-pointer :is(a, button, [role="button"], svg a) {
    cursor: none;
  }
  #pointer.visible {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 110;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border: 1px solid var(--navy);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition:
      width 0.23s,
      height 0.23s,
      background 0.23s;
  }
  #pointer.visible::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--wine);
    border-radius: 50%;
  }
  #pointer.over {
    width: 48px;
    height: 48px;
    background: #1323390a;
  }
  #pointer.named {
    width: 68px;
    height: 68px;
    background: var(--navy);
    color: white;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  #pointer.named::before {
    display: none;
  }
}
@media (max-width: 640px) {
  .wordmark span,
  .topbar nav small,
  .desktop-hint {
    display: none;
  }
  .touch-hint {
    display: inline;
  }
  .topbar {
    height: 45px;
  }
  .cover {
    min-height: 0;
    height: auto;
    padding: 102px 0 75px;
  }
  .cover-hint {
    bottom: 18px;
    letter-spacing: 0.21em;
  }
  #cover-art {
    width: 95.5%;
    min-width: 0;
  }
}
@media (hover: none) {
  .desktop-hint {
    display: none;
  }
  .touch-hint {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .layer {
    translate: none;
  }
}

/* Profile and hanging badge */
.chapter {
  max-width: 1500px;
  margin: auto;
  padding: clamp(85px, 10.7vw, 152px) var(--gutter) 40px;
}
.chapter-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(48px, 6.3vw, 90px);
  color: #7189a3;
  font-size: 0.9rem;
  font-weight: 600;
}
.chapter-title > span {
  font-size: clamp(64px, 8.4vw, 120px);
  font-weight: 500;
  line-height: 0.83;
  letter-spacing: -0.065em;
  color: var(--navy);
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(0, 2.24fr) minmax(0, 1.13fr);
  gap: clamp(25px, 3.5vw, 56px);
  align-items: start;
}
.profile-copy h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.greeting {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem !important;
  font-weight: 700;
}
.greeting span {
  display: inline-block;
}
.greeting span:hover {
  color: var(--wine);
  transform: translateY(-3px);
}
.profile-copy .intro-line {
  margin: -2px 0 36px;
  text-align: justify;
  text-align-last: justify;
  font-size: 1rem;
  color: var(--ink);
}
.profile-copy > p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 18px;
}
.resume-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.3vw, 36px);
  margin-top: 35px;
}
.resume-columns h4,
.toolbox h4 {
  font-size: 0.86rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.resume-columns h4:not(:first-child) {
  margin-top: 28px;
}
.resume-columns p {
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 13px;
}
.resume-columns b {
  font-weight: 550;
}
.resume-columns small {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.skill-list li {
  position: relative;
  background: #fff;
  border: 1px solid #17283c18;
  box-shadow: 0 3px 6px #17283c13;
  border-radius: 12px;
  padding: 8px;
  width: 48px;
  height: 48px;
  transition: transform 0.28s var(--ease);
  display: grid;
  place-items: center;
}
.skill-list li:hover {
  transform: translateY(-4px) rotate(-4deg);
  z-index: 2;
}
.skill-list li span {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  padding: 4px 7px;
  font-size: 0.72rem;
  background: var(--navy);
  color: white;
  border-radius: 4px;
  white-space: nowrap;
}
.skill-list img {
  width: 100%;
  max-height: 32px;
  object-fit: contain;
}
.skill-text {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.75;
}
.badge-column {
  min-width: 0;
  text-align: center;
  position: sticky;
  top: 60px;
}
.badge-hanger {
  margin: -45px auto 0;
  position: relative;
  width: min(250px, 100%);
  height: 660px;
  clip-path: inset(-30px -300px -300px);
}
.pendulum {
  position: relative;
  transform-origin: 50% 0;
  will-change: transform;
}
.ribbon {
  position: absolute;
  top: 0;
  left: calc(50% - 50px);
  width: 100px;
  height: 196px;
}
.clasp {
  z-index: 3;
  position: absolute;
  left: calc(50% - 13px);
  top: 186px;
  width: 26px;
  height: 30px;
  background: linear-gradient(90deg, #9aa3ae, #eef1f4 45%, #8b95a1);
  border-radius: 5px 5px 7px 7px;
  box-shadow: inset 0 -6px 0 #0002, 0 3px 6px #0003;
}
.clasp:after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 3px solid #b9c1ca;
  border-radius: 50%;
  bottom: -7px;
  left: calc(50% - 9px);
}
.id-shell {
  --flip-timing: 0.9s cubic-bezier(0.3, 1.4, 0.4, 1);
  width: 100%;
  position: absolute;
  top: 212px;
  height: 428px;
  transform-origin: 50% -16px;
  perspective: 1300px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.id-shell:focus {
  outline: none;
}
.id-fold {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform var(--flip-timing);
  transform-style: preserve-3d;
}
.id-shell.flipped .id-fold {
  transform: rotateY(180deg);
}
/* Keep the outward face on top in WebKit as the card passes 90 degrees. */
.id-front {
  z-index: 50;
}
.id-shell.flipped .id-back {
  z-index: 100;
}
.id-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 2px 4px #13233914,
    0 34px 60px -26px #13233973;
  border: 1px solid #e6e8eb;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 6.5% 4%;
  overflow: hidden;
  color: var(--navy);
}
.id-mast {
  height: 14.7%;
  flex: none;
  margin: 0 -8% 5%;
  padding: 16px 7% 5px;
  border-bottom: 1px solid #e5e9ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}
.id-mast i {
  position: absolute;
  top: 8px;
  left: 40%;
  width: 20%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(#bdc4cb, #e1e4e8);
}
.id-mast img {
  width: 18px;
  height: 24px;
}
.portrait {
  object-fit: cover;
  object-position: 50% 36%;
  width: 100%;
  height: 49%;
  border-radius: 7px;
  filter: grayscale(1);
}
.id-name {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.93rem;
  margin-top: 9px;
}
.id-role,
.id-facts,
.id-bottom {
  font-size: 0.66rem;
}
.id-role {
  margin: 3px 0;
  color: var(--muted);
  line-height: 1.4;
}
.id-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  text-align: left;
  gap: 3px 8px;
  border-top: 1px solid #e5e8ed;
  margin-top: auto;
  padding-top: 5px;
}
.id-facts span {
  color: var(--muted);
}
.id-facts b {
  font-weight: 550;
}
.id-bottom {
  margin-top: auto;
  display: flex;
  align-items: end;
  gap: 6px;
  font-size: 0.57rem;
  padding-top: 7px;
  color: #667386;
}
.id-bottom i {
  width: 38px;
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--navy) 0 1px,
    transparent 1px 3px,
    var(--navy) 3px 5px,
    transparent 5px 7px
  );
}
.id-bottom em {
  margin-left: auto;
  font-style: normal;
}
.flip-front {
  position: absolute;
  inset: 0;
  background: none;
  border: 0;
  border-radius: inherit;
}
.flip-front:focus-visible {
  outline-offset: -4px;
}
.id-back {
  z-index: 0;
  transition: z-index var(--flip-timing);
  transform: rotateY(180deg);
  text-align: left;
  padding: 0;
  border: 0;
  color: #fff;
  background: var(--navy);
}
.id-back .id-mast {
  height: 62px;
  margin: 0;
  padding: 0 16px 12px;
  align-items: flex-end;
  justify-content: flex-end;
  border: 0;
  background: var(--wine);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.id-back .id-mast i {
  top: 10px;
  left: calc(50% - 23px);
  width: 46px;
  height: 8px;
  background: #eee9ea;
  box-shadow: inset 0 1px 2px #0005;
}
.id-back dl {
  margin: 20px 20px 0;
  display: grid;
  gap: 13px;
}
.id-back dt {
  color: #9fb0c9;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.2em;
}
.id-back dd {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 19px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.id-back a {
  text-decoration: none;
}
.id-back dd a:is(:hover, :focus-visible),
.flip-back:is(:hover, :focus-visible) {
  text-decoration: underline;
}
.id-back dd a:focus-visible {
  outline: none;
  text-decoration-thickness: 2px;
}
.cv-download {
  align-self: flex-start;
  margin: 20px 20px 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.cv-download:focus-visible {
  background: var(--ice);
}
@media (hover: hover) {
  .cv-download:hover {
    background: var(--ice);
  }
}
.id-back .id-bottom {
  flex: none;
  height: 36px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #ffffff14;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.id-back .id-bottom i {
  flex: 0 0 42px;
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0 2px,
    transparent 2px 4px,
    #fff 4px 5px,
    transparent 5px 8px,
    #fff 8px 11px,
    transparent 11px 12px
  );
  opacity: 0.85;
}
.flip-back {
  margin-left: auto;
  align-self: stretch;
  padding: 0;
  background: transparent;
  border: 0;
  color: #ffffffc0;
  letter-spacing: 0.06em;
}
.flip-back:focus-visible {
  outline-color: var(--ice);
  outline-offset: -2px;
}
.swing-hint {
  margin-top: 22px;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}
@media (max-width: 1130px) and (min-width: 731px) {
  .profile-layout {
    grid-template-columns: minmax(200px, 0.85fr) minmax(0, 2fr);
  }
  .toolbox {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .badge-column {
    grid-row: span 2;
  }
}
@media (max-width: 730px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .badge-column {
    position: relative;
    top: auto;
  }
  .badge-hanger {
    margin: -24px auto 0;
    width: min(250px, 80vw);
  }
  .profile-copy {
    margin-top: 18px;
  }
  .toolbox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }
  .skill-list {
    gap: 7px;
  }
  .skill-list li {
    width: 39px;
    height: 39px;
    padding: 6px;
  }
  .chapter-title {
    margin-bottom: 55px;
  }
  .profile-copy .intro-line {
    text-align-last: auto;
  }
  .profile-copy > p {
    font-size: 1rem;
  }
}
@media (max-width: 390px) {
  .resume-columns {
    grid-template-columns: 1fr;
  }
}

/* Project collections open from the five objects on the desk. */
.work-statement {
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: 0.2em;
  color: var(--navy);
  margin-bottom: 35px;
}
.desk-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--navy);
}
.desk-prompt i {
  font-style: normal;
  color: var(--wine);
}
.desk-prompt small {
  font-weight: 400;
  color: #6c8198;
}
.desk-scene {
  position: relative;
  margin: 12px auto 0;
  max-width: 1180px;
  isolation: isolate;
}
.desk-drawing {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
[data-object] {
  transition:
    translate 0.3s var(--ease),
    filter 0.35s;
}
[data-object].highlight {
  translate: 0 -5px;
  filter: drop-shadow(0px 8px 6px #15263b3d);
}
.desk-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspot {
  border: 0;
  background: transparent;
  position: absolute;
  pointer-events: auto;
  outline-offset: 1px;
}
.hotspot i,
.choices i {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wine);
  color: white;
  font-size: 0.74rem;
  font-weight: 700;
  font-style: normal;
}
.hotspot i {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 27px;
  height: 27px;
  border: 2px solid white;
  box-shadow: 0 0 0 7px #4a122019;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 11px #4a122006;
  }
}
.choices,
.project-links,
.contact-links,
.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  justify-content: center;
}
.choices {
  margin: 16px 0;
}
.choices button,
.close-collection,
.dialog-close,
.dialog-navigation button {
  background: white;
  border: 1px solid #ccd5df;
  border-radius: 30px;
  color: var(--navy);
  font-size: 0.84rem;
  padding: 8px 15px;
  font-weight: 550;
  transition:
    transform 0.22s,
    background 0.22s;
}
.choices button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  box-shadow: 0 2px 5px #1622340c;
}
.choices i {
  width: 23px;
  height: 23px;
}
.choices button:hover,
.all-projects:hover,
.close-collection:hover {
  transform: translateY(-2px);
}
.choices button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}
.all-projects {
  display: block;
  margin: 16px auto 0;
  padding: 9px;
  background: none;
  border: none;
  font-size: 0.86rem;
  color: #5b718b;
}
.all-projects b {
  font-weight: 600;
  color: var(--wine);
  margin-left: 3px;
}
.collection {
  scroll-margin-top: 80px;
  padding-top: 30px;
}
.collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #cbd5dd;
  padding: 30px 0 26px;
  gap: 20px;
}
.collection-label,
.project-meta {
  font-size: 0.76rem;
  color: #677b92;
  letter-spacing: 0.09em;
}
.collection-head h3 {
  font-size: clamp(26px, 4vw, 56px);
  letter-spacing: -0.055em;
  color: var(--navy);
  font-weight: 550;
}
.project-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 32px 25px;
}
.project-tile {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  align-self: start;
  color: var(--navy);
}
.tile-image {
  aspect-ratio: 1.55;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border-bottom: 5px solid #80474e;
  background: #ececf1;
}
.tile-image.research {
  border-color: #698775;
}
.tile-image.tools {
  border-color: #6f8ca7;
}
.tile-image.games {
  border-color: #b28b46;
}
.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter 0.5s,
    scale 0.6s var(--ease);
  filter: grayscale(0.85);
}
.tile-image.apps img {
  object-fit: contain;
}
.tile-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wine);
  opacity: 0.29;
  transition: opacity 0.45s;
}
.project-tile:is(:hover, :focus-visible) .tile-image img {
  filter: none;
  scale: 1.04;
}
.project-tile:is(:hover, :focus-visible) .tile-image:after {
  opacity: 0;
}
.project-tile:is(:hover, :focus-visible) .tile-image.apps img {
  scale: 1;
}
.tile-image span {
  position: absolute;
  z-index: 1;
  bottom: -0.1em;
  left: 9px;
  font-weight: 650;
  font-size: clamp(41px, 4vw, 62px);
  color: #fff;
  text-shadow: 0 2px 8px #18283b7d;
  letter-spacing: -0.05em;
}
.tile-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
  margin: 12px 0 5px;
}
.tile-name b {
  font-size: 1rem;
}
.tile-name small {
  font-size: 0.71rem;
  color: var(--muted);
  text-align: right;
}
.project-tile p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.modal-open {
  overflow: hidden;
}
.project-dialog {
  width: min(780px, 92vw);
  max-height: 88svh;
  padding: 0;
  border: 1px solid #c6d0da;
  border-radius: 12px;
  color: var(--navy);
  background: white;
  box-shadow: 0 24px 120px #101a2940;
  overscroll-behavior: contain;
}
.project-dialog[open] {
  animation: dialog-in 0.28s var(--ease);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.project-dialog::backdrop {
  background: #101b2dd9;
  backdrop-filter: blur(4px);
}
.dialog-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  background: #fffffff2;
  border-bottom: 1px solid #dfe6ec;
  backdrop-filter: blur(8px);
}
.dialog-counter {
  font-size: 0.77rem;
  letter-spacing: 0.14em;
}
.project-hero {
  aspect-ratio: 2.35;
  background: #f3f4f6;
  overflow: hidden;
}
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.project-hero.apps img {
  object-fit: contain;
}
.dialog-content article {
  padding: clamp(20px, 4vw, 42px);
}
.dialog-content h2 {
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.065em;
  line-height: 1.05;
  margin: 12px 0;
}
.dialog-content .standfirst {
  font-size: 1.08rem;
  font-weight: 550;
  color: var(--wine);
  margin: 0 0 23px;
}
.dialog-content article > p:not(.project-meta) {
  line-height: 1.65;
}
.dialog-content h3 {
  font-size: 1rem;
  margin: 23px 0 8px;
}
.stack {
  justify-content: start;
  padding: 0;
  list-style: none;
  margin: 24px 0;
}
.stack li {
  font-size: 0.77rem;
  padding: 5px 9px;
  background: #eff3f7;
  border-radius: 20px;
}
.project-links {
  justify-content: start;
}
.project-links a,
.contact-links a {
  border: 1px solid var(--navy);
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  background: white;
}
.project-links a:first-child,
.contact-links a:nth-child(-n + 2) {
  background: var(--navy);
  color: white;
}
:is(.project-links, .contact-links) a:hover {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}
.dialog-navigation {
  display: flex;
  justify-content: space-between;
  padding: 11px 20px 18px;
}
@media (max-width: 730px) {
  .desk-prompt {
    font-size: 0.9rem;
  }
  .desk-scene {
    margin: 22px -8px 0;
  }
  .hotspot i {
    width: 22px;
    height: 22px;
    font-size: 0.63rem;
    box-shadow: 0 0 0 3px #4a122019;
    animation: none;
  }
  .choices {
    gap: 6px;
  }
  .choices button {
    font-size: 0.77rem;
    min-height: 36px;
  }
  .desk-preview {
    display: none;
  }
  .project-wall {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  }
}

/* Contact and margin illustrations */
.contact-body {
  position: relative;
  text-align: center;
  isolation: isolate;
  padding: 0 12px;
}
.contact-body h3 {
  font-size: clamp(70px, 12vw, 171px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  color: var(--navy);
  font-weight: 600;
}
.contact-body h3 em {
  color: var(--wine);
  font-style: normal;
}
.contact-body > p {
  max-width: 580px;
  margin: 44px auto;
  font-size: clamp(1rem, 1.32vw, 1.15rem);
  color: var(--ink);
  line-height: 1.65;
}
.contact-links {
  gap: 12px;
}
.contact-links a {
  padding: 15px 23px;
  transition:
    transform 0.23s,
    background 0.3s;
}
.contact-links a:hover {
  transform: translateY(-3px);
}
.stickers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.sticker {
  position: absolute;
  width: clamp(23px, 2.3vw, 34px);
  height: auto;
  filter: drop-shadow(0 6px 7px #15263b29);
  pointer-events: auto;
  transform: rotate(var(--twist));
  transition: transform 0.35s var(--ease);
}
.sticker:hover {
  transform: translateY(-6px) rotate(calc(var(--twist) * -2)) scale(1.2);
}
.robot-track {
  height: 83px;
  margin: 30px 8px 10px;
  position: relative;
  overflow: hidden;
}
.little-bot {
  border: 0;
  background: none;
  width: 39px;
  height: 42px;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0;
  animation: stroll 30s ease-in-out infinite alternate;
}
.little-bot:hover,
.little-bot:focus-visible,
.little-bot.talking {
  animation-play-state: paused;
}
.little-bot svg {
  width: 100%;
  animation: trundle 0.55s steps(2, end) infinite;
}
.robot-note {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--navy);
  color: white;
  border-radius: 7px 7px 7px 0;
  padding: 4px 8px;
  font:
    0.72rem Montserrat,
    sans-serif;
  white-space: nowrap;
  opacity: 0;
}
.talking .robot-note {
  opacity: 1;
}
@keyframes stroll {
  from {
    left: 1%;
  }
  to {
    left: 83%;
  }
}
@keyframes trundle {
  50% {
    transform: translateY(-2px) rotate(3deg);
  }
}
footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-index {
  display: flex;
  gap: 6px;
}
.footer-index a {
  text-decoration: none;
  font-size: clamp(23px, 2.5vw, 34px);
  color: #78899a;
  letter-spacing: -0.06em;
}
.footer-index a:last-child,
.footer-index a:hover {
  color: var(--wine);
}
@media (max-width: 900px) {
  .stickers {
    opacity: 0.75;
  }
  .sticker:nth-child(3n) {
    display: none;
  }
  .contact-body > p {
    max-width: 74%;
  }
}
@media (max-width: 640px) {
  .contact-body {
    padding: 0;
  }
  .contact-body > p {
    margin: 26px auto;
    max-width: 95%;
  }
  .contact-links {
    max-width: 390px;
    margin: auto;
    gap: 8px;
  }
  .contact-links a {
    padding: 12px 15px;
    font-size: 0.8rem;
  }
  .stickers {
    display: none;
  }
  .robot-track {
    margin-top: 14px;
    height: 65px;
  }
  .chapter {
    padding-bottom: 28px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .motion .enter:not(.in-view) {
    opacity: 0;
    transform: translateY(22px);
  }
  .enter {
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease);
  }
  .brand-intro {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    letter-spacing: 0.24em;
    color: var(--navy);
    background: white;
    pointer-events: none;
    animation: brand-intro 0.85s ease both;
  }
  .brand-intro img {
    width: 32px;
    height: 40px;
  }
  @keyframes brand-intro {
    0%,
    45% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }
}
@media (max-width: 640px) {
  #cover-art {
    width: 100%;
  }
  .cover {
    padding-bottom: 92px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.id-shell.dragging,
.id-shell.dragging button {
  cursor: grabbing;
}

@media (max-width: 1100px) {
  .badge-column {
    position: relative;
    top: auto;
  }
}
