@font-face {
  font-family: "PP Neue Montreal";
  src: url("./assets/fonts/ppneue-book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("./assets/fonts/ppneue-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --foreground: #171717;
  --secondary: #928c88;
  --tertiary: #635d58;
  --panel: #f8f8f8;
  --line: rgba(23, 23, 23, 0.1);
  --text-max: 929px;
  --page-max: calc(var(--text-max) + 3rem);
  --ease-fast: cubic-bezier(0.2, 0.9, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--foreground);
  font-family: "SF Pro Display", "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.4px;
  line-height: 21.6px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

.page-grid {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 420ms ease, transform 520ms var(--ease-fast), filter 420ms ease;
}

.is-leaving .page-grid {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
  transition-delay: 260ms;
}

.top-spacer {
  position: relative;
  z-index: 1;
  height: 10rem;
  pointer-events: none;
}

.content-shell {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 4.5vh 1.5rem 100px;
}

.copy-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 2rem;
}

.identity {
  display: flex;
  flex-direction: column;
  gap: 0;
}

p {
  margin: 0;
}

.identity p,
.paragraph-stack p,
.section-title,
.cta-card p,
.info-row,
.contact-row {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
}

.identity p + p,
.info-row p,
.contact-row span,
.cta-copy p + p {
  color: var(--secondary);
}

.paragraph-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.intro-emphasis {
  font-weight: 600;
}

.toolbox-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.paragraph-stack .toolbox-title {
  color: var(--secondary);
  font-size: 16px;
  line-height: 24px;
}

.toolbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.toolbox-item {
  position: relative;
  width: 56px;
  height: 56px;
  outline: none;
}

.tool-logo {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 23, 23, 0.08);
}

.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  z-index: 20;
  width: max-content;
  max-width: 13rem;
  transform: translateX(-50%) translateY(4px);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  box-shadow: none;
  padding: 0.4rem 0.65rem;
  font-family: "PP Neue Montreal", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toolbox-item:hover .tool-tip,
.toolbox-item:focus-visible .tool-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.outside-note {
  position: relative;
}

.outside-arrow {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(-50%) translateX(-18px) scale(0.45);
  transform-origin: center;
}

.outside-arrow img {
  width: 64px;
  height: 64px;
}

.outside-arrow.is-arrow-visible {
  animation: outside-arrow-reveal 1050ms cubic-bezier(0.2, 1.25, 0.3, 1) 620ms forwards;
}

@keyframes outside-arrow-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(-50%) translateX(-18px) scale(0.45);
  }
  42% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(-50%) translateX(5px) scale(1.18);
  }
  68% {
    transform: translateY(-50%) translateX(-2px) scale(0.92);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

.paragraph-stack a,
.row-list a,
.contact-row a {
  transition: color 200ms ease;
}

.paragraph-stack a:hover,
.row-list a:hover,
.contact-row a:hover {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-title {
  color: var(--foreground);
}

.cta-wrap {
  width: 100%;
}

.cta-card {
  display: flex;
  width: 100%;
  min-height: 104px;
  align-items: center;
  gap: 4px;
  padding: 24px 24px 24px 12px;
  border-radius: 12px;
  background: var(--panel);
}

.cta-logo {
  width: 89px;
  height: 56px;
  flex: 0 0 89px;
  overflow: visible;
}

.cta-logo svg,
.cta-logo img {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: scale(1.966) !important;
  transform-origin: center;
}

.cta-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.cta-copy p + p {
  color: var(--tertiary);
}

.hello-button {
  display: flex;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  border: 0;
  background: var(--foreground);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  gap: 12px;
  padding: 8px 16px;
  transition: opacity 300ms ease;
}

.hello-button:hover {
  opacity: 0.9;
}

.button-label {
  position: relative;
  display: block;
  width: 78px;
  height: 24px;
  margin: 0 2px;
  overflow: hidden;
  transition: width 420ms cubic-bezier(0.34, 1.3, 0.64, 1);
}

.button-label span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max-content;
  height: 24px;
  white-space: nowrap;
  transition: transform 420ms var(--ease-fast), opacity 300ms ease, filter 300ms ease;
}

.button-label span:nth-child(2) {
  transform: translateY(24px);
}

.hello-button.is-copied .button-label {
  width: 100px;
}

.hello-button.is-copied .button-label span:first-child {
  transform: translateY(-24px);
}

.hello-button.is-copied .button-label span:nth-child(2) {
  transform: translateY(0);
}

.email-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.list-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resume-section {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2rem;
  width: 100%;
}

.resume-section-title {
  color: var(--secondary);
}

.resume-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2rem;
}

.experience-list {
  gap: 2.5rem;
}

.experience-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.company-mark {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 13px;
  background: #f3f3f3;
  box-shadow: 0 2px 10px rgba(23, 23, 23, 0.08);
}

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

.experience-copy,
.education-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.experience-primary,
.education-primary {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.experience-heading,
.education-degree {
  color: var(--secondary);
}

.experience-primary time,
.education-primary time {
  flex: 0 0 auto;
  color: var(--secondary);
  text-align: right;
}

.experience-meta strong,
.education-school strong {
  font-weight: 500;
}

.experience-meta,
.education-school {
  color: var(--foreground);
}

.experience-description {
  margin-top: 0.7rem;
  color: var(--foreground);
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.experience-tags span {
  padding: 3px 8px;
  border: 0;
  border-radius: 8px;
  background: #f2f2f1;
  color: #5f5b58;
  font-size: 13px;
  line-height: 18px;
}

html[data-theme="dark"] .about-page .experience-tags span {
  background: #292c30;
  color: #e3e1de;
}

.education-list {
  gap: 2rem;
}

.education-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.education-logo {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border-radius: 13px;
  background: #f3f3f3;
  box-shadow: 0 2px 10px rgba(23, 23, 23, 0.08);
}

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

.education-logo-nyu img {
  transform: scale(1.34);
}

.awards-list {
  gap: 1.5rem;
}

.award-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.award-mark {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 13px;
}

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

.award-mark-red-dot {
  display: grid;
  place-items: center;
  background: #fff;
}

.award-mark-red-dot img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.award-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.award-primary {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.award-primary time {
  flex: 0 0 auto;
  color: var(--secondary);
  text-align: right;
}

.award-title,
.award-title-link {
  color: var(--foreground);
  font-weight: 500;
}

.award-title-link {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.35rem;
}

.award-external {
  flex: 0 0 auto;
  color: var(--secondary);
  font-size: 1.1em;
  line-height: 1;
  transition: transform 220ms var(--ease-fast), color 220ms ease;
}

.award-title-link:hover .award-external,
.award-title-link:focus-visible .award-external {
  color: var(--foreground);
  transform: translate(2px, -2px);
}

.award-category {
  color: var(--secondary);
}

.row-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
}

.info-row div {
  display: flex;
  min-width: 0;
  gap: 0.5rem;
}

.info-row a,
.info-row span {
  flex: 0 1 auto;
}

.info-row p {
  flex: 1 1 auto;
}

.company-placeholder {
  visibility: hidden;
}

.info-row time {
  flex: 0 0 auto;
  color: var(--foreground);
}

.education-row div {
  flex-wrap: wrap;
}

.contact-row {
  display: flex;
  width: fit-content;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: #f3f3f3;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 11px;
  background: #fff;
  color: var(--foreground);
  box-shadow: 0 1px 6px rgba(23, 23, 23, 0.08);
  transition: transform 220ms var(--ease-fast), box-shadow 220ms ease;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 23, 23, 0.12);
}

.contact-pill img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  filter: invert(1);
}

.contact-pill span {
  color: inherit;
}

.contact-section .section-title {
  color: var(--secondary);
}

.persona-module {
  width: 100%;
  padding-bottom: 0;
}

.persona-stage {
  display: grid;
  width: 100%;
}

.persona-group {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 500ms ease,
    transform 700ms var(--ease-fast),
    visibility 0s linear 700ms;
  pointer-events: none;
}

.persona-group.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

.persona-title {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 24px;
}

.persona-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.persona-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--panel);
}

.persona-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
}

.persona-group.is-active .persona-image {
  animation: persona-image-enter 760ms var(--ease-fast) both;
}

.persona-group.is-active .persona-image:nth-child(2) {
  animation-delay: 70ms;
}

.persona-group.is-active .persona-image:nth-child(3) {
  animation-delay: 140ms;
}

.persona-progress {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 5px;
  margin-top: 14px;
}

.persona-progress span {
  height: 2px;
  overflow: hidden;
  background: #e6e6e6;
}

.persona-progress span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
}

.persona-progress span.is-active::after {
  animation: persona-progress 1.7s linear both;
}

@keyframes persona-image-enter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes persona-progress {
  to {
    transform: scaleX(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms var(--ease-fast);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1280px) {
  .top-spacer {
    height: 12rem;
  }

  .content-shell {
    padding-top: 4vh;
  }

}

@media (max-width: 1360px) and (min-width: 1001px) {
  .content-shell {
    width: calc(60vw + 3rem);
    max-width: calc(929px + 3rem);
  }
}

@media (max-width: 1000px) and (min-width: 768px) {
  .content-shell {
    width: min(808px, 100%);
    max-width: none;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
    line-height: 24px;
  }

}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
    line-height: 27px;
  }
}

@media (max-width: 767px) {
  .top-spacer {
    height: 10rem;
  }

  .content-shell {
    padding-top: 4.5vh;
  }

  .cta-card {
    flex-direction: column;
    gap: 1rem;
    padding: 24px 24px 24px 12px;
    text-align: center;
  }

  .cta-copy {
    align-items: center;
  }

  .cta-logo {
    flex-basis: 56px;
  }

  .hello-button {
    width: auto;
  }

  .resume-section {
    row-gap: 1.5rem;
  }

  .experience-list {
    gap: 2rem;
  }

  .experience-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
  }

  .company-mark {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    font-size: 19px;
  }

  .toolbox-grid {
    gap: 16px;
  }

  .toolbox-item,
  .tool-logo {
    width: 48px;
    height: 48px;
  }

  .tool-logo {
    border-radius: 11px;
  }

  .tool-logo img {
    width: 100%;
    height: 100%;
  }

  .paragraph-stack .toolbox-title {
    font-size: 14px;
    line-height: 20px;
  }

  .education-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
  }

  .education-logo {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .award-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
  }

  .award-mark {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .info-row,
  .info-row div {
    flex-direction: row;
  }

  .contact-row {
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
  }

  .persona-title {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .content-shell {
    max-width: none;
    padding-right: 20px;
    padding-left: 20px;
  }

  .outside-note {
    padding-top: 48px;
  }

  .outside-arrow,
  .outside-arrow img {
    width: 48px;
    height: 48px;
  }

  .outside-arrow {
    top: 0;
    right: auto;
    left: 0;
    transform: translateX(-18px) scale(0.45);
  }

  .outside-arrow.is-arrow-visible {
    animation-name: outside-arrow-reveal-mobile;
  }
}

@keyframes outside-arrow-reveal-mobile {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px) scale(0.45);
  }
  42% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(5px) scale(1.18);
  }
  68% {
    transform: translateX(-2px) scale(0.92);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
