@import url("https://fonts.googleapis.com/css2?family=Vujahday+Script&display=swap");

:root {
  --green: #1f4a48;
  --cream: #f3f0e9;
  --placeholder: #d9d9d9;
  --ink: #050505;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--green);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--green);
  color: var(--ink);
  font-family: "Bodoni 72", "Bodoni 72 Smallcaps", Didot, "Didot LT STD",
    "Hoefler Text", "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  width: min(100% - 72px, 1880px);
  margin: 0 auto;
  padding: 18px 0 28px;
}

.navbar {
  height: 114px;
  padding: 35px 24px 35px 34px;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 46px);
  overflow: hidden;
}

.brand {
  flex: 0 0 auto;
  font-size: clamp(1.9rem, 2.35vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.85vw, 64px);
  font-size: clamp(1.35rem, 1.65vw, 2.35rem);
  line-height: 1;
  white-space: nowrap;
  min-width: 0;
}

.language-switch {
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  background: var(--placeholder);
  color: var(--ink);
  padding: 13px 16px 12px;
  font-size: clamp(1.15rem, 1.25vw, 1.75rem);
  line-height: 1;
}

.hero-card {
  background: var(--cream);
  border-radius: 18px;
}

.content-card {
  background: var(--cream);
  border-radius: 24px;
}

.hero-card {
  position: relative;
  min-height: clamp(600px, 60vw, 920px);
  margin-top: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-card h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--green);
  text-align: center;
  font-size: clamp(5.8rem, 9.2vw, 12rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.image-wall {
  --tile-gap: clamp(24px, 2.35vw, 42px);
  --track-gap: calc(var(--tile-gap) * 0.6);
  --pair-gap: clamp(22px, 2vw, 40px);
  --center-gap: clamp(225px, 16.5vw, 390px);

  position: absolute;
  top: 50%;
  left: 50%;
  width: 136%;
  height: 156%;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(218px, 325px))
    var(--center-gap)
    repeat(2, minmax(218px, 325px));
  column-gap: var(--pair-gap);
  align-items: stretch;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(147deg);
  transform-origin: center;
}

.photo-column {
  position: relative;
  height: 100%;
  overflow: visible;
}

.photo-column--one {
  grid-column: 1;
}

.photo-column--two {
  grid-column: 2;
}

.photo-column--three {
  grid-column: 4;
}

.photo-column--four {
  grid-column: 5;
}

.photo-track {
  display: flex;
  flex-direction: column;
  animation-duration: 70s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform;
}

.photo-track--up {
  animation-name: conveyor-up;
}

.photo-track--down {
  animation-name: conveyor-down;
}

.photo-set {
  display: flex;
  flex-direction: column;
  gap: var(--track-gap);
  padding-bottom: var(--track-gap);
}

.image-wall span {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 17px;
  background: var(--placeholder);
  overflow: hidden;
}

.image-wall img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: rotate(180deg);
}

.hero-card:hover .photo-track {
  animation-play-state: paused;
}

@keyframes conveyor-up {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@keyframes conveyor-down {
  from {
    transform: translateY(-50%);
  }

  to {
    transform: translateY(0);
  }
}

.editorial-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1059px 501px 544px 721px;
  gap: 34px;
  margin-top: 34px;
}

.content-card {
  min-width: 0;
  overflow: hidden;
}

.card-title {
  margin: 0;
  padding-top: 42px;
  text-align: center;
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.education-card {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  padding: 0 40px;
  overflow: visible;
  z-index: 30;
}

.internship-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0 40px;
}

.portrait-card {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  padding: 40px;
  overflow: visible;
  z-index: 2;
}

.project-card {
  position: relative;
  grid-column: 1;
  grid-row: 3 / span 2;
  justify-self: start;
  display: flex;
  flex-direction: column;
  width: 130%;
  z-index: 1;
  overflow: visible;
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 1299' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f0e9' d='M24 0H899Q923 0 923 24V530Q923 578 971 578H1176Q1200 578 1200 602V1275Q1200 1299 1176 1299H24Q0 1299 0 1275V24Q0 0 24 0Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.project-card .card-title {
  width: calc(100% / 1.3);
}

.project-summary {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 24px;
  width: calc(100% / 1.3);
  margin-top: 28px;
  height: calc(
    100% - 682px - (42px + clamp(2.35rem, 3vw, 3.25rem) + 28px + 40px)
  );
  padding-inline: 40px;
}

.project-summary a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  border-radius: 16px;
  background: var(--placeholder);
  color: var(--ink);
  font-family: "Instrument Serif", "Bodoni 72", "Bodoni 72 Smallcaps", Didot,
    "Didot LT STD", "Hoefler Text", "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.1;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.project-summary a.project-scroll-title {
  justify-content: flex-start;
  background: transparent;
}

.project-summary a.project-empty-title {
  background: transparent;
  color: transparent;
}

.project-scroll-title span {
  display: inline-block;
  min-width: max-content;
  padding-left: 100%;
  font-size: 42px;
  animation: project-title-scroll 18s linear infinite;
}

@keyframes project-title-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: auto;
  margin-bottom: 40px;
  padding-inline: 40px;
}

.project-gallery div {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: var(--placeholder);
  overflow: hidden;
}

.project-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-video-tile {
  cursor: pointer;
}

.project-gallery [hidden] {
  display: none;
}

.paper-nav {
  justify-content: space-between;
}

.paper-back {
  flex: 0 0 auto;
  font-size: 42px;
  line-height: 1;
  white-space: nowrap;
}

.paper-card {
  margin-top: 18px;
  padding: 36px;
  border-radius: 16px;
  background: var(--cream);
}

.paper-title-placeholder {
  width: 100%;
  height: 88px;
  border-radius: 16px;
  background: #b8b8b8;
}

.paper-body-placeholder {
  width: 100%;
  min-height: clamp(1500px, 118vw, 2600px);
  margin-top: 36px;
  border-radius: 16px;
  background: #b8b8b8;
}

.paper-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(600px, 100%);
  margin: 72px auto 0;
  font-size: 42px;
  line-height: 1;
}

.paper-pagination--single {
  justify-content: center;
}

.paper-article-title {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Instrument Serif", "Bodoni 72", "Bodoni 72 Smallcaps", Didot,
    "Didot LT STD", "Hoefler Text", "Times New Roman", serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
}

.paper-content {
  margin-top: 36px;
  color: var(--ink);
  font-family: "Instrument Serif", "Bodoni 72", "Bodoni 72 Smallcaps", Didot,
    "Didot LT STD", "Hoefler Text", "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.28;
}

.paper-content h2 {
  margin: 56px 0 18px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.18;
}

.paper-content h2:first-child {
  margin-top: 0;
}

.paper-content p {
  margin: 0 0 34px;
}

.paper-figure {
  width: 80%;
  margin: 44px auto 48px;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.skills-card {
  grid-column: 2;
  grid-row: 3;
  padding: 0 40px;
}

.contact-card {
  position: relative;
  grid-column: 2;
  grid-row: 4;
  justify-self: end;
  width: 70%;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 50px;
  font-size: 42px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.contact-details p {
  margin: 0;
}

.contact-portrait {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 47.14%;
  height: auto;
  pointer-events: none;
}

.contact-qr {
  position: absolute;
  right: 36px;
  bottom: 36px;
  width: 42%;
  height: auto;
}

@media (min-width: 1201px) {
  .internship-card {
    align-self: start;
    height: 1275px;
  }

  .skills-card {
    position: relative;
    top: -319px;
    height: calc(100% + 319px);
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  .internship-card {
    align-self: start;
    height: 1050px;
  }

  .skills-card {
    position: relative;
    top: -219px;
    height: calc(100% + 219px);
  }
}

.placeholder-list {
  display: grid;
  gap: 24px;
}

.placeholder-list--large {
  margin-top: 28px;
}

.placeholder-card {
  min-height: 172px;
  border-radius: 16px;
  background: var(--placeholder);
}

.education-card .placeholder-list {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: calc(
    100% - (42px + clamp(2.35rem, 3vw, 3.25rem) + 28px + 40px)
  );
}

.placeholder-list > .placeholder-card {
  min-height: 0;
}

.internship-card .placeholder-list {
  position: relative;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  height: calc(
    100% - (42px + clamp(2.35rem, 3vw, 3.25rem) + 28px + 40px)
  );
}

.internship-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  min-height: 0;
}

.internship-item.is-active {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--internship-active-row-height);
  z-index: 6;
}

.internship-item__main,
.internship-item__square {
  height: 100%;
  border-radius: 16px;
  background: var(--green);
  transition: flex-basis 220ms ease, height 220ms ease;
}

.internship-item__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 22px 28px;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  font-family: "Instrument Serif", "Bodoni 72", "Bodoni 72 Smallcaps", Didot,
    "Didot LT STD", "Hoefler Text", "Times New Roman", serif;
  text-align: left;
}

.internship-item--reverse:not(:hover):not(.is-active) .internship-item__main {
  text-align: right;
}

.internship-item__main h3,
.internship-item__main p {
  margin: 0;
  letter-spacing: 0;
}

.internship-item__main h3 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.386;
  transition: font-size 220ms ease, font-weight 220ms ease,
    line-height 220ms ease;
}

.internship-item__main p {
  font-size: 32px;
  line-height: 1.188;
}

.internship-item:hover .internship-item__main,
.internship-item.is-active .internship-item__main {
  justify-content: center;
  padding-block: 10px;
  text-align: center;
}

.internship-item:hover .internship-item__main h3,
.internship-item.is-active .internship-item__main h3 {
  overflow: hidden;
  font-size: clamp(2.6rem, 2.75vw, 52px);
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internship-item:hover .internship-item__main p,
.internship-item.is-active .internship-item__main p {
  display: none;
}

.internship-item__square {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center;
}

.internship-item:hover .internship-item__main,
.internship-item:hover .internship-item__square,
.internship-item.is-active .internship-item__main,
.internship-item.is-active .internship-item__square {
  height: 62%;
}

.internship-item:hover .internship-item__square,
.internship-item.is-active .internship-item__square {
  flex-basis: auto;
}

.internship-item__arrow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 27px solid transparent;
  border-right: 27px solid transparent;
  border-top: 47px solid #c9a87c;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
  cursor: pointer;
  pointer-events: auto;
  z-index: 5;
}

.internship-item:hover .internship-item__arrow,
.internship-item.is-active .internship-item__arrow {
  opacity: 1;
}

.internship-item.is-active .internship-item__arrow {
  opacity: 0;
}

.internship-card .placeholder-list.is-dropdown-open .internship-item__arrow {
  opacity: 0;
  pointer-events: none;
}

.internship-card .placeholder-list.is-dropdown-open .internship-item:not(.is-active) {
  visibility: hidden;
}

.internship-card .placeholder-list.is-dropdown-open .internship-item.is-active {
  visibility: visible;
}

.internship-dropdown {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: none;
  overflow-y: scroll;
  overscroll-behavior: contain;
  padding: 40px;
  border-radius: 0 0 16px 16px;
  background: #f5f1eb;
  cursor: pointer;
  scrollbar-color: #c9a87c transparent;
  scrollbar-width: thin;
}

.internship-dropdown.is-detail {
  top: calc(var(--internship-active-content-height) + 36px);
  padding-top: 0;
  background: var(--cream);
}

.internship-dropdown.is-visible {
  display: block;
}

.internship-dropdown::-webkit-scrollbar {
  width: 12px;
}

.internship-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.internship-dropdown::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c9a87c;
}

.internship-dropdown__inner {
  display: grid;
  gap: 32px;
  min-height: 140%;
}

.internship-dropdown__inner div {
  min-height: 120px;
  border-radius: 16px;
  background: rgba(31, 74, 72, 0.16);
}

.internship-dropdown.is-detail .internship-dropdown__placeholder {
  display: none;
}

.internship-dropdown__detail {
  display: none;
}

.internship-dropdown.is-water .internship-dropdown__detail--water,
.internship-dropdown.is-quant .internship-dropdown__detail--quant,
.internship-dropdown.is-new-oriental .internship-dropdown__detail--new-oriental,
.internship-dropdown.is-ruder-finn .internship-dropdown__detail--ruder {
  display: grid;
  gap: 34px;
  padding-right: 18px;
  color: var(--ink);
  font-family: "Instrument Serif", "Bodoni 72", "Bodoni 72 Smallcaps", Didot,
    "Didot LT STD", "Hoefler Text", "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.22;
}

.internship-dropdown__detail section,
.internship-dropdown__detail p,
.internship-dropdown__detail ul {
  margin: 0;
}

.internship-dropdown__detail ul {
  display: grid;
  gap: 18px;
  padding-left: 1.1em;
}

.internship-dropdown__image-slot {
  justify-self: center;
  width: 75%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.education-list {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  height: calc(
    100% - (30px + clamp(2.35rem, 3vw, 3.25rem) + 28px + 34px)
  );
}

.education-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 28px 14px;
  border-radius: 16px;
  background: var(--cream);
  font-family: "Instrument Serif", "Bodoni 72", "Bodoni 72 Smallcaps", Didot,
    "Didot LT STD", "Hoefler Text", "Times New Roman", serif;
  overflow: hidden;
}

.education-entry__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: -8px;
}

.education-entry__logo {
  width: 140px;
  height: 140px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  background: var(--cream);
}

.education-entry__date {
  margin: 54px 0 0;
  font-size: clamp(1.9rem, 1.75vw, 2.35rem);
  line-height: 1.1;
  white-space: nowrap;
}

.education-entry h3 {
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.155;
}

.education-entry__degree {
  margin: 0;
  font-size: 32px;
  line-height: 0.99;
}

.education-entry ul {
  margin: 0;
  padding-left: 1.15em;
  font-size: 32px;
  line-height: 0.99;
}

.education-entry li + li {
  margin-top: 0;
}

.education-entry__link {
  position: absolute;
  right: 28px;
  bottom: 14px;
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 12px;
  margin-top: 0;
  font-size: 42.6px;
  line-height: 1.1;
}

.education-entry__arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: transparent;
}

.education-entry__arrow::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid #c9a87c;
  line-height: 1;
}

.education-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 80;
  display: none;
  width: min(58.8vw, 1075.2px);
  height: min(67.2vh, 1318.8px);
  padding: 48px;
  border: 8px solid #c9a87c;
  border-radius: 24px;
  background: var(--cream);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.education-modal.is-visible {
  display: block;
}

.education-modal__grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    var(--education-modal-block-width, minmax(0, 1fr))
  );
  grid-auto-rows: minmax(0, 1fr);
  justify-content: center;
  gap: 48px;
  width: 100%;
  height: 100%;
}

.education-modal__group {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 60.48px;
  gap: 21.6px;
  min-height: 0;
}

.education-modal__group--reverse {
  grid-template-rows: 60.48px minmax(0, 1fr);
}

.education-modal__group--reverse .education-modal__line {
  grid-row: 1;
}

.education-modal__group--reverse .education-modal__block {
  grid-row: 2;
}

.education-modal__block,
.education-modal__line {
  border-radius: 16px;
}

.education-modal__block {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  background: var(--placeholder);
}

.education-modal__line {
  background: #f6dcf7;
}

.education-modal--ucass .education-modal__line,
.education-modal--usyd .education-modal__line {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  font-family: "Instrument Serif", "Bodoni 72", "Bodoni 72 Smallcaps", Didot,
    "Didot LT STD", "Hoefler Text", "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.education-modal__group--empty {
  opacity: 0;
}

.portrait-backdrop {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 16px;
  background: var(--cream);
}

.portrait-backdrop p {
  width: min(80%, 600px);
  margin: 0;
  color: var(--ink);
  font-family: "Vujahday Script", "Brush Script MT", "Segoe Script", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2096;
  letter-spacing: 0;
}

.floating-portrait {
  position: absolute;
  z-index: 2;
  right: calc(-10% - 220px);
  bottom: 0;
  width: min(42.64vw, 613.6px);
  height: auto;
  pointer-events: none;
}

.skill-lines {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
  height: calc(100% - (42px + clamp(2.35rem, 3vw, 3.25rem) + 28px + 40px));
}

.skill-lines div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font-family: "Instrument Serif", "Bodoni 72", "Bodoni 72 Smallcaps", Didot,
    "Didot LT STD", "Hoefler Text", "Times New Roman", serif;
  font-size: 60px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.skill-lines div span {
  display: block;
}

.skill-lines div::before {
  content: attr(data-skill-detail);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-size: 42px;
  line-height: 1.1;
  pointer-events: none;
  text-align: center;
  white-space: normal;
}

.skill-lines div:hover span {
  opacity: 0;
}

.skill-lines div:hover::before {
  opacity: 1;
}

.skill-lines div:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 70%;
  height: 5px;
  border-radius: 999px;
  background: #c9a87c;
  transform: translateX(-50%);
}

@media (max-width: 1200px) {
  .site-shell {
    width: min(100% - 48px, 980px);
    padding-top: 16px;
  }

  .navbar {
    min-height: auto;
    padding: 22px 24px;
    gap: 18px;
  }

  .nav-links {
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 24px);
    font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  }

  .hero-card {
    min-height: 640px;
  }

  .image-wall {
    --tile-gap: 30px;
    --track-gap: calc(var(--tile-gap) * 0.6);
    --pair-gap: 26px;
    --center-gap: clamp(165px, 16.5vw, 270px);

    width: 144%;
    height: 160%;
    grid-template-columns:
      repeat(2, minmax(169px, 251px))
      var(--center-gap)
      repeat(2, minmax(169px, 251px));
    column-gap: var(--pair-gap);
  }

  .editorial-grid {
    grid-template-rows: 855px 390px 422px 450px;
    gap: 24px;
  }

  .project-card {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 896' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f0e9' d='M24 0H453Q477 0 477 24V398Q477 446 525 446H596Q620 446 620 470V872Q620 896 596 896H24Q0 896 0 872V24Q0 0 24 0Z'/%3E%3C/svg%3E");
  }

  .project-summary {
    padding-inline: 40px;
    height: calc(
      100% - 450px - (34px + clamp(2.1rem, 3.5vw, 2.9rem) + 28px + 40px)
    );
  }

  .project-summary a {
    height: auto;
  }

  .project-gallery {
    gap: 24px;
    margin-bottom: 40px;
    padding-inline: 40px;
  }

  .project-gallery div {
    aspect-ratio: 16 / 9;
  }

  .education-card,
  .internship-card,
  .portrait-card,
  .skills-card {
    padding-inline: 40px;
  }

  .skills-card {
    padding-bottom: 0;
  }

  .portrait-card {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .card-title {
    padding-top: 34px;
    font-size: clamp(2.1rem, 3.5vw, 2.9rem);
  }

  .placeholder-card {
    min-height: 138px;
  }

  .education-card .placeholder-list {
    height: calc(
      100% - (34px + clamp(2.1rem, 3.5vw, 2.9rem) + 28px + 40px)
    );
  }

  .internship-card .placeholder-list {
    height: calc(
      100% - (34px + clamp(2.1rem, 3.5vw, 2.9rem) + 28px + 40px)
    );
  }

  .education-list {
    height: calc(
      100% - (34px + clamp(2.1rem, 3.5vw, 2.9rem) + 28px + 34px)
    );
  }

  .portrait-backdrop {
    min-height: 0;
  }

  .portrait-backdrop p {
    width: min(80%, 600px);
    font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  }

  .floating-portrait {
    right: calc(-10% - 220px);
    bottom: 0;
    width: min(47.71vw, 510.9px);
  }

  .skill-lines {
    gap: 24px;
    height: calc(100% - (34px + clamp(2.1rem, 3.5vw, 2.9rem) + 28px + 40px));
  }

  .skill-lines div {
    height: auto;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 620px);
    padding: 14px 0 28px;
  }

  .navbar {
    padding: 22px;
    border-radius: 14px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 2.2rem;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 3;
    width: 100%;
    font-size: 1.75rem;
    row-gap: 18px;
  }

  .language-switch {
    margin-left: auto;
    padding: 13px 15px 12px;
    border-radius: 13px;
    font-size: 1.35rem;
  }

  .hero-card {
    min-height: 640px;
    margin-top: 18px;
    border-radius: 14px;
  }

  .hero-card h1 {
    font-size: clamp(4.5rem, 21vw, 7.5rem);
  }

  .image-wall {
    --tile-gap: 24px;
    --track-gap: calc(var(--tile-gap) * 0.6);
    --pair-gap: 24px;
    --center-gap: 165px;

    width: 186%;
    height: 164%;
    grid-template-columns:
      repeat(2, 152px)
      var(--center-gap)
      repeat(2, 152px);
    column-gap: var(--pair-gap);
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
    margin-top: 18px;
  }

  .education-card,
  .internship-card,
  .portrait-card,
  .project-card,
  .skills-card,
  .contact-card {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
    padding: 0 24px 42px;
    border-radius: 24px;
  }

  .project-card,
  .contact-card {
    min-height: 430px;
    width: 100%;
  }

  .project-card {
    border-radius: 24px;
    background-color: var(--cream);
    background-image: none;
  }

  .portrait-card {
    min-height: 300px;
    padding: calc(62px + 2.8rem) 24px 42px;
  }

  .card-title {
    padding-top: 34px;
    font-size: 2.8rem;
  }

  .placeholder-card {
    min-height: 260px;
    border-radius: 16px;
  }

  .education-card .placeholder-list {
    height: auto;
  }

  .education-list {
    grid-template-rows: none;
    height: auto;
  }

  .portrait-backdrop {
    min-height: 0;
    border-radius: 16px;
  }

  .portrait-backdrop p {
    width: min(80%, 600px);
    font-size: clamp(1.3rem, 5.2vw, 2.1rem);
  }

  .floating-portrait {
    right: calc(-8% - 220px);
    bottom: 0;
    width: min(81.9vw, 443.3px);
  }

  .skill-lines div {
    height: auto;
    border-radius: 16px;
  }

  .skill-lines {
    height: calc(100% - (62px + 2.8rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-track {
    animation: none;
    transform: none;
  }
}

/* Responsive layout normalization for production browsers. */
html {
  scroll-behavior: smooth;
}

img,
video {
  max-width: 100%;
}

.site-shell {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
  padding-block: clamp(12px, 1.4vw, 18px) clamp(24px, 3vw, 40px);
}

.navbar {
  min-height: clamp(72px, 7.5vw, 104px);
  height: auto;
  padding: clamp(18px, 2.2vw, 30px) clamp(18px, 2.5vw, 32px);
  gap: clamp(18px, 3vw, 44px);
  overflow: visible;
}

.brand {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.nav-links {
  gap: clamp(16px, 2.9vw, 42px);
  font-size: clamp(1.05rem, 1.9vw, 1.75rem);
}

.language-switch {
  padding: clamp(8px, 1vw, 12px) clamp(10px, 1.2vw, 15px);
  font-size: clamp(0.95rem, 1.35vw, 1.35rem);
}

.hero-card {
  min-height: 0;
  aspect-ratio: 16 / 7.4;
  margin-top: clamp(16px, 2vw, 24px);
}

.hero-card h1 {
  font-size: clamp(4.2rem, 11vw, 8rem);
}

.image-wall {
  width: 150%;
  height: 170%;
  grid-template-columns:
    repeat(2, minmax(120px, 230px))
    clamp(155px, 20vw, 285px)
    repeat(2, minmax(120px, 230px));
}

.image-wall img {
  height: 100%;
  object-fit: cover;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  grid-template-areas:
    "education internship"
    "about internship"
    "project skills"
    "project contact";
  gap: clamp(18px, 2.8vw, 34px);
  margin-top: clamp(18px, 2.8vw, 34px);
  align-items: stretch;
}

.content-card {
  min-width: 0;
  overflow: hidden;
}

.education-card {
  grid-area: education;
  min-height: clamp(560px, 62vw, 760px);
  padding-inline: clamp(20px, 3vw, 40px);
}

.internship-card {
  grid-area: internship;
  min-height: clamp(780px, 82vw, 1060px);
  height: auto;
  padding-inline: clamp(20px, 3vw, 40px);
}

.portrait-card {
  grid-area: about;
  min-height: clamp(280px, 36vw, 420px);
  padding: clamp(22px, 3vw, 40px);
}

.project-card {
  grid-area: project;
  width: 100%;
  min-height: clamp(780px, 86vw, 1080px);
  justify-self: stretch;
  overflow: hidden;
}

.project-card .card-title,
.project-summary {
  width: min(77%, 100%);
}

.skills-card {
  grid-area: skills;
  min-height: clamp(520px, 52vw, 660px);
  height: auto;
  top: auto;
  padding-inline: clamp(20px, 3vw, 40px);
  container-type: inline-size;
}

.contact-card {
  grid-area: contact;
  width: 70%;
  min-height: clamp(470px, 48vw, 620px);
  height: auto;
}

.card-title {
  padding-top: clamp(28px, 3.2vw, 42px);
  font-size: clamp(2rem, 4.1vw, 3.25rem);
}

.education-card .placeholder-list,
.education-list,
.internship-card .placeholder-list,
.skill-lines {
  height: auto;
}

.education-list {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 16px);
  min-height: calc(100% - clamp(92px, 10vw, 122px));
}

.education-entry {
  padding: clamp(10px, 1.7vw, 18px) clamp(16px, 2.2vw, 28px)
    clamp(54px, 5vw, 76px);
}

.education-entry__logo {
  width: clamp(70px, 10vw, 118px);
  height: clamp(70px, 10vw, 118px);
}

.education-entry__date {
  margin-top: clamp(22px, 4vw, 46px);
  font-size: clamp(1rem, 2vw, 1.55rem);
}

.education-entry h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
}

.education-entry__degree,
.education-entry ul {
  font-size: clamp(1rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.education-entry__link {
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(12px, 1.8vw, 20px);
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
}

.education-entry__arrow {
  width: clamp(28px, 3.8vw, 45px);
  height: clamp(28px, 3.8vw, 45px);
}

.education-entry__arrow::before {
  border-top-width: clamp(9px, 1.3vw, 15px);
  border-bottom-width: clamp(9px, 1.3vw, 15px);
  border-left-width: clamp(15px, 2.1vw, 25px);
}

.internship-card .placeholder-list {
  grid-template-rows: repeat(4, minmax(132px, 1fr));
  gap: clamp(18px, 2.4vw, 24px);
  min-height: calc(100% - clamp(92px, 10vw, 122px));
}

.internship-item {
  gap: clamp(16px, 2.4vw, 32px);
  overflow: hidden;
}

.internship-item__main {
  padding: clamp(12px, 2vw, 22px) clamp(14px, 2.4vw, 28px);
}

.internship-item__main h3 {
  font-size: clamp(1.35rem, 2.6vw, 2.35rem);
}

.internship-item__main p {
  font-size: clamp(1rem, 1.9vw, 1.55rem);
}

.internship-item__square {
  max-width: 34%;
  height: 100%;
  object-fit: contain;
}

.internship-item:hover .internship-item__main h3,
.internship-item.is-active .internship-item__main h3 {
  font-size: clamp(1.4rem, 3vw, 2.55rem);
}

.internship-dropdown.is-water .internship-dropdown__detail--water,
.internship-dropdown.is-quant .internship-dropdown__detail--quant,
.internship-dropdown.is-new-oriental .internship-dropdown__detail--new-oriental,
.internship-dropdown.is-ruder-finn .internship-dropdown__detail--ruder {
  font-size: clamp(1rem, 2vw, 1.6rem);
}

.project-summary {
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(20px, 2.5vw, 28px);
  height: auto;
  min-height: clamp(250px, 32vw, 360px);
  padding-inline: clamp(20px, 3vw, 40px);
}

.project-scroll-title span {
  font-size: clamp(1.25rem, 2.7vw, 2.6rem);
}

.project-summary a.project-scroll-title {
  justify-content: center;
  padding-inline: clamp(12px, 2vw, 24px);
}

.project-scroll-title span {
  max-width: 100%;
  min-width: 0;
  padding-left: 0;
  animation: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-gallery {
  gap: clamp(16px, 2vw, 24px);
  padding-inline: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.skill-lines {
  gap: clamp(16px, 2vw, 24px);
  min-height: calc(100% - clamp(92px, 10vw, 122px));
}

.skill-lines div {
  padding-inline: clamp(12px, 2vw, 24px);
  font-size: min(clamp(1.8rem, 4.3vw, 3.75rem), 9cqw);
  white-space: nowrap;
}

.skill-lines div::before {
  font-size: clamp(1.15rem, 2.6vw, 2.6rem);
}

.contact-details {
  gap: clamp(18px, 2vw, 26px);
  margin-top: clamp(34px, 4vw, 50px);
  font-size: clamp(1.25rem, 3.2vw, 2.65rem);
  white-space: normal;
}

.contact-portrait {
  width: min(48%, 280px);
}

.contact-qr {
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(20px, 3vw, 36px);
  width: min(42%, 245px);
}

.floating-portrait {
  right: clamp(-150px, -9vw, -60px);
  width: min(42vw, 450px);
}

.portrait-backdrop p {
  width: min(65%, 600px);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
}

.paper-card {
  padding: clamp(24px, 3vw, 36px);
}

.paper-article-title {
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);
}

.paper-content,
.paper-content h2,
.paper-pagination,
.paper-back {
  font-size: clamp(1.45rem, 3.2vw, 2.65rem);
}

@media (min-width: 761px) {
  .internship-card {
    align-self: stretch;
    height: auto;
  }

  .skills-card {
    position: static;
    height: auto;
  }
}

@media (max-width: 1024px) {
  .site-shell {
    width: min(100% - 32px, 900px);
  }

  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero-card {
    aspect-ratio: 4 / 3;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "education"
      "internship"
      "about"
      "project"
      "skills"
      "contact";
  }

  .education-card,
  .internship-card,
  .portrait-card,
  .project-card,
  .skills-card,
  .contact-card {
    min-height: auto;
    width: 100%;
    padding-inline: clamp(18px, 4vw, 32px);
  }

  .education-card,
  .internship-card,
  .skills-card {
    padding-bottom: clamp(26px, 5vw, 42px);
  }

  .education-list {
    min-height: 0;
  }

  .education-entry {
    min-height: clamp(280px, 42vw, 360px);
  }

  .internship-card .placeholder-list {
    min-height: 760px;
  }

  .portrait-card {
    min-height: clamp(310px, 52vw, 430px);
  }

  .project-card {
    border-radius: 24px;
    background-color: var(--cream);
    background-image: none;
    padding-bottom: clamp(26px, 5vw, 42px);
  }

  .project-card .card-title,
  .project-summary {
    width: 100%;
  }

  .project-summary {
    min-height: 330px;
  }

  .skills-card {
    min-height: 560px;
  }

  .contact-card {
    min-height: clamp(520px, 70vw, 680px);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 32px, 480px);
  }

  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 0;
    padding: 18px;
    gap: 16px;
  }

  .brand {
    min-width: 0;
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    font-size: clamp(1.05rem, 5vw, 1.45rem);
    white-space: normal;
  }

  .language-switch {
    justify-self: end;
  }

  .hero-card {
    aspect-ratio: 1 / 1.15;
  }

  .hero-card h1 {
    font-size: clamp(3.9rem, 18vw, 5.5rem);
  }

  .image-wall {
    width: 205%;
    height: 170%;
    grid-template-columns:
      repeat(2, 125px)
      145px
      repeat(2, 125px);
  }

  .card-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .education-entry {
    min-height: 360px;
  }

  .education-entry__top {
    gap: 14px;
  }

  .education-entry__logo {
    width: 72px;
    height: 72px;
  }

  .education-entry__date {
    margin-top: 18px;
  }

  .internship-card .placeholder-list {
    grid-template-rows: repeat(4, minmax(150px, 1fr));
    min-height: 720px;
  }

  .internship-item__main h3 {
    font-size: clamp(1.15rem, 5vw, 1.65rem);
  }

  .internship-item__main p {
    font-size: clamp(0.9rem, 4.2vw, 1.2rem);
  }

  .internship-item__square {
    max-width: 30%;
  }

  .portrait-backdrop p {
    width: 58%;
    font-size: clamp(1.05rem, 5.2vw, 1.45rem);
  }

  .floating-portrait {
    right: -130px;
    width: min(82vw, 360px);
  }

  .project-summary {
    min-height: 300px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .skill-lines {
    min-height: 470px;
  }

  .skill-lines div {
    white-space: normal;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .skill-lines div::before {
    font-size: clamp(1rem, 4.7vw, 1.3rem);
  }
}

/* Proportion correction for production browsers at 100% zoom. */
.site-shell {
  width: min(100% - 32px, 1080px);
}

.navbar {
  min-height: clamp(64px, 6.5vw, 82px);
  padding: clamp(14px, 1.7vw, 22px) clamp(16px, 2vw, 26px);
  gap: clamp(16px, 2.4vw, 34px);
}

.brand {
  font-size: clamp(1.45rem, 2.35vw, 2.05rem);
}

.nav-links {
  gap: clamp(14px, 2.3vw, 34px);
  font-size: clamp(0.95rem, 1.55vw, 1.35rem);
}

.language-switch {
  padding: clamp(7px, 0.9vw, 10px) clamp(9px, 1vw, 13px);
  font-size: clamp(0.8rem, 1.05vw, 1.05rem);
}

.hero-card h1 {
  font-size: clamp(3.5rem, 8.6vw, 6.4rem);
}

.hero-card {
  aspect-ratio: 16 / 9.6;
}

.editorial-grid {
  gap: clamp(16px, 2.3vw, 26px);
}

.education-card {
  min-height: clamp(620px, 55vw, 800px);
}

.internship-card {
  min-height: clamp(820px, 71vw, 1030px);
}

.portrait-card {
  min-height: clamp(310px, 28vw, 405px);
}

.project-card {
  min-height: clamp(950px, 78vw, 1160px);
}

.skills-card {
  min-height: clamp(500px, 39vw, 610px);
}

.contact-card {
  min-height: clamp(620px, 52vw, 790px);
}

.card-title {
  padding-top: clamp(22px, 2.6vw, 34px);
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
}

.education-list,
.internship-card .placeholder-list,
.skill-lines {
  min-height: calc(100% - clamp(78px, 8vw, 104px));
}

.education-entry {
  padding: clamp(9px, 1.3vw, 14px) clamp(14px, 1.8vw, 22px)
    clamp(46px, 4vw, 62px);
}

.education-entry__logo {
  width: clamp(56px, 7vw, 88px);
  height: clamp(56px, 7vw, 88px);
}

.education-entry__date {
  margin-top: clamp(16px, 2.8vw, 34px);
  font-size: clamp(0.85rem, 1.55vw, 1.15rem);
}

.education-entry h3 {
  font-size: clamp(1.15rem, 2vw, 1.75rem);
}

.education-entry__degree,
.education-entry ul {
  font-size: clamp(0.82rem, 1.5vw, 1.15rem);
}

.education-entry__link {
  font-size: clamp(1.1rem, 2.1vw, 1.75rem);
}

.internship-item__main h3 {
  font-size: clamp(1.1rem, 2vw, 1.75rem);
}

.internship-item__main p {
  font-size: clamp(0.82rem, 1.45vw, 1.15rem);
}

.internship-dropdown.is-water .internship-dropdown__detail--water,
.internship-dropdown.is-quant .internship-dropdown__detail--quant,
.internship-dropdown.is-new-oriental .internship-dropdown__detail--new-oriental,
.internship-dropdown.is-ruder-finn .internship-dropdown__detail--ruder {
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
}

.floating-portrait {
  width: min(36vw, 360px);
}

.portrait-backdrop p {
  font-size: clamp(1.1rem, 2.3vw, 1.9rem);
}

.project-summary {
  min-height: clamp(220px, 27vw, 300px);
}

.project-scroll-title span {
  font-size: clamp(1rem, 2vw, 1.8rem);
}

.skill-lines div {
  font-size: min(clamp(1.45rem, 3.5vw, 2.9rem), 8.3cqw);
}

.skill-lines div::before {
  font-size: clamp(1rem, 2.15vw, 2rem);
}

.contact-details {
  font-size: clamp(1rem, 2.4vw, 2rem);
}

@media (max-width: 1024px) {
  .site-shell {
    width: min(100% - 32px, 820px);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 430px);
  }

  .navbar {
    padding: 14px;
  }

  .brand {
    font-size: clamp(1.15rem, 6vw, 1.5rem);
  }

  .nav-links {
    font-size: clamp(0.85rem, 4.4vw, 1.05rem);
  }

  .hero-card h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .card-title {
    font-size: clamp(1.65rem, 7.6vw, 2.25rem);
  }
}

.education-modal--ucass .education-modal__line,
.education-modal--usyd .education-modal__line,
.skill-lines div::before {
  font-size: 18.4px;
}

.portrait-backdrop p {
  font-size: 22px;
}

.internship-item__square {
  display: grid;
  flex: 0 0 25%;
  align-self: flex-start;
  width: 25%;
  max-width: 25%;
  height: auto;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.internship-item__square img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.internship-item:hover .internship-item__square,
.internship-item.is-active .internship-item__square {
  flex-basis: 21%;
  width: 21%;
  max-width: 21%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.internship-item:hover .internship-item__main h3,
.internship-item.is-active .internship-item__main h3 {
  font-size: 27px;
  font-weight: 700;
}

.internship-card .placeholder-list {
  gap: 20px;
}

.internship-card {
  padding-inline: 20px;
}

.internship-item {
  align-items: center;
  gap: 10px;
  min-height: 147px;
}

.internship-item__main {
  justify-content: center;
}

.internship-item__square {
  align-self: center;
}

.internship-item:hover .internship-item__main,
.internship-item.is-active .internship-item__main {
  align-self: center;
  min-height: 0;
}

.internship-item:hover .internship-item__square,
.internship-item.is-active .internship-item__square {
  align-self: center;
}

.internship-item__main h3 {
  font-size: 28px;
}

.internship-item__main p {
  font-size: 18px;
}

.internship-card {
  height: 820px;
  min-height: 820px;
}

.internship-card .placeholder-list {
  height: calc(800px - clamp(78px, 8vw, 104px));
  min-height: calc(800px - clamp(78px, 8vw, 104px));
}

.skills-card {
  position: relative;
  top: -343.25px;
  height: 682.75px;
  min-height: 682.75px;
}

.education-entry__arrow {
  width: 23px;
  height: 23px;
}

.education-entry__arrow::before {
  border-top-width: 11.5px;
  border-bottom-width: 11.5px;
  border-left-width: 19px;
}

.internship-item__arrow {
  border-left-width: 13px;
  border-right-width: 13px;
  border-top-width: 23.3px;
}

.portrait-backdrop p {
  width: min(74.75%, 690px);
  font-size: 28px;
}

.portrait-card,
.portrait-backdrop {
  overflow: visible;
}

.floating-portrait {
  right: calc(clamp(-150px, -9vw, -60px) - 140px);
  z-index: 90;
  width: min(41.4vw, 414px);
}

.skill-lines {
  gap: 16px;
}

.skill-lines div {
  font-size: 30px;
}

.skill-lines div:not(:last-child)::after {
  bottom: -8px;
}

.project-card {
  width: 750px;
  height: 865.49px;
  min-height: 865.49px;
  max-width: none;
  justify-self: start;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 750 865.49' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f0e9' d='M24 0H503Q527 0 527 24V317.49Q527 365.49 575 365.49H726Q750 365.49 750 389.49V841.49Q750 865.49 726 865.49H24Q0 865.49 0 841.49V24Q0 0 24 0Z'/%3E%3C/svg%3E");
}

.project-card .card-title,
.project-summary {
  width: 527px;
}

.project-summary {
  gap: 12px;
}

.project-scroll-title span {
  animation: project-title-scroll 18s linear infinite;
}

.project-summary a.project-scroll-title {
  justify-content: flex-start;
  padding-inline: 0;
}

.project-scroll-title > .project-title-marquee {
  display: inline-flex;
  width: max-content;
  max-width: none;
  min-width: max-content;
  padding-left: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  animation: project-title-loop 22s linear infinite;
}

.project-title-marquee > span {
  flex: 0 0 auto;
  min-width: max-content;
  padding-right: 0.8em;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  animation: none;
}

@keyframes project-title-loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.contact-card {
  width: 304px;
  height: 500px;
  min-height: 500px;
  top: -343.25px;
}
