:root {
  --paper: #ffffff;
  --paper-2: #fdf2f5;
  --pink: #fbe3ea;
  --ink: #1d1a1b;
  --ink-2: #3a3335;
  --muted: #7a6d71;
  --accent: #d9577b;
  --line: rgba(29, 26, 27, 0.14);
  --line-light: rgba(29, 26, 27, 0.14);
  --display: "Anton", "Impact", sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* invisible page scrollbar: scrolling still works by wheel, trackpad, touch and keys */
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}

.label {
  margin: 0 0 24px;
  color: var(--muted);
}

.section {
  padding: clamp(96px, 14vw, 200px) var(--gutter);
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* split-text helpers */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}

.w > span {
  display: inline-block;
  will-change: transform;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--pink);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
}

.loader-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.loader-bottom {
  display: grid;
  gap: 14px;
}

.loader-role {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
}

.loader-bar {
  height: 2px;
  background: var(--line-light);
}

/* the KC mark: centred during the intro, then flown into the header */
.intro-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 101;
  display: flex;
  align-items: flex-start;
  font-family: var(--display);
  font-size: clamp(140px, 24vw, 360px);
  line-height: 0.85;
  color: var(--ink);
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  pointer-events: none;
}

.il-mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.02em;
}

.il-letter {
  display: inline-block;
  will-change: transform;
}

.il-r {
  font-family: var(--body);
  font-size: 0.14em;
  line-height: 1;
  margin: 0.06em 0 0 0.04em;
}

body.is-loading .brand {
  opacity: 0;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out),
    background-color 0.3s;
}

.cursor-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor.is-hover {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: transparent;
  border: 1.5px solid var(--accent);
}

.cursor.is-view {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--accent);
  border: 0;
}

.cursor.is-view .cursor-label {
  opacity: 1;
}

.cursor.is-drag .cursor-label {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 16px var(--gutter);
  color: var(--ink);
  pointer-events: none; /* only the pill itself is clickable */
}

/* one centred pill: brand, links, contact button */
.nav-pill {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  padding: 8px 8px 8px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  pointer-events: auto;
}

.brand {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
}

.brand sup {
  font-family: var(--body);
  font-size: 10px;
  vertical-align: top;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  font-size: 16px;
  font-weight: 500;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.nav-cta span {
  font-size: 13px;
  transition: transform 0.4s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
}

.nav-cta:hover span {
  transform: translate(2px, -2px);
}

.site-nav a {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.menu-toggle-lines {
  display: grid;
  gap: 5px;
  width: 22px;
}

.menu-toggle-lines i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.menu-open .menu-toggle-lines i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-open .menu-toggle-lines i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* full screen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--pink);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.menu-links {
  display: flex;
  flex-direction: column;
}

.menu-links a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--display);
  font-size: clamp(56px, 15vw, 120px);
  line-height: 0.95;
  text-transform: uppercase;
  overflow: hidden;
}

.menu-links a span {
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 0.8em;
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 96px var(--gutter) 0;
  overflow: hidden;
}

.hero-meta {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
}

.hero-meta-center {
  text-align: center;
}

/* Cambodian flag (blue / red / blue with a simplified Angkor Wat), drawn inline so it
   renders on Windows, where flag emoji don't */
.kh-flag,
.us-flag {
  display: inline-block;
  width: 21px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  border-radius: 2px;
  outline: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23032EA1'/%3E%3Crect y='5' width='30' height='10' fill='%23E00025'/%3E%3Cpath fill='%23fff' d='M8.5 13.4h13v1.1h-13zM9.6 12.4h10.8v1H9.6zM10.4 12.4V11h1.1l.5-1.6.5 1.6h.9l.6-2.1.6 2.1h.6l.8-3.4.8 3.4h.6l.6-2.1.6 2.1h.9l.5-1.6.5 1.6h1.1v1.4z'/%3E%3C/svg%3E")
    center / cover;
}

.us-flag {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23B22234'/%3E%3Crect y='1.538' width='30' height='1.538' fill='%23fff'/%3E%3Crect y='4.615' width='30' height='1.538' fill='%23fff'/%3E%3Crect y='7.692' width='30' height='1.538' fill='%23fff'/%3E%3Crect y='10.769' width='30' height='1.538' fill='%23fff'/%3E%3Crect y='13.846' width='30' height='1.538' fill='%23fff'/%3E%3Crect y='16.923' width='30' height='1.538' fill='%23fff'/%3E%3Crect width='12' height='10.77' fill='%233C3B6E'/%3E%3Ccircle cx='1.4' cy='1.4' r='.45' fill='%23fff'/%3E%3Ccircle cx='3.7' cy='1.4' r='.45' fill='%23fff'/%3E%3Ccircle cx='6' cy='1.4' r='.45' fill='%23fff'/%3E%3Ccircle cx='8.3' cy='1.4' r='.45' fill='%23fff'/%3E%3Ccircle cx='10.6' cy='1.4' r='.45' fill='%23fff'/%3E%3Ccircle cx='2.55' cy='3.95' r='.45' fill='%23fff'/%3E%3Ccircle cx='4.85' cy='3.95' r='.45' fill='%23fff'/%3E%3Ccircle cx='7.15' cy='3.95' r='.45' fill='%23fff'/%3E%3Ccircle cx='9.45' cy='3.95' r='.45' fill='%23fff'/%3E%3Ccircle cx='1.4' cy='6.5' r='.45' fill='%23fff'/%3E%3Ccircle cx='3.7' cy='6.5' r='.45' fill='%23fff'/%3E%3Ccircle cx='6' cy='6.5' r='.45' fill='%23fff'/%3E%3Ccircle cx='8.3' cy='6.5' r='.45' fill='%23fff'/%3E%3Ccircle cx='10.6' cy='6.5' r='.45' fill='%23fff'/%3E%3Ccircle cx='2.55' cy='9.05' r='.45' fill='%23fff'/%3E%3Ccircle cx='4.85' cy='9.05' r='.45' fill='%23fff'/%3E%3Ccircle cx='7.15' cy='9.05' r='.45' fill='%23fff'/%3E%3Ccircle cx='9.45' cy='9.05' r='.45' fill='%23fff'/%3E%3C/svg%3E");
}

.hero-meta-right {
  text-align: right;
}

/* name column + portrait column, both sitting on the bottom edge */
.hero-main {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 56px);
  align-items: end;
}

/* intro + stats at the top of the column, the name on the bottom edge level with the portrait */
.hero-left {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vh, 64px) 0 var(--gutter);
}

/* rose cursor trail, drawn by script.js over the whole page */
.cursor-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 85;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-title {
  /* CHHORITA is ~3.5em wide in Anton; 14.4vw fills the left column without touching the portrait */
  --name-size: clamp(64px, 13.2vw, 280px);
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--name-size);
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-2 {
  margin-top: 0.02em;
}

.hero-word {
  display: inline-block;
  will-change: transform;
}

.char {
  display: inline-block;
  will-change: transform;
}

.hero-foot {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 64px);
}

.hero-intro {
  max-width: 360px;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.4;
}

.hero-sign {
  display: grid;
  gap: 6px;
  white-space: nowrap;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.hero-sign b {
  font-weight: 500;
  color: var(--accent);
}

/* the portrait: its own element, transparent cutout, flush to the bottom edge */
.hero-portrait {
  justify-self: center;
  width: min(100%, calc(100svh - 100px));
  margin: 0;
  transform-origin: 50% 100%;
}

.portrait-stack {
  position: relative;
  will-change: transform;
}

.portrait-photo {
  display: block;
  width: 100%;
}

.portrait-lens {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--pink);
  color: var(--ink);
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  text-transform: uppercase;
  will-change: transform;
}

.marquee-track b {
  color: var(--accent);
  font-weight: 400;
  font-size: 0.5em;
}

/* ---------- Intro ---------- */
.intro-text {
  margin: 0;
  max-width: 1300px;
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.intro-text .sw {
  opacity: 0.14;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vw, 140px);
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 0 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stat-num {
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  max-width: 200px;
}

/* ---------- Selected work ---------- */
.work {
  position: relative;
  background: var(--paper);
}

.work-pin {
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.work-track {
  --card-h: min(calc(100svh - 250px), 600px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
  padding: 40px var(--gutter) 0;
  will-change: transform;
}

.work-intro {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 480px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-intro-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.86;
  text-transform: uppercase;
}

/* Each card is sized from its poster's real ratio: never cropped, never stretched */
.work-card {
  flex: 0 0 auto;
  width: calc(var(--card-h) * var(--ratio, 0.8));
  cursor: pointer;
  transition: transform 0.7s var(--ease-out);
}

.work-card:hover {
  transform: translateY(-10px);
}

.work-media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: var(--ratio, 0.8);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  align-items: baseline;
}

.work-info h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.work-num {
  color: var(--muted);
  flex: none;
}

.work-client {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Merch & awards ---------- */
.merch-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.merch-head .label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.merch-lede {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 19px);
}

/* mixed-size grid: each piece shown whole on a pink plinth */
.merch-grid {
  --row: clamp(240px, 24vw, 400px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: clamp(12px, 1.4vw, 20px);
}

.merch-item {
  grid-column: span var(--span, 4);
  margin: 0;
  cursor: pointer;
}

.merch-item.is-tall {
  grid-row: span 2;
}

.merch-media {
  height: var(--row);
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: clamp(16px, 2vw, 32px);
  background: var(--pink);
  border-radius: 10px;
  overflow: hidden;
}

/* a tall item spans two rows plus the caption and gap of the row it skips */
.merch-item.is-tall .merch-media {
  height: calc(var(--row) * 2 + 64px);
}

/* the image fills the padded box and is fitted inside it, so the space above and below is
   always equal and nothing spills past the bottom edge */
.merch-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transition: transform 0.9s var(--ease-out);
}

.merch-item:hover .merch-media img {
  transform: scale(1.04) rotate(-1deg);
}

.merch-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.merch-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.merch-item figcaption .mono {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 767px) {
  .merch-head {
    grid-template-columns: 1fr;
  }

  .merch-grid {
    --row: 56vw;
    grid-template-columns: 1fr;
  }

  .merch-item,
  .merch-item.is-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .merch-item.is-tall .merch-media {
    height: 110vw;
  }
}

/* ---------- Medal ---------- */
.medal {
  position: relative;
  background: var(--pink);
  color: var(--ink);
  height: 260vh;
}

.medal-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.4fr;
  align-items: center;
  overflow: hidden;
}

.medal-copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
}

.medal .label {
  color: rgba(29, 26, 27, 0.6);
}

.medal .section-title {
  font-size: clamp(56px, 8vw, 140px);
}

.medal-desc {
  max-width: 380px;
  margin: 28px 0 32px;
  color: rgba(29, 26, 27, 0.75);
}

.tiers {
  display: inline-flex;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.tier {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background-color 0.35s, color 0.35s;
}

.tier:hover {
  background: rgba(29, 26, 27, 0.06);
}

.tier.is-active {
  background: var(--ink);
  color: var(--paper);
}

.medal-stage {
  position: relative;
  height: 100%;
  touch-action: pan-y;
}

.medal-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.medal-canvas:active {
  cursor: grabbing;
}

.medal-drag {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(29, 26, 27, 0.55);
  white-space: nowrap;
}

.medal-index {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: rgba(29, 26, 27, 0.5);
  pointer-events: none;
}

.medal-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ---------- Archive ---------- */
.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 96px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.filter sup {
  font-size: 9px;
  margin-left: 2px;
}

.filter:hover {
  border-color: var(--ink);
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.grid {
  columns: 4 260px;
  column-gap: clamp(12px, 1.4vw, 24px);
}

.tile {
  break-inside: avoid;
  margin: 0 0 clamp(28px, 3vw, 48px);
  cursor: pointer;
}

.tile.is-hidden {
  display: none;
}

.tile-media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.tile:hover .tile-media img {
  transform: scale(1.04);
}

.tile-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.tile-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tile-cat {
  color: var(--muted);
  flex: none;
  text-align: right;
}

/* ---------- Leadership ---------- */
.lead {
  background: var(--paper);
}

.lead .section-title {
  margin-bottom: clamp(40px, 5vw, 80px);
}

.lead-list {
  border-top: 1px solid var(--ink);
}

.lead-item {
  border-bottom: 1px solid var(--ink);
}

.lead-row {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr auto 40px;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: clamp(20px, 2.4vw, 34px) 0;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.lead-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}

.lead-row:hover::before,
.lead-item.is-open .lead-row::before {
  transform: scaleY(1);
  transform-origin: top;
}

.lead-row:hover,
.lead-item.is-open .lead-row {
  color: var(--ink);
}

.lead-row {
  transition: color 0.4s, padding 0.5s var(--ease);
}

.lead-row:hover {
  padding-left: 16px;
}

.lead-short {
  font-family: var(--mono);
  font-size: 12px;
}

.lead-name {
  font-family: var(--display);
  font-size: clamp(28px, 4.4vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
}

.lead-role {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  text-align: right;
}

.lead-icon {
  justify-self: end;
  margin-right: 12px;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.5s var(--ease);
}

.lead-item.is-open .lead-icon {
  transform: rotate(45deg);
}

.lead-body {
  height: 0;
  overflow: hidden;
}

.lead-body-inner {
  display: grid;
  grid-template-columns: 130px minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0 40px;
}

.lead-tag {
  color: var(--muted);
}

.lead-body-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 720px;
}

.lead-body-inner li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.4;
}

.lead-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
  max-width: 720px;
}

.lead-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
}

/* round social buttons: outline at rest, fill rose on hover */
.lead-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}

.social svg {
  width: 20px;
  height: 20px;
}

.social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateY(-3px);
}

.lead-body-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* short-form badge next to organisation / competition names */
.abbr {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25em;
  padding: 0.18em 0.55em 0.12em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-style: normal;
  font-size: max(11px, 0.24em);
  line-height: 1.2;
  letter-spacing: 0.04em;
  transform: translateY(-0.15em);
}

/* ---------- Achievements ---------- */
.awards .section-title {
  margin-bottom: clamp(40px, 5vw, 80px);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.award {
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
  padding: clamp(24px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s;
}

.award:hover {
  background: var(--pink);
}

.award-photo {
  margin: calc(clamp(24px, 2.4vw, 36px) * -1) calc(clamp(24px, 2.4vw, 36px) * -1) 0;
  overflow: hidden;
  cursor: pointer;
}

.award-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.award:hover .award-photo img {
  transform: scale(1.04);
}

.award-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

/* every logo sits in the same white tile so different shapes read as one set */
.award-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(72px, 6vw, 96px);
  aspect-ratio: 1;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.award-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lead-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.award-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.award-big span {
  font-family: var(--display);
  font-size: clamp(72px, 7vw, 120px);
  line-height: 0.9;
  color: var(--accent);
}

.award-big small {
  color: var(--muted);
}

.award-body h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.award-body .abbr {
  font-size: 11px;
}

.award-body p {
  margin: 0 0 18px;
  color: var(--ink-2);
}

/* ---------- YMO photos ---------- */
.ymo-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(32px, 6vw, 120px);
  align-items: end;
}

/* Follow YMO: stacked rows that fill rose on hover */
.follow-list {
  border-top: 1px solid var(--ink);
}

.follow-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s, color 0.35s, padding 0.45s var(--ease);
}

.follow-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background-color 0.35s, border-color 0.35s;
}

.follow-icon svg {
  width: 22px;
  height: 22px;
}

.follow-text {
  display: grid;
  gap: 2px;
}

.follow-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.follow-text .mono {
  color: var(--muted);
  transition: color 0.35s;
}

.follow-arrow {
  font-size: 20px;
  transition: transform 0.4s var(--ease);
}

.follow-item:hover {
  background: var(--accent);
  color: var(--paper);
  padding-left: 20px;
}

.follow-item:hover .follow-icon {
  border-color: var(--paper);
}

.follow-item:hover .follow-text .mono {
  color: var(--paper);
}

.follow-item:hover .follow-arrow {
  transform: translate(3px, -3px);
}

/* full-bleed photo across the section; the image eases from zoomed-in to rest on scroll */
.ymo-banner {
  margin: clamp(56px, 7vw, 110px) calc(var(--gutter) * -1) 0;
  cursor: pointer;
}

.ymo-banner-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 92svh;
  width: 100%;
}

.ymo-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  will-change: transform;
}

.ymo-banner figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter) 0;
  color: var(--muted);
}

.ymo-img figcaption {
  margin-top: 10px;
  color: var(--muted);
}
.ymo-img[data-photo] {
  cursor: pointer;
}

.ymo-wall {
  margin: clamp(80px, 10vw, 160px) calc(var(--gutter) * -1) 0;
  overflow: hidden;
}

.ymo-wall-label {
  padding: 0 var(--gutter);
}

.wall-row {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}

.wall-row {
  cursor: grab;
  touch-action: pan-y; /* vertical swipes still scroll the page; sideways swipes drag the row */
  user-select: none;
}

.wall-row.is-dragging {
  cursor: grabbing;
}

.wall-row.is-dragging .wall-item {
  pointer-events: none;
}

.wall-row + .wall-row {
  margin-top: 14px;
}

.wall-item {
  position: relative;
  flex: none;
  height: clamp(180px, 22vw, 320px);
  margin: 0;
  overflow: hidden;
  cursor: pointer;
}

.wall-item img {
  height: 100%;
  width: auto;
  transition: transform 0.9s var(--ease-out);
}

.wall-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: var(--paper);
  border-radius: 999px;
  font-size: 11px;
  transform: translateY(calc(100% + 14px));
  transition: transform 0.5s var(--ease);
}

.wall-item:hover img {
  transform: scale(1.05);
}

.wall-item:hover figcaption {
  transform: none;
}

/* ---------- YMO spotlight ---------- */
.ymo-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.ymo-logo {
  width: clamp(110px, 11vw, 170px);
  height: auto;
}

.ymo-abbr {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.ymo {
  background: var(--pink);
  color: var(--ink);
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  overflow: hidden;
}

.ymo .label {
  color: rgba(29, 26, 27, 0.6);
}

.ymo-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  /* sized so "ORGANIZATION" fits the left column beside the feature photo */
  font-size: clamp(44px, 8.2vw, 170px);
  line-height: 0.86;
  text-transform: uppercase;
}

.ymo-lede {
  max-width: 560px;
  margin: clamp(28px, 3vw, 44px) 0 20px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: rgba(29, 26, 27, 0.8);
}

.ymo-link {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.ymo-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.ymo-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: clamp(16px, 3vw, 56px);
  align-items: center;
  margin-top: clamp(72px, 9vw, 140px);
}

.ymo-img {
  margin: 0;
}

.ymo-img img {
  width: 100%;
}

.ymo-col {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
}

/* the original map is a tall poster: shown smaller so both columns end at a similar height */
.ymo-img-c {
  width: 86%;
  justify-self: center;
}

.ymo-img-b {
  margin-top: 30%;
}

.ymo-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.fact {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}

.fact-num {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 84px);
  line-height: 1;
  color: var(--accent);
}

.fact p {
  margin: 0;
  color: rgba(29, 26, 27, 0.78);
}

/* ---------- Creator ---------- */
.creator {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 120px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.creator-big {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  font-family: var(--display);
  font-size: clamp(96px, 13vw, 240px);
  line-height: 0.8;
  white-space: nowrap;
}

.creator-big small {
  color: var(--muted);
  white-space: normal;
  max-width: 120px;
}

.creator-num {
  display: inline-block;
  color: var(--accent);
}

/* ---------- Featured TikTok video ---------- */
.video-feature {
  display: grid;
  justify-items: center;
  gap: 14px;
}

/* phone-shaped card: cover + play button until clicked, then the TikTok player */
.video-card {
  position: relative;
  width: clamp(250px, 24vw, 340px);
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 34px;
  background: var(--ink);
  cursor: pointer;
  transform: rotate(2deg);
  transition: transform 0.6s var(--ease-out);
}

.video-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.video-card.is-playing {
  transform: none;
  cursor: auto;
}

.video-cover,
.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.4s var(--ease-out);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--paper);
  transform: translate(-50%, -50%);
}

.video-card:hover .video-play {
  transform: scale(1.1);
}

.video-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.video-meta .mono {
  color: var(--accent);
  font-size: 11px;
}

.video-title {
  font-family: "Noto Sans Khmer", var(--body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.video-sub {
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}

.video-link {
  color: var(--muted);
}

.video-link:hover {
  color: var(--accent);
}

.creator-copy p {
  max-width: 480px;
  margin: 28px 0 28px;
  font-size: clamp(17px, 1.4vw, 20px);
}

/* ---------- Design intro ---------- */
.design-intro {
  background: var(--pink);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.design-lede {
  max-width: 760px;
  margin: 32px 0 0;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.design-intro + .work,
.design-intro + .work .work-pin {
  background: var(--pink);
}

/* ---------- Education ---------- */
.edu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.edu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.edu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.edu-list li .mono {
  font-weight: 400;
  color: var(--muted);
  text-align: right;
}

.edu-skills-label {
  margin-top: 48px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--pink);
  color: var(--ink);
  padding: clamp(96px, 14vw, 200px) var(--gutter) clamp(64px, 8vw, 120px);
}

.contact .label {
  color: var(--ink);
  opacity: 0.6;
}

.contact-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 13.5vw, 250px);
  line-height: 0.85;
  text-transform: uppercase;
}

.contact-mail {
  display: inline-flex;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 72px);
  font-size: clamp(22px, 3.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  word-break: break-all;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

.contact-row a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px var(--gutter);
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  visibility: hidden;
  clip-path: inset(100% 0 0 0);
}

.lb-figure {
  margin: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 72px 0 32px;
  min-width: 0;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100svh - 170px);
  object-fit: contain;
}

.lb-cap {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.lb-title {
  font-weight: 600;
}

.lb-meta {
  color: rgba(29, 26, 27, 0.6);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
}

.lb-prev,
.lb-next {
  font-size: 28px;
  height: 100%;
  width: 100%;
}

.lb-prev:hover,
.lb-next:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-pill {
    gap: 12px;
    padding: 6px 6px 6px 20px;
  }

  .nav-cta {
    padding: 10px 16px;
    font-size: 15px;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .hero-meta-right {
    display: none;
  }

  .hero-meta-center {
    text-align: right;
  }

  /* stack: name, intro, then the portrait underneath */
  .hero-main {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
    padding-top: 48px;
  }

  .hero-title {
    --name-size: clamp(64px, 22vw, 200px);
  }

  .hero-left {
    padding-bottom: 24px;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-sign {
    grid-auto-flow: column;
    gap: 16px;
    font-size: 11px;
    padding-left: 0;
    border-left: 0;
  }

  /* on phones the name leads, intro follows */
  .hero-left {
    justify-content: flex-start;
    gap: 24px;
    padding-top: 0;
  }

  .hero-title {
    order: -1;
  }

  .hero-portrait {
    width: min(86vw, 52svh);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    margin-top: 24px;
  }

  .medal {
    height: auto;
  }

  .medal-sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    padding: 96px 0 72px;
  }

  .medal-stage {
    height: 70svh;
    min-height: 420px;
  }

  .medal-index {
    display: none;
  }

  .lead-row {
    grid-template-columns: 1fr 32px;
    gap: 6px;
  }

  .lead-short {
    grid-column: 1;
    grid-row: 1;
  }

  .lead-name {
    grid-column: 1;
    grid-row: 2;
  }

  .lead-role {
    grid-column: 1;
    grid-row: 3;
    text-align: left;
  }

  .lead-icon {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .lead-body-inner {
    grid-template-columns: 1fr;
  }

  .lead-body-inner > .lead-tag {
    display: none;
  }

  .ymo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ymo-top {
    grid-template-columns: 1fr;
  }

  .ymo-title {
    font-size: clamp(44px, 13vw, 120px);
  }

  .ymo-banner-media {
    aspect-ratio: 4 / 3;
  }

  /* no hover on touch: captions stay visible */
  .wall-item figcaption {
    transform: none;
  }

  .ymo-facts {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ymo-img-b {
    margin-top: 0;
  }

  .creator,
  .edu {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .work-pin {
    height: auto;
    display: block;
    padding: 0 0 72px;
  }

  .work-track {
    --card-h: 62svh;
    flex-wrap: nowrap;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .work-intro {
    width: 60vw;
  }

  .fact {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .edu-list li {
    flex-direction: column;
    gap: 4px;
  }

  .edu-list li .mono {
    text-align: left;
  }

  .work-track::-webkit-scrollbar {
    display: none;
  }

  .work-card {
    width: min(82vw, calc(var(--card-h) * var(--ratio, 0.8)));
    scroll-snap-align: start;
  }

  .lightbox {
    grid-template-columns: 44px 1fr 44px;
  }

  .grid {
    columns: 2 140px;
  }

  .tile-info {
    flex-direction: column;
    gap: 2px;
  }

  .tile-cat {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
