@font-face {
  font-family: Geist;
  src: url("../assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Foundation */
:root {
  --canvas: #f7f7f5;
  --ink: #151515;
  --muted: #64645f;
  --line: #deded8;
  --section-space: clamp(88px, 10vw, 144px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    16px/1.65 Geist,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid #285fba;
  outline-offset: 5px;
}
::selection {
  background: #d8ceef;
}
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}
h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  letter-spacing: -0.06em;
  font-weight: 550;
  line-height: 1.04;
}
h2 {
  font-size: clamp(34px, 3.5vw, 48px);
  letter-spacing: -0.045em;
}
h3 {
  font-size: 32px;
  letter-spacing: -0.035em;
}
p {
  color: var(--muted);
  text-wrap: pretty;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 12px 20px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}

/* Shared navigation and controls */
.site-header {
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.wordmark {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1.3px;
}
.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}
.nav-links a:hover,
.text-link:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-cta {
  margin-left: auto;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #343434;
}
.button:active,
button:active {
  transform: scale(0.98);
}
.button.small {
  padding: 9px 17px;
  font-size: 12px;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #c9c9c4;
}
.button.secondary:hover {
  background: #eaeae6;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.eyebrow,
.section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.035em;
  color: var(--muted);
}
.section-label {
  display: block;
}
.section {
  padding-top: var(--section-space);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
}
.section-heading h2 {
  margin-top: 15px;
}
.section-heading > p {
  min-width: 300px;
  font-size: 14px;
  line-height: 1.7;
}

/* Introduction: the color dissolves into the page, without a container surface. */
.hero {
  padding-top: 72px;
}
.hero-heading {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  align-items: end;
  gap: 52px;
  margin-bottom: 68px;
}
.intro-location {
  margin-bottom: 23px;
  font-size: 13px;
  color: var(--muted);
}
.hero-summary {
  justify-self: end;
  max-width: 345px;
  padding-bottom: 4px;
  font-size: 15px;
  line-height: 1.75;
}
.intro-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 470px;
  gap: 72px;
  padding: 25px 0;
}
.intro-copy {
  max-width: 425px;
  padding-left: 28px;
}
.intro-copy h2 {
  margin-top: 23px;
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 1.14;
}
.intro-copy p {
  max-width: 360px;
  margin: 20px 0 25px;
  color: #44494b;
  font-size: 14px;
}
.portrait {
  width: min(340px, 100%);
  justify-self: center;
}
.portrait .photo-frame {
  height: 405px;
  border-radius: 16px;
}
.portrait img {
  object-position: center 58%;
}
.portrait figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.motion-toggle {
  position: absolute;
  bottom: -14px;
  left: 28px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #51514d;
  font-size: 11px;
}
.js .motion-toggle {
  display: flex;
}

/* Education */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}
.education-photo .photo-frame {
  height: 510px;
  border-radius: 20px;
}
.education-photo img {
  object-position: 50% 47%;
}
.education-photo figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.education-copy > .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.education-copy > h3 {
  margin-top: 17px;
  font-size: 38px;
  line-height: 1.15;
}
.education-copy > p {
  max-width: 430px;
  margin-top: 24px;
  font-size: 15px;
}

/* Experience: photos and a simple employment list. */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.work-media {
  height: 340px;
  border-radius: 18px;
}
.ocbc-photo {
  object-position: 50% 64%;
}
.work-body {
  padding-top: 23px;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
}
.current-label {
  color: var(--muted);
}
.work-body h3 {
  font-size: 29px;
}
.work-body p {
  margin-top: 7px;
  font-size: 14px;
}
.previous-work {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.work-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 145px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.work-row:first-child {
  padding-top: 0;
}
.work-row .eyebrow {
  font-size: 11px;
}
.work-row h3 {
  margin-top: 9px;
  font-size: 25px;
}
.work-row p {
  margin-top: 7px;
  font-size: 12px;
}
.company-placeholder,
.work-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
}
.company-placeholder {
  display: grid;
  place-items: center;
  background: #eeeee9;
  font-size: 10px;
  color: #777770;
}
.teaching-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  margin-top: 74px;
}
.teaching-gallery {
  border-radius: 14px;
  overflow: hidden;
}
.teaching-gallery .photo-frame {
  aspect-ratio: 1.67;
}
.teaching-gallery img {
  object-fit: contain;
  background: #222;
}
.teaching-copy {
  padding: 10px 30px 10px 0;
}
.teaching-copy h3 {
  margin: 20px 0 18px;
  font-size: 35px;
}
.teaching-copy p {
  max-width: 350px;
  font-size: 14px;
}
.text-note {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

/* Recognition */
.award-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 70px;
}
.award-gallery {
  border-radius: 18px;
  overflow: hidden;
}
.award-gallery .photo-frame {
  aspect-ratio: 1.4;
}
.award-copy {
  padding: 10px 20px 10px 0;
}
.award-copy h3 {
  margin-top: 16px;
  font-size: 38px;
}
.award-copy p {
  margin-top: 22px;
  font-size: 14px;
}

/* Current project: no invented product UI. */
.project-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  min-height: 310px;
  padding-block: 55px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-title h3 {
  margin-top: 18px;
  font-size: clamp(44px, 5vw, 64px);
  letter-spacing: -0.05em;
}
.project-url {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.project-copy p {
  max-width: 390px;
  font-size: 16px;
}
.project-copy .text-link {
  font-size: 14px;
  margin-top: 25px;
}

/* Writing: links read like a small index, not product feature tiles. */
.article-list {
  border-top: 1px solid var(--line);
}
.article-link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 60px;
  padding: 34px 0 36px;
  border-bottom: 1px solid var(--line);
}
.article-top {
  grid-column: 1;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--muted);
}
.article-link h3 {
  grid-column: 1;
  max-width: 700px;
  font-size: 30px;
  line-height: 1.25;
}
.article-link > p {
  grid-column: 1;
  margin-top: 12px;
  font-size: 13px;
}
.article-bottom {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
}
.article-bottom > span {
  font-size: 23px;
  transition: transform 0.18s;
}
.article-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.article-link:hover .article-bottom > span {
  transform: translate(3px, -3px);
}
.closing {
  padding: 130px 0 120px;
  text-align: center;
}
.closing h2 {
  margin: 22px 0 30px;
  font-size: 48px;
  line-height: 1.12;
}
.closing .button + .button {
  margin-left: 7px;
}
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 100px;
  font-size: 10px;
  color: var(--muted);
}
.footer-inner .wordmark {
  font-size: 21px;
  color: var(--ink);
}
.footer-location {
  margin-left: auto;
}
.footer-inner > a:last-child {
  margin-left: 25px;
}

/* Media states and galleries */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: #e6e6e1;
}
.js .photo-frame.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    #ffffff78 45%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
.js .photo-frame.is-loading img {
  opacity: 0;
}
.photo-frame.is-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: #e9e7ee;
}
.photo-frame.is-error img {
  display: none;
}
.image-fallback {
  padding: 25px;
  color: #61615b;
  text-align: center;
  font-size: 12px;
}
.image-fallback span {
  display: block;
  margin-bottom: 8px;
  font-size: 27px;
}
.image-fallback small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}
.gallery {
  position: relative;
  min-width: 0;
  touch-action: pan-y;
}
.gallery-slides {
  position: relative;
}
.gallery-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: #fcfcf9ed;
  color: #171717;
}
.gallery-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 16px;
}
.gallery-controls button:hover {
  background: #e7e7e1;
}
.gallery-controls span {
  min-width: 46px;
  text-align: center;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.gallery-controls [data-play] {
  margin-left: 3px;
  border-left: 1px solid #d9d9d4;
  border-radius: 0 50% 50% 0;
  font-size: 12px;
}
.slide.is-entering {
  animation: fade-in 0.3s ease-out;
}

/* Color lives behind the content. Separate paths make the motion perceptible. */
.gradient-art {
  position: absolute;
  inset: -60px 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse 49% 48% at 50% 50%,
    #000 24%,
    transparent 100%
  );
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  will-change: transform;
}
.orb-pink {
  width: 400px;
  height: 360px;
  left: 26%;
  top: 9%;
  background: #dca6db;
  animation: float-pink 10s ease-in-out infinite alternate;
}
.orb-blue {
  width: 420px;
  height: 400px;
  left: 45%;
  top: 8%;
  background: #69b6f4;
  animation: float-blue 12s ease-in-out infinite alternate;
  animation-delay: -4s;
}
.orb-teal {
  width: 350px;
  height: 280px;
  left: 40%;
  top: 43%;
  background: #8bdfd6;
  animation: float-teal 9s ease-in-out infinite alternate;
  animation-delay: -2s;
}
.project-gradient {
  inset: -100px 0;
  opacity: 0.58;
  mask-image: radial-gradient(
    ellipse 48% 48% at 42% 50%,
    #000 4%,
    transparent 100%
  );
}
.project-gradient .orb-pink {
  left: 4%;
  top: 12%;
  width: 280px;
  height: 230px;
}
.project-gradient .orb-blue {
  left: 25%;
  top: 22%;
  width: 300px;
  height: 250px;
}
.project-gradient .orb-teal {
  left: 13%;
  top: 30%;
  width: 280px;
  height: 210px;
}
.motion-paused .orb,
.page-hidden .orb,
.offscreen .orb {
  animation-play-state: paused;
}
@keyframes float-pink {
  from {
    transform: translate(-115px, 45px) scale(0.88);
  }
  to {
    transform: translate(125px, -30px) scale(1.18);
  }
}
@keyframes float-blue {
  from {
    transform: translate(110px, -35px) scale(1.12);
  }
  to {
    transform: translate(-130px, 65px) scale(0.9);
  }
}
@keyframes float-teal {
  from {
    transform: translate(-90px, 30px) scale(0.95);
  }
  to {
    transform: translate(90px, -95px) scale(1.2);
  }
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

/* Responsive composition */
@media (max-width: 1050px) {
  .container {
    width: calc(100% - 48px);
  }
  .nav {
    gap: 32px;
  }
  .nav-links {
    gap: 20px;
  }
  .hero-heading {
    gap: 25px;
    grid-template-columns: 1.7fr 1fr;
  }
  h1 {
    font-size: clamp(44px, 5.8vw, 62px);
  }
  .hero-summary {
    font-size: 13px;
  }
  .intro-scene,
  .education-grid,
  .teaching-section,
  .award-section {
    gap: 38px;
  }
  .intro-copy {
    padding-left: 0;
  }
  .intro-copy h2 {
    font-size: 32px;
  }
  .portrait {
    width: 280px;
  }
  .portrait .photo-frame {
    height: 360px;
  }
  .motion-toggle {
    left: 0;
  }
  .education-copy > h3 {
    font-size: 31px;
  }
  .education-photo .photo-frame {
    height: 470px;
  }
  .work-grid {
    gap: 30px;
  }
  .work-row {
    gap: 16px;
  }
  .work-row .eyebrow {
    font-size: 10px;
  }
  .company-placeholder,
  .work-thumb {
    width: 82px;
    height: 95px;
  }
  .teaching-copy,
  .award-copy {
    padding-right: 0;
  }
  .article-link h3 {
    font-size: 27px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 24px;
  }
  .container {
    width: calc(100% - 36px);
  }
  .nav {
    min-height: 100px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    padding-block: 14px 12px;
  }
  .wordmark {
    font-size: 23px;
  }
  .nav-cta.button {
    padding: 8px 12px;
    font-size: 10px;
  }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 12px;
  }
  .hero {
    padding-top: 43px;
  }
  .hero-heading {
    display: block;
    margin-bottom: 40px;
  }
  .intro-location {
    margin-bottom: 20px;
    font-size: 11px;
  }
  h1 {
    font-size: clamp(38px, 8.8vw, 60px);
    letter-spacing: -0.055em;
  }
  .hero-summary {
    max-width: 420px;
    margin-top: 26px;
    font-size: 14px;
  }
  .hero-summary .text-link {
    margin-top: 13px;
    font-size: 12px;
  }
  .intro-scene {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
    padding: 12px 0 38px;
  }
  .portrait {
    width: min(300px, 85%);
  }
  .portrait .photo-frame {
    height: 350px;
  }
  .intro-copy {
    max-width: none;
    width: 100%;
  }
  .intro-copy h2 {
    margin-top: 17px;
    font-size: 34px;
  }
  .intro-copy p {
    max-width: 430px;
  }
  .intro-scene .gradient-art {
    inset: -65px -18px 20%;
    mask-image: radial-gradient(
      ellipse 65% 48% at 50% 37%,
      #000 5%,
      transparent 100%
    );
  }
  .orb {
    filter: blur(36px);
  }
  .intro-scene .orb-pink {
    left: -20%;
    top: 16%;
    width: 290px;
    height: 300px;
  }
  .intro-scene .orb-blue {
    left: 18%;
    top: 6%;
    width: 300px;
    height: 320px;
  }
  .intro-scene .orb-teal {
    left: 10%;
    top: 30%;
    width: 250px;
    height: 250px;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-heading h2 {
    margin-top: 14px;
    font-size: 35px;
  }
  .section-heading > p {
    min-width: 0;
    margin-top: 17px;
    font-size: 13px;
  }
  .section-heading > p br {
    display: none;
  }
  .education-grid,
  .work-grid,
  .teaching-section,
  .award-section,
  .project-feature {
    grid-template-columns: 1fr;
  }
  .education-grid {
    gap: 30px;
  }
  .education-photo .photo-frame {
    height: auto;
    aspect-ratio: 4 / 4.5;
  }
  .education-copy > h3 {
    font-size: 32px;
  }
  .education-copy > p {
    max-width: none;
    font-size: 14px;
  }
  .work-grid {
    gap: 32px;
  }
  .work-media {
    height: 330px;
  }
  .work-row {
    gap: 20px;
    padding: 20px 0;
  }
  .work-row:first-child {
    padding-top: 14px;
  }
  .company-placeholder,
  .work-thumb {
    width: 94px;
    height: 100px;
  }
  .work-row .eyebrow {
    font-size: 10px;
  }
  .teaching-section {
    gap: 25px;
    margin-top: 55px;
  }
  .teaching-copy {
    padding: 0;
  }
  .teaching-copy h3 {
    font-size: 31px;
  }
  .teaching-copy h3 br {
    display: none;
  }
  .gallery-controls {
    bottom: 8px;
    right: 8px;
  }
  .award-section {
    gap: 28px;
  }
  .award-copy {
    padding: 0;
  }
  .award-copy h3 {
    font-size: 34px;
  }
  .award-copy h3 br {
    display: none;
  }
  .project-feature {
    gap: 30px;
    padding-block: 38px;
  }
  .project-title h3 {
    font-size: 48px;
  }
  .project-copy p {
    max-width: 420px;
    font-size: 14px;
  }
  .project-gradient {
    inset: -65px -18px;
    opacity: 0.48;
  }
  .project-gradient .orb-pink {
    left: -15%;
  }
  .project-gradient .orb-blue {
    left: 15%;
  }
  .article-link {
    display: block;
    padding: 27px 0;
  }
  .article-link h3 {
    font-size: 27px;
  }
  .article-bottom {
    justify-content: space-between;
    margin-top: 24px;
  }
  .closing {
    padding: 95px 0 90px;
  }
  .closing h2 {
    font-size: 36px;
  }
  .closing .button {
    gap: 10px;
    padding: 11px 15px;
    font-size: 11px;
  }
  .closing .button + .button {
    margin-left: 3px;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-block: 25px;
  }
  .footer-inner .wordmark {
    flex: 0 0 100%;
  }
  .footer-location {
    order: 4;
    flex: 0 0 100%;
    margin-left: 0;
  }
  .footer-inner > a:last-child {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .slide.is-entering,
  .js .photo-frame.is-loading::after {
    animation: none;
  }
  .article-bottom > span,
  .button {
    transition: none;
  }
  .gallery-controls [data-play] {
    display: none;
  }
  html:not(.js) .orb {
    animation-play-state: paused;
  }
}
