@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@400;500;600;700&display=swap");


body.is-loading {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 4vw 25px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.55),
      transparent 40%
    ),
    var(--paper);
  color: var(--ink);
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}

.loading-screen.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-screen__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.loading-screen__top,
.loading-screen__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font: 9px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.loading-screen__top {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.loading-screen__bottom {
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.loading-screen__bottom button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.loading-screen__centre {
  position: relative;
  z-index: 2;
  width: min(980px, 86vw);
  margin: auto;
}

.loading-screen__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 48px;
  font-size: clamp(92px, 16vw, 250px);
  line-height: 0.62;
  letter-spacing: -0.105em;
  text-transform: uppercase;
}

.loading-screen__title span {
  font-weight: 600;
}

.loading-screen__title em {
  align-self: flex-end;
  padding-right: 7vw;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.loading-screen__progress {
  position: relative;
  height: 11px;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.loading-screen__progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--pink);
  transition: width 0.12s linear;
}

.loading-screen__status {
  margin: 11px 0 0;
  font: 9px var(--mono);
  text-align: right;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen,
  .loading-screen__progress span {
    transition-duration: 0.01ms;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  overflow-x: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.desktop {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.55),
      transparent 40%
    ),
    var(--paper);
}

/* 
.paper-noise {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
*/


.topbar {
  position: absolute;
  top: 26px;
  left: 4vw;
  right: 4vw;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font: 10px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar__left,
.topbar__right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.topbar__mark {
  font-size: 18px;
}

.topbar__center {
  text-align: center;
}

.topbar__right {
  justify-content: flex-end;
}

.side-note {
  position: absolute;
  top: 50%;
  z-index: 8;
  writing-mode: vertical-rl;
  font: 9px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-note--left {
  left: 2vw;
  transform: rotate(180deg);
}

.side-note--right {
  right: 2vw;
}

.intro {
  position: absolute;
  top: 14vh;
  left: 8vw;
  z-index: 12;
  width: min(430px, 38vw);
}

.eyebrow {
  margin: 0 0 16px;
  font: 10px/1.35 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.intro h1,
.window__heading h2,
.contact-layout h2,
.project-view__copy h2 {
  margin: 0;
  text-transform: uppercase;
}

.intro h1 {
  font-size: clamp(72px, 10vw, 160px);
  line-height: 0.72;
  letter-spacing: -0.09em;
  font-weight: 600;
}

.intro h1 em,
.window__heading h2 em,
.contact-layout h2 em,
.project-view__copy h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.07em;
}

.intro__copy {
  width: 280px;
  margin: 34px 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
}

.line-art {
  position: absolute;
  z-index: 2;
  color: #8fa9e8;
  pointer-events: none;
}

.line-art--main {
  width: min(54vw, 700px);
  height: min(54vw, 700px);
  right: 11vw;
  top: 9vh;
  opacity: 0.75;
  animation: float-art 12s ease-in-out infinite alternate;
}

@keyframes float-art {
  from {
    transform: rotate(-2deg) scale(0.98);
  }

  to {
    transform: rotate(2deg) scale(1.02);
  }
}

.folder-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
}

.folder {
  --rotation: 0deg;
  position: absolute;
  width: 210px;
  height: 150px;
  padding: 0;
  background: transparent;
  cursor: grab;
  text-align: left;
  transform: rotate(var(--rotation));
  filter: drop-shadow(8px 10px 0 rgba(17, 16, 14, 0.08));
  transition: transform 0.25s ease, filter 0.25s ease;
  touch-action: none;
}

.folder--large {
  width: 260px;
  height: 180px;
}

.folder:hover {
  transform: rotate(0deg) translateY(-7px);
  filter: drop-shadow(12px 16px 0 rgba(17, 16, 14, 0.13));
}

.folder:active {
  cursor: grabbing;
}

.folder__tab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  min-width: 110px;
  height: 30px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-bottom: 0;
  background: #e0dcd5;
  font: 9px/1 var(--mono);
  letter-spacing: 0.05em;
}

.folder__body {
  position: absolute;
  inset: 22px 0 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--sand);
}

.folder__body::before,
.folder__body::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 190px;
  height: 190px;
  opacity: 0.65;
}

.folder__body::before {
  left: -92px;
  bottom: -118px;
}

.folder__body::after {
  right: -92px;
  top: -118px;
}

.folder__index {
  position: absolute;
  top: 16px;
  right: 15px;
  font: 9px var(--mono);
}

.folder__title {
  position: absolute;
  top: 17px;
  left: 16px;
  z-index: 2;
  font-size: 14px;
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.folder__symbol {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 1;
  transform: translate(-50%, -50%);
  font: 54px/1 var(--serif);
}

.folder__meta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font: 8px/1.35 var(--mono);
}

.folder--works {
  left: 8vw;
  top: 56vh;
  --rotation: -4deg;
  color: #2d6691;
}

.folder--works .folder__body {
  background: #c7d9ee;
}

.folder--profile {
  left: 35vw;
  top: 67vh;
  --rotation: 3deg;
  color: #26533f;
}

.folder--profile .folder__body {
  background:#b8d0aa;
}

.folder--papers {
  right: 23vw;
  top: 61vh;
  --rotation: -3deg;
  color: #633424;
}

.folder--papers .folder__body {
  background: #f3dda3;
}

.folder--misc {
  right: 7vw;
  top: 39vh;
  --rotation: 5deg;
  color: #5f588e;
}

.folder--misc .folder__body {
  background: #d8d2ec;
}

.folder--contact {
  right: 5vw;
  top: 19vh;
  --rotation: -2deg;
  color: #57212f;
}

.folder--contact .folder__body {
  background: #fcc8d5;
}

.desktop-footer {
  position: absolute;
  left: 4vw;
  right: 4vw;
  bottom: 24px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  font: 9px var(--mono);
  text-transform: uppercase;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 16, 14, 0.28);
  backdrop-filter: blur(4px);
}

.window {
  position: fixed;
  inset: 4vh 4vw;
  z-index: 100;
  overflow: auto;
  min-width: 540px;
  min-height: 360px;
  resize: both;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 18px 20px 0 rgba(17, 16, 14, 0.18);
}


.window.is-maximized {
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  max-height: none;
  resize: none;
  border: 0;
  box-shadow: none;
}

.window.is-minimized {
  display: none;
}

.window__controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window__control {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font: 12px/1 var(--mono);
}

.window__control:hover {
  background: var(--ink);
  color: var(--paper);
}

.window__bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ink);
  background: rgba(233, 231, 223, 0.95);
  font: 9px var(--mono);
  text-transform: uppercase;
}

.window__bar > span:nth-child(2) {
  text-align: center;
}

.window__bar > span:last-child {
  text-align: right;
}



.window__content {
  padding: 6vh 6vw 9vh;
}

.window__heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 7vh;
}

.window__heading .eyebrow {
  grid-column: 1 / -1;
}

.window__heading h2 {
  font-size: clamp(72px, 9vw, 145px);
  line-height: 0.73;
  letter-spacing: -0.09em;
}

.window__heading > p:last-child {
  max-width: 290px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5vw 4vw;
}

.project-card {
  display: grid;
  gap: 8px;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-card__number,
.project-card small {
  font: 9px var(--mono);
  text-transform: uppercase;
}

.project-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.45;
  overflow: hidden;
  margin: 6px 0 8px;
  border: 1px solid var(--ink);
  transition: transform 0.25s ease;
}

.project-card__visual::before,
.project-card__visual::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 145%;
  border: 2px solid currentColor;
  border-radius: 48%;
  transform: rotate(38deg);
}

.project-card__visual::after {
  transform: rotate(-38deg);
}

.project-card__visual span {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(30px, 4.5vw, 66px);
  line-height: 0.75;
  font-weight: 600;
  letter-spacing: -0.09em;
}

.project-card:hover .project-card__visual {
  transform: translateY(-7px) rotate(-1deg);
}

.project-card strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.project-card__visual--one {
  background: var(--pink-light);
  color: #6b5260;
}

.project-card__visual--two {
  background: var(--olive-light);
  color: #52604b;
}

.project-card__visual--three {
  background-color: #E3EBFA;
}

.project-card__visual--four {
  background: var(--sand);
  color: #635b4d;
}

/* =====================================================
   PROJECT IMAGES
===================================================== */

.project-card__visual.has-project-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card__visual.has-project-image::before,
.project-card__visual.has-project-image::after {
  display: none;
}

.project-card__visual.has-project-image span {
  display: none;
}

/* =====================================================
   PROJECT DETAIL HERO IMAGE
===================================================== */

.project-view__visual.has-project-image {
  display: block;
  background: var(--paper);
}

.project-view__visual.has-project-image::before,
.project-view__visual.has-project-image::after {
  display: none;
}

.project-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72vh;
  object-fit: cover;
  object-position: center;
}

.project-view__visual.has-project-image {
  overflow: hidden;
}

@media (max-width: 900px) {
  .project-hero-image {
    min-height: 60vh;
  }
}

@media (max-width: 600px) {
  .project-hero-image {
    min-height: 54vh;
  }
}


.profile-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 7vw;
  border-top: 1px solid var(--ink);
  padding-top: 38px;
}

.profile-card {
  align-self: start;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--pink-light);
  transform: rotate(-1.5deg);
  box-shadow: 9px 11px 0 rgba(17, 16, 14, 0.08);
}

.profile-card__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 0.86;
  margin-bottom: 16px;
  border: 1px solid var(--ink);
  background-image: url("images/me/headshot.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*background:
    radial-gradient(circle at 50% 35%, var(--paper) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 72%, var(--paper) 0 27%, transparent 28%),
    var(--olive);
  font: 10px var(--mono);*/
}

.profile-card p {
  margin: 7px 0;
  font: 9px var(--mono);
}

.profile-copy .lead {
  max-width: 760px;
  margin-top: 0;
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.profile-copy > p:not(.lead) {
  max-width: 650px;
  font-size: 14px;
  line-height: 1.65;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.profile-columns h3 {
  margin: 0 0 16px;
  font: 10px var(--mono);
}

.profile-columns p {
  margin: 8px 0;
  font-size: 12px;
}


.profile-page {
  padding-bottom: 10vh;
}

.profile-heading {
  margin-bottom: 8vh;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 7vw;
  align-items: start;
  padding-bottom: 10vh;
}

.profile-card__facts {
  padding-top: 4px;
}

.profile-introduction .lead {
  max-width: 850px;
  margin: 0 0 32px;
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.profile-introduction > p:not(.lead) {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.65;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.profile-summary-grid > div {
  display: grid;
  gap: 9px;
}

.profile-summary-grid__label {
  font: 9px var(--mono);
}

.profile-summary-grid strong {
  font-size: 14px;
  line-height: 1.3;
}

.cv-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  gap: 6vw;
  padding: 10vh 0;
  border-top: 1px solid var(--ink);
}

.cv-section__heading {
  position: sticky;
  top: 72px;
  align-self: start;
}

.cv-section__heading > span {
  display: block;
  margin-bottom: 18px;
  font: 9px var(--mono);
}

.cv-section__heading h3 {
  margin: 0;
  font-size: clamp(54px, 6vw, 104px);
  line-height: 0.76;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.cv-section__heading h3 em,
.profile-extras h3 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.cv-list {
  border-top: 1px solid var(--ink);
}

.cv-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  padding: 27px 0;
  border-bottom: 1px solid var(--ink);
}

.cv-item__date {
  padding-top: 5px;
  font: 9px/1.4 var(--mono);
}

.cv-item__main h4 {
  margin: 0 0 7px;
  font-size: clamp(24px, 2.5vw, 40px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.cv-item__main p {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.5;
}

.cv-section--education {
  background: var(--pink-light);
  margin-inline: -6vw;
  padding-inline: 6vw;
}

.cv-item--education .cv-item__main h4 {
  max-width: 720px;
}

.profile-extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4vw;
  padding-top: 10vh;
  border-top: 1px solid var(--ink);
}

.profile-extras h3 {
  margin: 0 0 28px;
  font-size: clamp(40px, 4.4vw, 74px);
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.profile-extras > div > p:not(.eyebrow) {
  margin: 8px 0;
  font-size: 13px;
}

.profile-cv-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font: 10px var(--mono);
}

.paper-list {
  border-top: 1px solid var(--ink);
}

.paper-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink);
}

.paper-item > span,
.paper-item a {
  font: 9px var(--mono);
}

.paper-item h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.05em;
}

.paper-item p {
  max-width: 560px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.paper-item a {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.misc-board {
  position: relative;
  min-height: 500px;
  margin-bottom: 60px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 16, 14, 0.05) 1px, transparent 1px),
    var(--paper-dark);
  background-size: 32px 32px;
  overflow: hidden;
}

.misc-object {
  position: absolute;
  display: grid;
  gap: 10px;
  width: 210px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  box-shadow: 9px 11px 0 rgba(17, 16, 14, 0.1);
  transition: transform 0.2s ease;
}

.misc-object:hover {
  transform: translateY(-7px) rotate(0deg);
}

.misc-object__icon {
  font: 50px/1 var(--serif);
}

.misc-object strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.misc-object small {
  font: 8px var(--mono);
}

.misc-object--music {
  top: 48px;
  left: 6%;
  background: var(--pink-light);
  transform: rotate(-4deg);
}

.misc-object--art {
  top: 180px;
  left: 32%;
  background: #d8d2ec;
  transform: rotate(3deg);
}

.misc-object--photos {
  top: 60px;
  right: 7%;
  background: var(--olive-light);
  transform: rotate(4deg);
}

.misc-object--notes {
  bottom: 34px;
  right: 22%;
  background: var(--sand);
  transform: rotate(-3deg);
}


.misc-panel h3 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.misc-panel__intro {
  max-width: 760px;
  margin-bottom: 48px;
  font-size: 15px;
  line-height: 1.6;
}

.misc-detail-grid {
  display: grid;
  gap: 2vw;
  margin-top: 36px;
}

.misc-detail-grid--albums {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.misc-detail-grid--art {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.misc-detail-grid--photos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.misc-detail-grid--notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.misc-entry {
  min-width: 0;
}

.misc-entry__image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(17,16,14,.18) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(17,16,14,.18) 50%, transparent 50.3%),
    var(--paper-dark);
  font: 9px var(--mono);
}

.misc-entry__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.misc-detail-grid--albums .misc-entry__image {
  aspect-ratio: 1;
  min-height: 0;
}

.misc-detail-grid--art .misc-entry:nth-child(2n) {
  padding-top: 70px;
}

.misc-detail-grid--art .misc-entry__image {
  min-height: 420px;
}

.misc-detail-grid--photos .misc-entry:nth-child(3n + 2) {
  padding-top: 90px;
}

.misc-detail-grid--photos .misc-entry__image {
  min-height: 360px;
}

.misc-entry__meta {
  display: grid;
  gap: 5px;
  padding-top: 12px;
}

.misc-entry__meta strong {
  font-size: 16px;
  letter-spacing: -0.035em;
}

.misc-entry__meta span,
.misc-entry__meta a {
  font: 8px/1.4 var(--mono);
  text-transform: uppercase;
}

.misc-entry__meta a {
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}

.misc-playlist {
  margin-top: 44px;
  border-top: 1px solid var(--ink);
}

.misc-track {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink);
}

.misc-track span {
  font: 9px var(--mono);
}

.misc-track strong {
  font-size: 15px;
}

.misc-note-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--ink);
  background:  #f3dda3;
  }

.misc-note-card:nth-child(2) {
  background: var(--pink-light);
}

.misc-note-card:nth-child(3) {
  background: var(--olive-light);
}

.misc-note-card:nth-child(4) {
  background: #fcc8d5;
}

.misc-note-card:nth-child(5) {
  background: #a1c0e2;
}
.misc-note-card:nth-child(6) {
  background: #ef9d77;
}
.misc-note-card:nth-child(7) {
  background: #d8d2ec;
}
.misc-note-card:nth-child(8) {
  background: var(--paper);
}
.misc-note-card span {
  font: 8px var(--mono);
}

.misc-note-card h4 {
  margin: 25px 0 14px;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.misc-note-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.misc-edit-note {
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font: 9px/1.5 var(--mono);
}

.misc-edit-note code {
  font: inherit;
}

@media (max-width: 700px) {
  .loading-screen {
    padding: 16px 5vw;
  }

  .loading-screen__title {
    font-size: 24vw;
  }

  .misc-detail-grid--albums,
  .misc-detail-grid--art,
  .misc-detail-grid--photos,
  .misc-detail-grid--notes {
    grid-template-columns: 1fr;
  }

  .misc-detail-grid--art .misc-entry:nth-child(2n),
  .misc-detail-grid--photos .misc-entry:nth-child(3n + 2) {
    padding-top: 0;
  }

  .misc-track {
    grid-template-columns: 38px 1fr;
  }

  .misc-track span:last-child {
    grid-column: 2;
  }
}

.misc-panel {
  padding: 34px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.misc-panel h3 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 78px);
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.misc-panel p {
  max-width: 680px;
  font-size: 13px;
  line-height: 1.55;
}

.contact-layout {
  min-height: calc(92vh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7vh 7vw;
}

.contact-layout h2 {
  font-size: clamp(110px, 17vw, 260px);
  line-height: 0.66;
  letter-spacing: -0.11em;
}

.contact-email {
  width: fit-content;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font: 18px var(--mono);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font: 9px var(--mono);
}

.contact-links a {
  text-decoration: none;
}

.project-view {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: auto;
  background: var(--paper);
}

.project-view__bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 18px 4vw;
  border-bottom: 1px solid var(--ink);
  background: rgba(233, 231, 223, 0.95);
  font: 9px var(--mono);
}

.project-view__bar button {
  width: fit-content;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.project-view__bar span {
  text-align: center;
}

.project-view__bar button:last-child {
  justify-self: end;
  font-size: 21px;
}

.project-view__layout {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 5vw;
  align-items: center;
  padding: 7vh 7vw;
}

.project-view__copy h2 {
  margin: 24px 0 34px;
  font-size: clamp(68px, 9vw, 138px);
  line-height: 0.73;
  letter-spacing: -0.09em;
}

.project-view__copy > p:not(.eyebrow) {
  max-width: 390px;
  font-size: 14px;
  line-height: 1.55;
}

.project-meta {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font: 9px var(--mono);
}

.project-view__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72vh;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--pink-light);
  color: #6b5260;
}

.project-view__visual::before,
.project-view__visual::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 150%;
  border: 3px solid currentColor;
  border-radius: 48%;
  transform: rotate(40deg);
}

.project-view__visual::after {
  transform: rotate(-40deg);
}

.project-view__visual span {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(60px, 9vw, 150px);
  line-height: 0.72;
  font-weight: 600;
  letter-spacing: -0.1em;
}


.project-page {
  width: 100%;
}

.case-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4vw;
  padding: 10vh 7vw;
  border-top: 1px solid var(--ink);
}

.case-section__label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 7px;
  font: 9px var(--mono);
}

.case-section__content {
  min-width: 0;
}

.case-section__content--two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 6vw;
  align-items: start;
}

.case-section h3 {
  margin: 0 0 46px;
  font-size: clamp(58px, 7vw, 112px);
  line-height: 0.76;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.case-section h3 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.rich-text {
  max-width: 760px;
}

.rich-text p {
  margin: 0 0 1.35em;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.case-media {
  padding: 0 7vw 10vh;
}

.media-placeholder {
  min-height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 25px;
  border: 1px solid var(--ink);
  /*background:
    linear-gradient(135deg, transparent 49.8%, rgba(17,16,14,.22) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.8%, rgba(17,16,14,.22) 50%, transparent 50.2%),
    var(--paper-dark);*/
  text-align: center;
  font: 11px var(--mono);
}

.media-placeholder small {
  font-size: 8px;
}

.media-placeholder--portrait {
  min-height: 620px;
}

.media-placeholder.has-image {
  padding: 0;
  border: none;
}

.media-placeholder.has-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.media-placeholder--landscape {
  min-height: min(68vw, 760px);
}

.case-gallery {
  display: grid;
  gap: 2vw;
  margin-top: 6vh;
}

.case-gallery--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-gallery--three .media-placeholder {
  min-height: 280px;
}

.case-gallery--stack {
  grid-template-columns: 1fr;
}

.case-section--reflection {
  background: var(--pink-light);
}


.next-project {
  padding: 10vh 7vw;
  border-top: 1px solid var(--ink);
  background: var(--paper-dark);
}

.next-project__label {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  font: 9px var(--mono);
}

.next-project__card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 5vw;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.next-project__card:hover {
  transform: translateY(-7px);
  box-shadow: 12px 14px 0 rgba(17, 16, 14, 0.13);
}

.next-project__copy {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
}

.next-project__copy h3 {
  margin: 30px 0;
  font-size: clamp(62px, 7vw, 118px);
  line-height: 0.75;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.next-project__copy h3 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.next-project__copy > span {
  font: 9px var(--mono);
}

.next-project__visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid var(--ink);
  background: var(--olive-light);
  color: #52604b;
}

.next-project__visual::before,
.next-project__visual::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 150%;
  border: 2px solid currentColor;
  border-radius: 48%;
  transform: rotate(39deg);
}

.next-project__visual::after {
  transform: rotate(-39deg);
}

.next-project__visual span {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(52px, 8vw, 132px);
  line-height: 0.72;
  font-weight: 600;
  letter-spacing: -0.1em;
}

.next-project__visual.has-project-image::before,
.next-project__visual.has-project-image::after {
  display: none;
}

.next-project__visual.has-project-image span {
  display: none;
}

.next-project__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 7vw;
  border-top: 1px solid var(--ink);
  font: 9px var(--mono);
}

.case-footer button {
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.hint {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  padding: 9px 11px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font: 9px var(--mono);
  transition: opacity 0.35s ease;
}

.hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .topbar {
    grid-template-columns: 1fr 1fr;
  }

  .topbar__center {
    display: none;
  }

  .intro {
    left: 7vw;
    width: 48vw;
  }

  .line-art--main {
    right: -16vw;
    top: 14vh;
    width: 90vw;
    opacity: 0.42;
  }

  .folder--works {
    left: 6vw;
    top: 55vh;
  }

  .folder--profile {
    left: 39vw;
    top: 69vh;
  }

  .folder--papers {
    right: 4vw;
    top: 58vh;
  }

  .folder--misc {
    right: 4vw;
    top: 36vh;
  }

  .folder--contact {
    right: 5vw;
    top: 19vh;
  }

  .profile-layout,
  .project-view__layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 380px;
  }

  .project-view__visual {
    min-height: 60vh;
  }

  .misc-object--art {
    left: 35%;
  }
}

@media (max-width: 700px) {
  .topbar {
    top: 15px;
    left: 5vw;
    right: 5vw;
  }

  .topbar__right span:last-child,
  .side-note,
  .desktop-footer {
    display: none;
  }

  .intro {
    top: 11vh;
    left: 7vw;
    width: 86vw;
  }

  .intro h1 {
    font-size: 22vw;
  }

  .intro__copy {
    width: 210px;
  }

  .line-art--main {
    top: 22vh;
    right: -42vw;
    width: 135vw;
    opacity: 0.34;
  }

  .folder,
  .folder--large {
    width: 156px;
    height: 115px;
  }

  .folder__title {
    font-size: 11px;
  }

  .folder__symbol {
    font-size: 40px;
  }

  .folder__meta {
    font-size: 6px;
  }

  .folder--works {
    left: 6vw;
    top: 53vh;
  }

  .folder--profile {
    left: 48vw;
    top: 66vh;
  }

  .folder--papers {
    right: 5vw;
    top: 51vh;
  }

  .folder--misc {
    left: 8vw;
    top: 72vh;
  }

  .folder--contact {
    right: 4vw;
    top: 30vh;
  }

  .window {
    inset: 0;
    border: 0;
    box-shadow: none;
  }

  .window {
    min-width: 0;
    min-height: 0;
    resize: none;
  }

  .case-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 8vh 7vw;
  }

  .case-section__content--two-column {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .case-section h3 {
    font-size: 17vw;
    margin-bottom: 32px;
  }

  .case-gallery--two,
  .case-gallery--three {
    grid-template-columns: 1fr;
  }

  .media-placeholder--portrait {
    min-height: 440px;
  }

  .media-placeholder--landscape {
    min-height: 55vh;
  }

  .case-footer {
    flex-direction: column;
  }


  .window__content {
    padding: 6vh 6vw 10vh;
  }

  .window__heading {
    grid-template-columns: 1fr;
  }

  .window__heading h2 {
    font-size: 20vw;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .profile-columns {
    grid-template-columns: 1fr;
  }

  .paper-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .misc-board {
    min-height: auto;
    padding: 20px;
    display: grid;
    gap: 20px;
  }

  .misc-object {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .contact-layout h2 {
    font-size: 25vw;
  }

  .contact-email {
    font-size: 12px;
  }

  .project-view__bar {
    padding: 15px 5vw;
  }

  .project-view__layout {
    padding: 6vh 7vw;
  }

  .project-view__copy h2 {
    font-size: 19vw;
  }

  .project-view__visual {
    min-height: 54vh;
  }

  .profile-hero,
  .cv-section,
  .profile-extras {
    grid-template-columns: 1fr;
  }

  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .cv-section__heading {
    position: static;
  }

  .cv-section__heading h3 {
    font-size: 17vw;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cv-section--education {
    margin-inline: -6vw;
  }


  .next-project {
    padding: 8vh 7vw;
  }

  .next-project__card {
    grid-template-columns: 1fr;
  }

  .next-project__copy {
    min-height: 390px;
    padding: 28px;
  }

  .next-project__copy h3 {
    font-size: 17vw;
  }

  .next-project__visual {
    min-height: 52vh;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}


/* =====================================================
   MOBILE EXPERIENCE OVERRIDES
===================================================== */

@media (max-width: 700px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
  }

  body {
    background: var(--paper);
  }

  .desktop {
    min-height: auto;
    overflow: visible;
    padding: 0 5vw 42px;
  }

  .topbar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    grid-template-columns: 1fr auto;
    padding: 16px 0 12px;
  }

  .topbar__center,
  .side-note,
  .desktop-footer {
    display: none;
  }

  .topbar__right span:last-child {
    display: none;
  }

  .intro {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 58px 0 44px;
  }

  .intro h1 {
    font-size: clamp(72px, 24vw, 126px);
    line-height: 0.7;
  }

  .intro__copy {
    width: min(290px, 84vw);
    margin-top: 26px;
    font-size: 13px;
  }

  .line-art--main {
    top: 90px;
    right: -43vw;
    width: 132vw;
    height: 132vw;
    opacity: 0.28;
  }

  .folder-layer {
    position: relative;
    inset: auto;
    display: grid;
    gap: 14px;
    padding: 8px 0 38px;
  }

  .folder,
  .folder--large,
  .folder--works,
  .folder--profile,
  .folder--papers,
  .folder--misc,
  .folder--contact {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: 132px;
    transform: none;
    filter: none;
    touch-action: manipulation;
  }

  .folder:hover {
    transform: none;
    filter: none;
  }

  .folder__tab {
    min-width: 132px;
  }

  .folder__title {
    font-size: 15px;
  }

  .folder__symbol {
    font-size: 48px;
  }

  .folder__meta {
    font-size: 7px;
  }

  .hint {
    display: none;
  }

  .window {
    inset: auto 0 0;
    width: 100%;
    height: min(92vh, 920px);
    min-width: 0;
    min-height: 0;
    resize: none;
    border: 0;
    border-top: 1px solid var(--ink);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 40px rgba(17, 16, 14, 0.2);
    animation: mobile-sheet-in 0.36s cubic-bezier(.2,.75,.2,1);
  }

  .window.is-maximized {
    inset: 0;
    height: 100vh !important;
    border-radius: 0;
  }

  .window__bar {
    min-height: 52px;
    grid-template-columns: auto 1fr auto;
    padding: 0 16px;
    border-radius: 22px 22px 0 0;
  }

  .window__controls {
    gap: 6px;
  }

  .window__control[data-minimize],
  .window__control[data-maximize] {
    display: none;
  }

  .window__bar > span:nth-child(2) {
    padding-inline: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .window__content {
    padding: 42px 6vw 80px;
  }

  .window__heading {
    gap: 24px;
    margin-bottom: 46px;
  }

  .window__heading h2 {
    font-size: clamp(66px, 20vw, 112px);
  }

  .project-grid {
    gap: 40px;
  }

  .project-card__visual {
    aspect-ratio: 1.25;
  }

  .profile-hero {
    gap: 42px;
  }

  .profile-card {
    width: min(100%, 360px);
  }

  .profile-introduction .lead {
    font-size: clamp(31px, 9vw, 50px);
  }

  .cv-section {
    padding-block: 64px;
  }

  .cv-item {
    padding: 22px 0;
  }

  .paper-item {
    padding: 24px 0;
  }

  .misc-board {
    min-height: auto;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .misc-object,
  .misc-object--music,
  .misc-object--art,
  .misc-object--photos,
  .misc-object--notes {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 126px;
    transform: none;
    box-shadow: 6px 7px 0 rgba(17, 16, 14, 0.08);
  }

  .misc-object:hover {
    transform: none;
  }

  .misc-panel {
    padding: 26px 20px;
  }

  .contact-layout {
    min-height: calc(92vh - 52px);
    padding: 42px 7vw 54px;
  }

  .contact-layout h2 {
    font-size: clamp(86px, 25vw, 150px);
  }

  .project-view {
    inset: 0;
  }

  .project-view__bar {
    padding: 15px 5vw;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .project-view__bar > button:first-child {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-view__layout {
    min-height: auto;
    gap: 44px;
    padding: 52px 7vw 68px;
  }

  .project-view__copy h2 {
    font-size: clamp(68px, 19vw, 112px);
  }

  .project-view__visual {
    min-height: 54vh;
  }

  .case-section {
    padding: 66px 7vw;
  }

  .case-media {
    padding: 0 7vw 66px;
  }

  .case-section h3 {
    font-size: clamp(58px, 17vw, 94px);
  }

  .rich-text p {
    font-size: 16px;
  }

  .case-gallery {
    gap: 18px;
  }

  .next-project__copy {
    min-height: 310px;
  }

  .next-project__visual {
    min-height: 44vh;
  }

  .loading-screen__centre {
    width: 90vw;
  }

  .loading-screen__title {
    margin-bottom: 34px;
  }

  .loading-screen__bottom {
    gap: 14px;
  }
}

@keyframes mobile-sheet-in {
  from {
    transform: translateY(100%);
    opacity: 0.65;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* =====================================================
   ELEVATED INTERACTION LAYER
===================================================== */

:root {
  --cursor-x: 50%;
  --cursor-y: 50%;
}

.desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(
      circle 240px at var(--cursor-x) var(--cursor-y),
      rgba(255,255,255,.5),
      transparent 72%
    );
}
/*
.paper-noise {
  animation: grain-shift 0.35s steps(2) infinite;
}
*/


.folder {
  transform:
    rotate(var(--rotation))
    perspective(900px)
    rotateX(var(--folder-rx, 0deg))
    rotateY(var(--folder-ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.folder:hover {
  transform:
    rotate(0deg)
    perspective(900px)
    rotateX(var(--folder-rx, 0deg))
    rotateY(var(--folder-ry, 0deg))
    translateY(-8px);
}

.folder__tab {
  transform-origin: left bottom;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}

.folder.is-opening .folder__tab {
  transform: rotateX(-62deg) translateY(-3px);
}

.window:not([hidden]) .window__content > *,
.project-view:not([hidden]) .project-page > * {
  animation: editorial-reveal 0.7s both;
}

.window:not([hidden]) .window__content > *:nth-child(2),
.project-view:not([hidden]) .project-page > *:nth-child(2) {
  animation-delay: 0.06s;
}

.window:not([hidden]) .window__content > *:nth-child(3),
.project-view:not([hidden]) .project-page > *:nth-child(3) {
  animation-delay: 0.12s;
}

.project-card,
.paper-item,
.cv-item,
.misc-entry,
.misc-note-card {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.project-grid:hover .project-card:not(:hover),
.paper-list:hover .paper-item:not(:hover),
.cv-list:hover .cv-item:not(:hover) {
  opacity: 0.52;
}

.project-card:hover,
.paper-item:hover,
.cv-item:hover,
.misc-entry:hover,
.misc-note-card:hover {
  transform: translateY(-4px);
}

.case-image,
.misc-entry img {
  transition: transform 0.7s cubic-bezier(.2,.75,.2,1);
}

.case-image:hover,
.misc-entry:hover img {
  transform: scale(1.025);
}

.next-project__card {
  position: relative;
}

.next-project__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 0 solid var(--ink);
  transition: border-width 0.25s ease;
}

.next-project__card:hover::after {
  border-width: 8px;
}

@keyframes editorial-reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(1%, 1%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .paper-noise,
  .window:not([hidden]) .window__content > *,
  .project-view:not([hidden]) .project-page > * {
    animation: none !important;
  }

  .folder,
  .folder:hover {
    transform: rotate(var(--rotation));
  }
}

@media (max-width: 700px) {
  .desktop::after {
    display: none;
  }

  .paper-noise {
    animation: none;
  }

  .folder,
  .folder:hover {
    transform: none;
  }

  .folder.is-opening .folder__tab {
    transform: rotateX(-48deg);
  }

  .window {
    animation: mobile-sheet-in 0.42s cubic-bezier(.16,.84,.24,1);
  }

  .project-view.is-project-entering .project-page {
    animation: mobile-project-push 0.42s cubic-bezier(.2,.75,.2,1);
  }

  .project-card:active,
  .misc-object:active,
  .next-project__card:active {
    transform: scale(0.985);
  }
}

@keyframes mobile-project-push {
  from {
    opacity: 0.35;
    transform: translateX(42px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* =====================================================
   IMAGINATIVE CONTACT DESK
===================================================== */

.contact-desk {
  min-height: calc(92vh - 40px);
  padding: 7vh 7vw 8vh;
}

.contact-desk__intro {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 7vh;
}

.contact-desk__intro .eyebrow {
  grid-column: 1 / -1;
}

.contact-desk__intro h2 {
  margin: 0;
  font-size: clamp(90px, 13vw, 210px);
  line-height: .68;
  letter-spacing: -.11em;
  text-transform: uppercase;
}

.contact-desk__intro h2 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.contact-desk__lead {
  max-width: 360px;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.contact-envelope {
  position: relative;
  max-width: 1040px;
  margin: 0 auto 8vh;
  padding-top: 70px;
}

.contact-envelope__flap {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 125px;
  border: 1px solid var(--ink);
  background: var(--pink-light);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.contact-form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 48px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 13px 15px 0 rgba(17,16,14,.10);
}

.contact-form__stamp {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 72px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--ink);
  background: var(--olive-light);
  text-align: center;
  font: 8px/1.4 var(--mono);
  transform: rotate(4deg);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  font: 9px var(--mono);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 13px var(--sans);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form__message {
  grid-column: 1 / -1;
}

.contact-form__send {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  background: var(--pink);
  cursor: pointer;
  font: 10px var(--mono);
}

.contact-postcards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.contact-postcard {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--sand);
  text-decoration: none;
  box-shadow: 7px 8px 0 rgba(17,16,14,.08);
  transition: transform .25s ease;
}

.contact-postcard:nth-child(2) {
  background: var(--olive-light);
  transform: rotate(1.5deg);
}

.contact-postcard:nth-child(3) {
  background: var(--pink-light);
  transform: rotate(-1.5deg);
}

.contact-postcard:nth-child(4) {
  background: #d8d2ec;
  transform: rotate(1deg);
}

.contact-postcard:hover {
  transform: translateY(-7px) rotate(0deg);
}

.contact-postcard span,
.contact-postcard small {
  font: 8px var(--mono);
}

.contact-postcard strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.05em;
}

.contact-status {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 7vh;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font: 9px var(--mono);
}

.contact-status > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.contact-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--olive);
  animation: status-pulse 1.8s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: .35; }
}

/* =====================================================
   CHARACTER MAKER
===================================================== */

.folder--game {
  left: 56vw;
  top: 24vh;
  --rotation: 4deg;
  color: #5d547f;
}

.folder--game .folder__body {
  background: #d8d2ec;
}

.game-window {
  min-width: 760px;
}

.browser-game {
  min-height: calc(92vh - 40px);
  padding: 18px;
  background: #d8dfe1;
  font-family: var(--mono);
}

.browser-game__toolbar {
  display: grid;
  grid-template-columns: auto auto auto minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.browser-game__toolbar button,
.browser-game__footer button {
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font: 9px var(--mono);
  box-shadow: 3px 3px 0 var(--ink);
}

.browser-game__toolbar button:active,
.browser-game__footer button:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.browser-game__address {
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}

.browser-game__sparkles {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--paper);
}

.browser-game__content {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(420px, 1.28fr);
  gap: 18px;
}

.character-controls,
.character-stage {
  border: 2px solid var(--ink);
  background: var(--paper);
}

.character-controls {
  padding: 24px;
}

.character-control {
  margin-bottom: 26px;
}

.character-control__label,
.character-field > span {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  letter-spacing: .12em;
}

.character-control__row {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 10px;
  align-items: center;
}

.character-control__row button {
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 18px;
  box-shadow: 3px 3px 0 var(--ink);
}

.character-control__preview {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--pink-light);
  font-size: 18px;
}

.character-field {
  display: grid;
  margin-top: 18px;
}

.character-field select,
.character-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font: 11px var(--mono);
}

.character-field textarea {
  resize: vertical;
}

.character-stage {
  padding: 22px;
}

.character-canvas {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.8), transparent 45%),
    var(--pink-light);
}

.character-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.character-layer--base {
  display: grid;
  place-items: center;
}

.placeholder-character {
  position: relative;
  width: 220px;
  height: 410px;
}

.placeholder-character__head {
  position: absolute;
  left: 64px;
  top: 12px;
  width: 92px;
  height: 102px;
  border: 3px solid var(--ink);
  border-radius: 46% 46% 44% 44%;
  background: #f2d2c4;
}

.placeholder-character__body {
  position: absolute;
  left: 48px;
  top: 105px;
  width: 124px;
  height: 190px;
  border: 3px solid var(--ink);
  border-radius: 42px 42px 28px 28px;
  background: var(--olive-light);
}

.placeholder-character__arm,
.placeholder-character__leg {
  position: absolute;
  border: 3px solid var(--ink);
  background: #f2d2c4;
}

.placeholder-character__arm {
  top: 132px;
  width: 42px;
  height: 155px;
  border-radius: 22px;
}

.placeholder-character__arm--left {
  left: 12px;
  transform: rotate(12deg);
}

.placeholder-character__arm--right {
  right: 12px;
  transform: rotate(-12deg);
}

.placeholder-character__leg {
  top: 278px;
  width: 42px;
  height: 125px;
  border-radius: 20px;
}

.placeholder-character__leg--left {
  left: 58px;
}

.placeholder-character__leg--right {
  right: 58px;
}

.character-canvas__note {
  position: absolute;
  left: 15px;
  bottom: 14px;
  font: 8px/1.4 var(--mono);
}

.character-name {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  margin-top: 14px;
}

.character-name button,
.character-name input {
  min-height: 48px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.character-name button {
  cursor: pointer;
}

.character-name input {
  padding: 0 16px;
  font: 18px var(--mono);
  letter-spacing: .35em;
  text-align: center;
  text-transform: uppercase;
}

.browser-game__footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}

.browser-game__footer p {
  max-width: 720px;
  margin: 0;
  font: 9px/1.5 var(--mono);
}

.browser-game__footer code {
  font: inherit;
}

@media (max-width: 1000px) {
  .folder--game {
    left: 53vw;
    top: 31vh;
  }

  .contact-postcards {
    grid-template-columns: repeat(2, 1fr);
  }

  .browser-game__content {
    grid-template-columns: 1fr;
  }

  .character-canvas {
    min-height: 560px;
  }
}

@media (max-width: 700px) {
  .folder--game {
    position: relative;
    inset: auto;
    width: 100%;
    height: 132px;
  }

  .contact-desk {
    padding: 42px 6vw 70px;
  }

  .contact-desk__intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-desk__intro h2 {
    font-size: 22vw;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .contact-form__stamp {
    position: static;
    width: 64px;
    height: 74px;
    margin-left: auto;
  }

  .contact-form__message,
  .contact-form__send {
    grid-column: 1;
  }

  .contact-postcards {
    grid-template-columns: 1fr;
  }

  .contact-status {
    flex-direction: column;
  }

  .game-window {
    min-width: 0;
  }

  .browser-game {
    padding: 10px;
  }

  .browser-game__toolbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .browser-game__address {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .browser-game__sparkles {
    display: none;
  }

  .character-controls,
  .character-stage {
    padding: 16px;
  }

  .character-canvas {
    min-height: 470px;
  }

  .browser-game__footer {
    align-items: stretch;
    flex-direction: column;
  }
}


/* =====================================================
   CONTACT REDESIGN — CALLING CARD
===================================================== */

.contact-board {
  min-height: calc(92vh - 40px);
  padding: 7vh 7vw 9vh;
}

.contact-board__heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 7vh;
}

.contact-board__heading .eyebrow {
  grid-column: 1 / -1;
}

.contact-board__heading h2 {
  margin: 0;
  font-size: clamp(90px, 13vw, 210px);
  line-height: .68;
  letter-spacing: -.11em;
  text-transform: uppercase;
}

.contact-board__heading h2 em,
.contact-note h3 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.contact-board__heading > p:last-child {
  max-width: 360px;
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.contact-board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  position: relative;
  min-height: 280px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .35;
}

.contact-card::before {
  top: -120px;
  right: -80px;
}

.contact-card::after {
  bottom: -130px;
  left: -95px;
}

.contact-card--primary {
  background: var(--pink-light);
}

.contact-card:nth-child(2) {
  background: var(--olive-light);
}

.contact-card:nth-child(3) {
  background: #d8d2ec;
}

.contact-card:nth-child(4) {
  background: var(--sand);
}

.contact-card:hover {
  transform: translateY(-7px);
  box-shadow: 10px 12px 0 rgba(17,16,14,.12);
}

.contact-card__index,
.contact-card small,
.contact-card__action {
  position: relative;
  z-index: 2;
  font: 8px var(--mono);
}

.contact-card__icon {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  font: 42px/1 var(--serif);
}

.contact-card > div {
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  gap: 12px;
}

.contact-card strong {
  max-width: 420px;
  font-size: clamp(26px, 3vw, 48px);
  line-height: .95;
  letter-spacing: -.055em;
}

.contact-card__action {
  align-self: end;
}

.contact-note {
  position: relative;
  max-width: 760px;
  margin: 9vh auto 0;
  padding: 42px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 11px 13px 0 rgba(17,16,14,.09);
  transform: rotate(-1deg);
}

.contact-note__tape {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 120px;
  height: 34px;
  transform: translateX(-50%) rotate(1deg);
  background: rgba(216,203,178,.72);
  border: 1px solid rgba(17,16,14,.2);
}

.contact-note h3 {
  margin: 0 0 24px;
  font-size: clamp(56px, 7vw, 108px);
  line-height: .76;
  letter-spacing: -.08em;
  text-transform: uppercase;
}

.contact-note > p:not(.eyebrow) {
  max-width: 590px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-note__meta {
  display: grid;
  gap: 7px;
  margin-top: 32px;
  padding-top: 15px;
  border-top: 1px solid var(--ink);
  font: 9px var(--mono);
}

/* =====================================================
   QUIETER AFTER-HOURS GAME POSITION
===================================================== */

.folder--game {
  left: auto;
  right: 3.8vw;
  top: auto;
  bottom: 8vh;
  width: 170px;
  height: 120px;
  --rotation: 2deg;
  opacity: .78;
  filter: drop-shadow(5px 6px 0 rgba(17,16,14,.06));
}

.folder--game .folder__tab {
  min-width: 96px;
  height: 26px;
  padding: 7px 10px;
  font-size: 8px;
}

.folder--game .folder__body {
  inset: 19px 0 0;
  background: var(--paper-dark);
}

.folder--game .folder__title {
  font-size: 11px;
}

.folder--game .folder__symbol {
  font-size: 38px;
  opacity: .7;
}

.folder--game .folder__meta {
  font-size: 6px;
}

.folder--game:hover {
  opacity: 1;
  transform: rotate(0deg) translateY(-5px);
  filter: drop-shadow(8px 10px 0 rgba(17,16,14,.09));
}

@media (max-width: 1000px) {
  .folder--game {
    right: 3vw;
    bottom: 7vh;
    left: auto;
    top: auto;
  }

  .contact-board__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .contact-board {
    padding: 42px 6vw 70px;
  }

  .contact-board__heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-board__heading h2 {
    font-size: 22vw;
  }

  .contact-board__grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 220px;
  }

  .contact-note {
    padding: 30px 24px;
  }

  .folder--game {
    position: relative;
    inset: auto;
    width: 100%;
    height: 112px;
    margin-top: 28px;
    opacity: .66;
    order: 10;
  }

  .folder--game::before {
    content: "AFTER YOU HAVE EXPLORED";
    position: absolute;
    top: -26px;
    left: 0;
    font: 8px var(--mono);
  }
}


/* =====================================================
   PASSPORT CONTACT EXPERIENCE
===================================================== */

.passport-window {
  background: #f7e7ee ;
}

.passport-scene {
  position: relative;
  min-height: calc(92vh - 40px);
  display: grid;
  place-items: center;
  padding: 7vh 5vw 9vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 42%, rgba(255,255,255,.12), transparent 45%),
    #e8e4df;

}

.passport-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: multiply;
  /* background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); */
}

.passport-scene__hint {
  position: absolute;
  top: 28px;
  right: 5vw;
  z-index: 3;
  margin: 0;
  font: 9px var(--mono);
}

.passport-book {
  position: relative;
  z-index: 2;
  width: min(1120px, 94vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  filter: drop-shadow(18px 22px 7px rgba(17,16,14,.24));
  transform: rotate(-.45deg);
}

.passport-book__spine {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 22px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg,
      rgba(17,16,14,.18),
      rgba(255,255,255,.12) 45%,
      rgba(17,16,14,.18)
    );
  pointer-events: none;
}

.passport-page {
  position: relative;
  min-height: 700px;
  padding: 36px 38px 34px;
  border: 1px solid rgba(17,16,14,.72);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(17,16,14,.018) 0,
      rgba(17,16,14,.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    #d9bbc2;
  color: #2a221e;
}

.passport-page--identity {
  border-radius: 4px 0 0 4px;
}

.passport-page--stamps {
  border-radius: 0 4px 4px 0;
}

.passport-page__number {
  position: absolute;
  top: 15px;
  right: 18px;
  font: 11px var(--mono);
}

.passport-page__header {
  padding: 11px 10px;
  border: 1px solid rgba(42,34,30,.7);
  text-align: center;
  font: 10px var(--mono);
  letter-spacing: .06em;
}

.passport-fields {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.passport-field {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 12px;
  align-items: end;
}

.passport-field span,
.passport-lines span,
.passport-signature span {
  font: 9px var(--mono);
}

.passport-field strong {
  padding-bottom: 3px;
  border-bottom: 1px dotted rgba(42,34,30,.75);
  font: 600 18px var(--mono);
  letter-spacing: .12em;
}

.passport-id {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
  margin-top: 24px;
}

.passport-photo {
  min-height: 315px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(42,34,30,.8);
  /*background:
    radial-gradient(circle at 50% 32%, #b9b5ad 0 15%, transparent 16%),
    radial-gradient(circle at 50% 72%, #b9b5ad 0 33%, transparent 34%),
    #e4ded4;*/
  background-image: url("images/me/headshot.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*filter: grayscale(1);*/
}

.passport-photo span,
.passport-photo small {
  font: 9px var(--mono);
}

.passport-id__side {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
}

.passport-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 5px;
  border: 1px solid rgba(42,34,30,.7);
  text-align: center;
  font: 8px var(--mono);
}

.passport-ticket {
  align-self: start;
  padding: 13px 8px;
  background:#cbdee6;
  border: 1px solid rgba(42,34,30,.7);
  font: 7px/1.5 var(--mono);
  transform: rotate(1deg);
}

.passport-ticket strong {
  display: block;
  margin-top: 5px;
}

.passport-lines {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.passport-lines > div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
}

.passport-lines strong {
  padding-bottom: 4px;
  border-bottom: 1px dotted rgba(42,34,30,.65);
  font: 11px var(--mono);
}

.passport-signature {
  position: absolute;
  left: 38px;
  bottom: 40px;
  width: 56%;
  padding-top: 35px;
  border-bottom: 1px dotted rgba(42,34,30,.7);
}

.passport-signature strong {
  position: absolute;
  left: 18px;
  bottom: 7px;
  font: italic 30px var(--serif);
}

.passport-seal {
  position: absolute;
  right: 36px;
  bottom: 30px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 2px double rgba(80,49,105,.65);
  border-radius: 50%;
  color: rgba(80,49,105,.72);
  text-align: center;
  font: 11px/1.25 var(--mono);
  transform: rotate(-12deg);
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 26px;
}

.social-stamp,
.passport-empty-stamp {
  position: relative;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border: 7px dotted rgba(42,34,30,.85);
  outline: 1px solid rgba(42,34,30,.7);
  outline-offset: -5px;
  text-align: center;
}

.social-stamp {
  color: #2a221e;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .25s ease,
    filter .25s ease,
    opacity .25s ease;
}

.social-stamp:hover {
  z-index: 4;
  transform: translateY(-8px) rotate(2deg) scale(1.035);
  filter: drop-shadow(8px 10px 0 rgba(42,34,30,.17));
}

.social-stamp__top,
.social-stamp small,
.passport-empty-stamp span,
.passport-empty-stamp small {
  font: 7px/1.3 var(--mono);
}

.social-stamp__icon {
  font: 38px/1 var(--serif);
}

.social-stamp strong {
  font: 600 11px var(--mono);
  letter-spacing: .08em;
}

.social-stamp--mail {
  background: #d64c4c;
  transform: rotate(-1.5deg);
}

.social-stamp--linkedin {
  background: #a1c0e2;
  transform: rotate(1deg);
}

.social-stamp--instagram {
  background: #d8d2ec;
  transform: rotate(-.5deg);
}

.social-stamp--cv {
  background: #eece7b;
  transform: rotate(1.7deg);
}

.social-stamp--secret {
  border-color: rgba(42,34,30,.65);
  background: #fcc8d5;
}

.social-stamp--secret.is-locked {
  opacity: .36;
  filter: grayscale(1);
  cursor: not-allowed;
}

.social-stamp--secret:not(.is-locked) {
  animation: secret-stamp-glow 2.2s ease-in-out infinite;
}

@keyframes secret-stamp-glow {
  50% {
    transform: rotate(-2deg) scale(1.04);
    filter: drop-shadow(0 0 12px rgba(255,255,255,.55));
  }
}

.passport-empty-stamp {
  border-style: dashed;
  opacity: .38;
  justify-content: center;
  gap: 12px;
}

.passport-progress {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(42,34,30,.6);
}

.passport-progress > span,
.passport-progress strong {
  font: 8px var(--mono);
}

.passport-progress strong {
  display: block;
  margin-top: 9px;
  text-align: right;
}

.passport-progress__bar {
  height: 10px;
  margin-top: 9px;
  border: 1px solid rgba(42,34,30,.7);
}

.passport-progress__bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: #2d6691;
  transition: width .4s ease;
}

.passport-postmark {
  position: absolute;
  right: 38px;
  bottom: 32px;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 3px double rgba(95,51,54,.48);
  border-radius: 50%;
  color: rgba(95,51,54,.55);
  text-align: center;
  font: 10px/1.3 var(--mono);
  transform: rotate(-18deg);
}

.secret-note {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 8;
  width: min(280px, 75%);
  padding: 26px 22px 20px;
  border: 1px solid #2a221e;
  background: #e4d9b5;
  color: #2a221e;
  text-align: left;
  cursor: pointer;
  box-shadow: 9px 11px 0 rgba(42,34,30,.14);
  transform: translateX(-50%) rotate(-2deg);
  animation: note-reveal .45s cubic-bezier(.2,.8,.2,1);
}

.secret-note__tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 100px;
  height: 30px;
  transform: translateX(-50%) rotate(1deg);
  background: rgba(220,198,154,.78);
  border: 1px solid rgba(42,34,30,.15);
}

.secret-note small,
.secret-note > span:last-child {
  font: 8px var(--mono);
}

.secret-note strong {
  display: block;
  margin: 12px 0;
  font-size: 24px;
}

.secret-note p {
  font-size: 12px;
  line-height: 1.5;
}

@keyframes note-reveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px) rotate(-5deg);
  }
}

@media (max-width: 1000px) {
  .passport-book {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .passport-book__spine {
    display: none;
  }

  .passport-page {
    min-height: 670px;
  }

  .passport-page--identity {
    border-radius: 4px 4px 0 0;
  }

  .passport-page--stamps {
    border-radius: 0 0 4px 4px;
  }
}

@media (max-width: 700px) {
  .passport-scene {
    padding: 52px 14px 70px;
  }

  .passport-scene__hint {
    top: 18px;
    right: 18px;
  }

  .passport-book {
    width: 100%;
    transform: none;
  }

  .passport-page {
    min-height: auto;
    padding: 28px 20px 110px;
  }

  .passport-field,
  .passport-lines > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .passport-id {
    grid-template-columns: 1fr;
  }

  .passport-id__side {
    grid-template-columns: 1fr;
  }

  .passport-vertical {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .passport-signature {
    position: relative;
    left: auto;
    bottom: auto;
    width: 70%;
    margin-top: 50px;
  }

  .passport-seal {
    right: 22px;
    bottom: 20px;
    width: 76px;
    height: 76px;
  }

  .stamp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-stamp,
  .passport-empty-stamp {
    min-height: 132px;
  }

  .passport-postmark {
    display: none;
  }
}

/* The game is now intentionally hidden from the main desktop. */
.folder--game {
  display: none !important;
}

/* =====================================================
  COLOUR + BACKGROUND CUSTOMISATION
   -----------------------------------------------------
   color go brrr
===================================================== */

:root {
  /* Main colour palette */
  --paper: #e8e4df;
  --paper-dark: #d8d5ca;
  --ink: #11100e;
  --pink: #e2a0ae;
  --pink-light: #d9e6f3;
  --olive: #26533f;
  --olive-light: #b8d0aa;
  --lilac: #d8d2ec;
  --sand: #eece7b;

  --line: rgba(17, 16, 14, 0.8);
  --sans: "Space Grotesk", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", monospace;


  /* Custom background files */
  --desktop-background-image: url("images/backgrounds/desktop-art.png.png");
  --mobile-background-image: url("images/backgrounds/mobile-background.jpg");

  /* Change these if the artwork is too strong or too subtle */
  --desktop-background-opacity: 0.34;
  --mobile-background-opacity: 0.28;
  --background-position-desktop: center;
  --background-position-mobile: center top;
}

/* The custom artwork sits behind the folders and text. */
.desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--desktop-background-image);
  background-repeat: no-repeat;
  background-position: var(--background-position-desktop);
  background-size: cover;
  opacity: var(--desktop-background-opacity);
}

/* The original desktop elements already include their own positioning
   and stacking order. Do not override their position here. */

/* You can hide the built-in blue motif after adding your own artwork.
   Change opacity to 0 to remove it completely. */
.line-art--main {
  opacity: 0;
}

@media (max-width: 700px) {
  .desktop::before {
    position: fixed;
    background-image: var(--mobile-background-image);
    background-position: var(--background-position-mobile);
    background-size: cover;
    opacity: var(--mobile-background-opacity);
  }
}