/* =========================================================
   EDITORIAL POP THEME
   Cream paper · deep ink · playful stickers · magazine grids
   ========================================================= */

:root {
  --ink: #353148;
  --paper: #f0ece0;
  --surface: #f5f5f5;
  --pink: #ee4d87;
  --muted: #9b9b9b;
  --lavender: #b8b5c6;
  --butter: #f5d06e;
  --line: rgba(53, 49, 72, 0.18);
  --line-strong: rgba(53, 49, 72, 0.4);
  --font-display: "Arial Rounded MT Bold", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --rail-width: 104px;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  background:
    radial-gradient(circle at 86% 5%, rgba(245, 208, 110, 0.27), transparent 22%),
    radial-gradient(circle at 13% 72%, rgba(184, 181, 198, 0.18), transparent 25%),
    var(--paper);
  color: var(--ink);
}

body::after {
  opacity: 0.28;
  mix-blend-mode: multiply;
}

main {
  margin-left: var(--rail-width);
}

::selection {
  background: var(--pink);
  color: #fff;
}

/* Shared maximum width and magazine rhythm */
.home-hero,
.page-intro,
.works-archive,
.inner-footer,
.about-hero,
.about-facts,
.content-section,
.contact-panel,
.about-footer {
  width: min(1400px, calc(100% - 40px));
  max-width: 1400px;
  margin-right: auto;
  margin-left: auto;
}

.page-intro,
.about-hero,
.content-section {
  border-color: var(--line-strong);
}

/* =========================================================
   Navigation
   ========================================================= */

.side-rail {
  width: var(--rail-width);
  border-right: 1px solid var(--line);
  background: rgba(240, 236, 224, 0.95);
  padding: 22px 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-lockup {
  gap: 9px;
}

.brand-lockup__mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  transform: rotate(-6deg);
}

.brand-lockup__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.brand-lockup__name small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 6px;
  font-weight: 500;
}

.rail-nav__line {
  background: var(--line-strong);
}

.rail-nav__line i {
  display: none;
}

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

.rail-link::before {
  width: 8px;
  height: 8px;
  background: var(--pink);
}

.rail-link:hover,
.rail-link.is-active {
  color: var(--ink);
}

.rail-link__copy strong {
  font-weight: 650;
}

.rail-link__copy small {
  color: var(--muted);
}

.rail-mail {
  border: 1.5px solid var(--ink);
  background: var(--butter);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.rail-mail:hover {
  background: var(--pink);
  color: #fff;
}

.utility-bar {
  top: 20px;
  right: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(245, 245, 245, 0.92);
  color: var(--ink);
  box-shadow: none;
}

.availability i {
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(238, 77, 135, 0.12);
}

.language-switch button {
  color: var(--muted);
}

.language-switch button.is-active {
  color: var(--pink);
}

.language-switch {
  border-color: var(--line);
}

/* =========================================================
   Type & controls
   ========================================================= */

.display-name__primary,
.page-title,
.hero-statement,
.role-primary,
.section-heading h2,
.capability-card h3,
.timeline-item__main h3,
.education-card h3,
.about-statement,
.contact-panel__main h2,
.featured-detail__title h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}

.eyebrow,
.role-secondary,
.page-title small,
.section-heading small,
.capability-card small,
.carousel-kicker,
.carousel-subtitle,
.featured-detail__title > p,
.featured-detail__title > span,
.work-card__title p,
.work-card__meta,
.timeline-item__date,
.education-card__date,
.toolkit-list dt,
.about-footer {
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.page-title {
  gap: 16px 26px;
  margin-top: 34px;
  font-size: clamp(78px, 9.6vw, 154px);
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.page-title small {
  margin-bottom: 11px;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.page-lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.page-note {
  color: var(--muted);
}

.page-note b {
  color: var(--pink);
  font-family: var(--font-display);
  font-weight: 800;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 100px;
  font-weight: 650;
}

.button--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button--dark:hover {
  border-color: var(--pink);
  background: var(--pink);
}

.button--ghost {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.button--ghost:hover {
  background: var(--butter);
}

.button--light {
  background: var(--pink);
  color: #fff;
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.circle-button {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.circle-button:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.text-button {
  color: var(--pink);
  font-weight: 650;
}

/* =========================================================
   Home
   ========================================================= */

.home-hero {
  position: relative;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.25fr);
  gap: 22px 34px;
  padding: 94px 10px 26px 20px;
  overflow: visible;
}

.home-copy {
  position: relative;
  z-index: 6;
}

.home-copy::before {
  position: absolute;
  top: 38px;
  right: 10px;
  width: 92px;
  height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  background: var(--butter);
  content: "";
  transform: rotate(4deg);
}

.editorial-stamp {
  position: absolute;
  z-index: 8;
  top: 43px;
  right: 21px;
  color: var(--ink);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(4deg);
}

.intro-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(28px, 5.2vh, 62px);
  color: var(--muted);
}

.intro-line::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.display-name__primary {
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.95;
  white-space: nowrap;
}

.display-name__secondary {
  margin-top: 14px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.role-primary {
  margin-top: 26px;
  font-size: clamp(21px, 1.8vw, 29px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.role-secondary {
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.hero-statement {
  max-width: 530px;
  margin-top: clamp(27px, 4.4vh, 48px);
  font-size: clamp(24px, 2.15vw, 34px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.38;
}

.hero-actions {
  margin-top: 27px;
}

.hero-facts {
  display: grid;
  max-width: 510px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(28px, 4.4vh, 48px);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.hero-facts > div {
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.hero-facts > div:first-child {
  padding-left: 0;
}

.hero-facts > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-facts dt {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-facts dd {
  color: var(--muted);
  font-size: 8px;
}

.hero-facts > div:nth-child(1) dt::after,
.hero-facts > div:nth-child(2) dt::after,
.hero-facts > div:nth-child(3) dt::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  content: "";
  vertical-align: 4px;
}

.hero-facts > div:nth-child(1) dt::after { background: var(--pink); }
.hero-facts > div:nth-child(2) dt::after { background: var(--butter); }
.hero-facts > div:nth-child(3) dt::after { background: var(--lavender); }

/* Sticker system */
.sticker {
  position: absolute;
  z-index: 7;
  overflow: visible;
  pointer-events: none;
  transform: translate3d(0, var(--parallax-shift, 0px), 0) rotate(var(--sticker-rotate, 0deg));
  transform-origin: 50% 50%;
}

.sticker__bob,
.sticker__twinkle {
  transform-origin: center;
}

.sticker--flower {
  --sticker-rotate: 8deg;
  top: 148px;
  right: 8px;
  width: clamp(74px, 7.2vw, 114px);
}

.sticker--flower .sticker__bob {
  animation: sticker-bob 5.4s ease-in-out infinite alternate;
}

.sticker--spark {
  --sticker-rotate: -9deg;
  right: 32px;
  bottom: 82px;
  width: clamp(34px, 3.1vw, 48px);
}

.sticker--spark .sticker__twinkle {
  animation: sticker-twinkle 4.8s ease-in-out infinite;
}

@keyframes sticker-bob {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(-7px) rotate(2deg); }
}

@keyframes sticker-twinkle {
  0%, 100% { transform: scale(0.95) rotate(0deg); }
  45% { transform: scale(1.08) rotate(8deg); }
  70% { transform: scale(1) rotate(-5deg); }
}

/* Ambient blobs become flat printed shapes */
.ambient-orb {
  filter: blur(34px);
  opacity: 0.28;
}

.ambient-orb::before {
  background: conic-gradient(from 25deg, rgba(238, 77, 135, 0.34), rgba(184, 181, 198, 0.4), rgba(245, 208, 110, 0.34), rgba(238, 77, 135, 0.34));
}

.ambient-orb--one {
  top: 7%;
  right: 1%;
  width: 45vw;
  height: 45vw;
  opacity: 0.34;
}

.ambient-orb--two {
  bottom: 2%;
  left: 27%;
  width: 25vw;
  height: 25vw;
  opacity: 0.18;
}

.hero-grid {
  opacity: 0.12;
  background-image:
    linear-gradient(to right, rgba(53, 49, 72, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 49, 72, 0.08) 1px, transparent 1px);
  background-size: 12.5% 100%, 100% 25%;
}

/* Featured carousel */
.carousel-topline {
  margin-bottom: 16px;
}

.carousel-kicker {
  color: var(--ink);
  font-weight: 750;
}

.carousel-count b {
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
}

.carousel-count i {
  color: var(--muted);
}

.film-stage {
  height: clamp(345px, 52vh, 600px);
}

.film-stage__halo {
  display: none;
}

.film-card {
  width: min(56vw, 880px, calc(100% - 28px));
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--surface);
  transition:
    transform 580ms var(--ease-snap),
    opacity 420ms ease,
    filter 420ms ease;
}

.film-card::after {
  background: linear-gradient(to top, rgba(53, 49, 72, 0.52), transparent 34%);
}

.film-card.is-active {
  box-shadow: 12px 12px 0 var(--pink);
}

.film-card.is-prev {
  opacity: 0.2;
  filter: none;
  box-shadow: none;
  transform: translate(calc(-138% + var(--drag)), -50%) scale(0.72) rotate(-4deg);
}

.film-card.is-next {
  opacity: 0.2;
  filter: none;
  box-shadow: none;
  transform: translate(calc(38% + var(--drag)), -50%) scale(0.72) rotate(4deg);
}

.film-card__top {
  top: 14px;
  right: 14px;
  left: 14px;
}

.film-card__badge {
  padding: 7px 12px;
  border: 1.5px solid var(--ink);
  background: var(--butter);
  color: var(--ink);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.drag-cue {
  color: var(--muted);
}

.drag-cue i {
  background: var(--pink);
}

.featured-detail {
  min-height: 84px;
  padding: 14px 4px 0;
}

.featured-detail__title > p {
  color: var(--muted);
}

.featured-detail__title h2 {
  font-size: clamp(25px, 2.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.featured-detail__title > span {
  color: var(--muted);
}

.featured-detail__meta {
  color: var(--ink);
}

.featured-detail__meta span + span {
  color: var(--pink);
  font-weight: 650;
}

.carousel-progress {
  height: 2px;
  background: var(--line);
}

.carousel-progress i {
  background: var(--pink);
}

.home-footerline {
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}

/* =========================================================
   Works page
   ========================================================= */

.works-intro {
  position: relative;
  padding: 122px 20px 62px;
  overflow: visible;
}

.works-intro .page-title {
  max-width: 900px;
}

.paper-sticker {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  pointer-events: none;
  transform: translate3d(0, var(--parallax-shift, 0px), 0) rotate(var(--paper-sticker-rotate, 0deg));
}

.paper-sticker--works {
  --paper-sticker-rotate: 4deg;
  top: 112px;
  right: 7%;
  padding: 16px 19px 14px;
  background: var(--butter);
}

.paper-sticker--works span {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.86;
}

.paper-sticker--works small {
  color: var(--ink);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
}

.page-intro__bottom {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
}

.works-archive {
  padding: 38px 20px 90px;
}

.works-toolbar {
  top: 12px;
  margin: 0 0 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(245, 245, 245, 0.92);
}

.filter-list {
  gap: 4px;
}

.filter-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--ink);
  font-weight: 600;
}

.filter-button span {
  color: var(--muted);
}

.filter-button:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.filter-button.is-active {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.filter-button.is-active span {
  color: rgba(255, 255, 255, 0.72);
}

.works-grid {
  gap: 40px 22px;
}

.work-card {
  transition: transform 340ms var(--ease-out);
}

.work-card__media {
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: none;
  transition: transform 380ms var(--ease-out);
}

.work-card:hover .work-card__media,
.work-card:focus-visible .work-card__media {
  transform: translateY(-5px) rotate(-0.35deg);
}

.work-card__media::after {
  opacity: 0.42;
}

.work-card__top {
  top: 14px;
  right: 14px;
  left: 14px;
  color: rgba(255, 255, 255, 0.94);
}

.work-card__ai {
  border: 0;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
}

.work-card__hover {
  right: 18px;
  bottom: 16px;
  left: 18px;
}

.work-card__hover p {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.65;
}

.work-card__hover span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 100px;
  background: rgba(53, 49, 72, 0.35);
}

.work-card__info {
  padding: 14px 4px 0;
}

.work-card__title h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.45vw, 23px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.work-card__title p {
  font-size: 8px;
}

.work-card__meta {
  color: var(--muted);
}

.inner-footer {
  padding: 52px 20px 42px;
}

.inner-footer p {
  font-family: var(--font-display);
  font-size: clamp(27px, 2.8vw, 40px);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.footer-link span:last-child {
  border: 1.5px solid var(--ink);
}

.footer-link:hover span:last-child {
  background: var(--pink);
}

/* =========================================================
   About page
   ========================================================= */

.about-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.7fr);
  gap: clamp(46px, 7vw, 112px);
  padding: 126px 20px 92px;
  overflow: visible;
}

.about-hero__copy {
  position: relative;
}

.page-title--about {
  font-size: clamp(78px, 9.8vw, 156px);
}

.about-role {
  display: inline-flex;
  align-items: center;
  margin-top: 36px;
  padding: 7px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  background: var(--butter);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.about-statement {
  max-width: 720px;
  margin-top: 22px;
  font-size: clamp(36px, 4.2vw, 65px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.12;
}

.about-bio {
  color: rgba(53, 49, 72, 0.7);
  font-size: 10px;
  line-height: 1.95;
}

.about-actions {
  margin-top: 30px;
}

.sticker--character {
  --sticker-rotate: 6deg;
  top: 185px;
  right: 0;
  width: clamp(82px, 8vw, 126px);
}

.sticker--character .sticker__bob {
  animation: character-bob 6.2s ease-in-out infinite alternate;
}

@keyframes character-bob {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-8px) rotate(2deg); }
}

.portrait-card {
  max-width: 500px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 11px 11px 0 var(--lavender);
  transform: rotate(1.2deg);
}

.portrait-card__image {
  aspect-ratio: 3 / 4;
  border-radius: 21px;
}

.portrait-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portrait-card figcaption {
  color: var(--muted);
  font-size: 6px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 20px 48px;
  border-bottom: 0;
}

.about-facts article {
  min-height: 175px;
  padding: 25px;
  border: 1.5px solid var(--ink);
  border-radius: 26px;
}

.about-facts article:first-child {
  background: var(--pink);
  color: #fff;
}

.about-facts article:nth-child(2) {
  background: var(--butter);
  color: var(--ink);
}

.about-facts article:nth-child(3) {
  background: var(--lavender);
  color: var(--ink);
}

.about-facts article:nth-child(4) {
  background: var(--surface);
  color: var(--ink);
}

.about-facts article:not(:last-child) {
  border-right: 1.5px solid var(--ink);
}

.about-facts strong {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.about-facts span {
  color: currentColor;
  opacity: 0.68;
  font-size: 9px;
}

.content-section {
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 34px;
  padding: 104px 20px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 0;
}

.section-label {
  top: 28px;
  color: var(--ink);
  font-weight: 650;
}

.section-label span {
  border: 1.5px solid var(--ink);
  background: var(--surface);
}

.section-heading {
  display: block;
  margin-bottom: 42px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(32px, 4vw, 72px);
}

.section-heading h2 {
  font-size: clamp(42px, 4.7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.065em;
}

.section-heading small {
  padding-bottom: 8px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
}

.capability-grid {
  gap: 14px;
}

.capability-card {
  min-height: 245px;
  border: 1.5px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: none;
}

.capability-card::after {
  right: -12%;
  bottom: -48%;
  width: 65%;
  background: radial-gradient(circle, rgba(238, 77, 135, 0.18), transparent 68%);
}

.capability-card:hover {
  border-color: var(--ink);
  background: var(--butter);
  transform: translateY(-4px) rotate(-0.35deg);
}

.capability-card__index {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 700;
}

.capability-card h3 {
  margin-top: 40px;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.capability-card p {
  color: rgba(53, 49, 72, 0.67);
}

.capability-card small {
  color: rgba(53, 49, 72, 0.5);
  font-weight: 650;
}

.timeline {
  border-top: 1.5px solid var(--ink);
}

.timeline-item {
  border-bottom: 1px solid var(--line-strong);
}

.timeline-item__main h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.timeline-item__role {
  color: var(--pink);
  font-weight: 650;
}

.timeline-item__main > p:last-child {
  color: rgba(53, 49, 72, 0.67);
}

.timeline-item__tags span {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}

.education-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.education-card {
  min-height: 330px;
  padding: 25px;
  border: 1.5px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: none;
}

.education-card--featured {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.education-card--hkbu {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 4px 0 var(--pink);
}

.education-card:nth-child(2) {
  background: var(--butter);
}

.education-card--anu {
  border-color: var(--ink);
  background: var(--lavender);
  color: var(--ink);
}

.education-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.education-card > p,
.education-card li {
  color: rgba(53, 49, 72, 0.67);
}

.education-card--featured > p,
.education-card--featured li {
  color: rgba(255, 255, 255, 0.68);
}

.education-card--featured .education-card__date {
  color: rgba(255, 255, 255, 0.42);
}

.education-card ul {
  border-color: var(--line-strong);
}

.education-card--featured ul {
  border-color: rgba(255, 255, 255, 0.16);
}

.toolkit-list {
  border-top: 1.5px solid var(--ink);
}

.toolkit-list > div {
  border-bottom: 1px solid var(--line-strong);
}

.toolkit-list dt {
  font-weight: 650;
}

.toolkit-list dd {
  color: var(--ink);
}

/* Contact: the main dark editorial panel */
.contact-panel {
  margin-top: 90px;
  margin-bottom: 0;
  padding: clamp(34px, 4vw, 60px);
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: var(--ink);
  box-shadow: none;
}

.contact-panel::before {
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-panel__glow {
  top: -40%;
  right: -5%;
  width: 52%;
  background:
    radial-gradient(circle at 40% 40%, rgba(238, 77, 135, 0.34), transparent 38%),
    radial-gradient(circle at 58% 58%, rgba(245, 208, 110, 0.22), transparent 56%);
  filter: blur(30px);
}

.contact-panel__main {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(30px, 4vw, 54px);
}

.contact-panel__main h2 {
  color: #fff;
  font-size: clamp(52px, 6.3vw, 94px);
  font-weight: 800;
  letter-spacing: -0.075em;
}

.contact-panel__main h2 span:first-child {
  color: var(--pink);
}

.contact-panel__main p {
  color: rgba(255, 255, 255, 0.58);
}

.contact-email {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.contact-panel .button--light {
  background: var(--pink);
  color: #fff;
}

.contact-panel__meta {
  border-color: rgba(255, 255, 255, 0.15);
}

.contact-panel__meta small {
  color: rgba(255, 255, 255, 0.4);
}

.contact-panel__meta span,
.contact-panel__meta a {
  color: rgba(255, 255, 255, 0.76);
}

.about-footer {
  padding: 30px 20px 34px;
  color: var(--muted);
}

/* =========================================================
   Project viewer: cream magazine spread
   ========================================================= */

.project-dialog {
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.project-dialog::backdrop {
  background: rgba(53, 49, 72, 0.72);
}

.project-viewer__details {
  background: var(--paper);
  color: var(--ink);
}

.project-viewer__topline {
  border-color: var(--line-strong);
}

.project-viewer__topline span {
  color: var(--muted);
}

.dialog-close {
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.dialog-close:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.project-viewer__title h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.065em;
}

.project-viewer__title p {
  color: var(--muted);
}

.project-viewer__summary {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.project-description {
  margin-top: 18px;
  color: rgba(53, 49, 72, 0.72);
  font-size: 10px;
  line-height: 1.8;
}

.project-description summary {
  width: fit-content;
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.project-description p {
  margin-top: 12px;
}

.project-tags,
.project-music {
  margin-top: 20px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(245, 245, 245, 0.66);
}

.project-tags small,
.project-music small {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 6px;
  letter-spacing: 0.14em;
}

.project-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  font-size: 8px;
}

.project-music audio {
  width: 100%;
  height: 34px;
}

.project-meta {
  border-color: var(--line-strong);
}

.project-meta > div {
  border-color: var(--line);
}

.project-meta small {
  color: var(--muted);
}

.project-meta span {
  color: var(--ink);
}

.video-note {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: rgba(53, 49, 72, 0.64);
}

.project-actions .button--light {
  background: var(--pink);
  color: #fff;
}

.project-actions .button--outline-light {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.project-actions .button--outline-light:hover {
  background: var(--butter);
}

.project-navigation {
  border-color: var(--line-strong);
}

.project-navigation button {
  color: var(--ink);
}

.project-navigation button:hover {
  color: var(--pink);
}

.video-state {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(53, 49, 72, 0.9);
  color: rgba(255, 255, 255, 0.74);
}

/* Toast and focus */
.toast {
  border-color: var(--ink);
  background: var(--butter);
  color: var(--ink);
  font-weight: 650;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.skip-link {
  background: var(--pink);
  color: #fff;
}

/* =========================================================
   English typography
   ========================================================= */

html[data-lang="en"] .display-name__primary {
  font-family: var(--font-display);
  letter-spacing: 0.015em;
}

html[data-lang="en"] .hero-statement {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.05vw, 33px);
  font-weight: 650;
  letter-spacing: -0.045em;
}

html[data-lang="en"] .page-title,
html[data-lang="en"] .about-statement,
html[data-lang="en"] .contact-panel__main h2 {
  letter-spacing: -0.075em;
}

html[data-lang="en"] .sticker--flower {
  right: -18px;
  width: clamp(64px, 6vw, 92px);
}

html[data-lang="en"] .project-viewer__title h2 {
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.12;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  :root { --rail-width: 86px; }

  .home-hero,
  .page-intro,
  .works-archive,
  .inner-footer,
  .about-hero,
  .about-facts,
  .content-section,
  .contact-panel,
  .about-footer {
    width: calc(100% - 32px);
  }

  .display-name__primary {
    font-size: clamp(58px, 6.5vw, 88px);
  }

  .paper-sticker--works {
    right: 4%;
  }

  .about-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  }

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

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: 108px 8px 30px;
    overflow: hidden;
  }

  .home-copy {
    max-width: 720px;
    padding-right: 36px;
  }

  .display-name__primary {
    font-size: clamp(58px, 11vw, 92px);
    letter-spacing: 0.01em;
  }

  .hero-statement {
    font-size: clamp(25px, 4vw, 36px);
  }

  .hero-facts {
    max-width: 520px;
  }

  .featured-carousel {
    width: 100%;
  }

  .film-card {
    width: min(76vw, 700px, calc(100% - 28px));
  }

  .film-card.is-prev {
    filter: none;
    box-shadow: none;
    transform: translate(calc(-125% + var(--drag)), -50%) scale(0.72) rotate(-3deg);
  }

  .film-card.is-next {
    filter: none;
    box-shadow: none;
    transform: translate(calc(25% + var(--drag)), -50%) scale(0.72) rotate(3deg);
  }

  .paper-sticker--works {
    position: relative;
    top: auto;
    right: auto;
    width: max-content;
    margin-bottom: 26px;
    padding: 12px 16px;
  }

  .paper-sticker--works span {
    font-size: 40px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    padding: 108px 12px 64px;
  }

  .sticker--character {
    top: 170px;
    right: 0;
    width: 82px;
  }

  .portrait-card {
    width: min(82vw, 480px);
    justify-self: start;
  }

  .about-facts {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 12px 42px;
  }

  .about-facts article {
    min-height: 150px;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 82px 12px;
  }

  .section-label {
    position: relative;
    top: auto;
  }

  .section-heading h2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-heading small {
    padding-bottom: 0;
    text-align: left;
  }

  .contact-panel__main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-viewer {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 53vh) minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  :root { --rail-width: 52px; }

  .home-hero,
  .page-intro,
  .works-archive,
  .inner-footer,
  .about-hero,
  .about-facts,
  .content-section,
  .contact-panel,
  .about-footer {
    width: calc(100% - 24px);
  }

  .side-rail {
    padding: 14px 7px;
  }

  .brand-lockup__mark {
    width: 30px;
    height: 30px;
    border-width: 1.5px;
  }

  .rail-link::before {
    background: var(--pink);
  }

  .utility-bar {
    right: 10px;
    left: calc(var(--rail-width) + 10px);
    border-color: var(--line);
    background: rgba(240, 236, 224, 0.94);
  }

  .home-hero {
    gap: 34px;
    padding: 94px 6px 28px;
  }

  .home-copy {
    padding-right: 24px;
  }

  .home-copy::before {
    top: 23px;
    right: 0;
    width: 74px;
  }

  .editorial-stamp {
    top: 27px;
    right: 9px;
    font-size: 5px;
  }

  .display-name__primary {
    font-size: clamp(50px, 13.5vw, 70px);
    letter-spacing: 0.01em;
  }

  .display-name__secondary {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .role-primary {
    font-size: 21px;
  }

  .role-secondary {
    max-width: 220px;
    line-height: 1.6;
  }

  .hero-statement {
    max-width: 100%;
    padding-right: 10px;
    font-size: 24px;
    line-height: 1.42;
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    min-height: 44px;
    padding: 0 17px;
    font-size: 10px;
  }

  .hero-facts {
    gap: 0;
    padding: 14px 14px;
  }

  .hero-facts > div {
    padding: 0 9px;
  }

  .hero-facts dt {
    font-size: 19px;
  }

  .hero-facts dd {
    font-size: 7px;
    line-height: 1.35;
  }

  .sticker--flower {
    top: 126px;
    right: -2px;
    width: 56px;
  }

  .sticker--spark {
    right: 14px;
    bottom: 82px;
    width: 31px;
  }

  .film-stage {
    height: 55vw;
  }

  .film-card {
    width: min(84vw, calc(100vw - var(--rail-width) - 40px));
    border-width: 1.5px;
    border-radius: 18px;
  }

  .film-card.is-active {
    box-shadow: 6px 6px 0 var(--pink);
  }

  .film-card.is-prev {
    filter: none;
    box-shadow: none;
    transform: translate(calc(-109% + var(--drag)), -50%) scale(0.78) rotate(-2deg);
  }

  .film-card.is-next {
    filter: none;
    box-shadow: none;
    transform: translate(calc(9% + var(--drag)), -50%) scale(0.78) rotate(2deg);
  }

  .featured-detail__title h2 {
    font-size: 25px;
  }

  .page-intro {
    padding: 98px 7px 42px;
  }

  .page-title {
    display: block;
    margin-top: 28px;
    font-size: clamp(59px, 17vw, 84px);
    line-height: 0.9;
  }

  .page-title small {
    display: block;
    margin-top: 14px;
    font-size: 7px;
  }

  .page-intro__bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 38px;
  }

  .page-lead {
    font-size: 23px;
  }

  .works-archive {
    padding: 20px 5px 68px;
  }

  .works-toolbar {
    margin-bottom: 26px;
    padding: 8px 7px;
    border-radius: 22px;
  }

  .filter-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 9px;
  }

  .paper-sticker--works {
    margin-bottom: 20px;
    border-radius: 18px;
    transform: rotate(2deg);
  }

  .works-grid {
    gap: 30px;
  }

  .work-card__media {
    border-width: 1.25px;
    border-radius: 19px;
  }

  .work-card__title h3 {
    font-size: 21px;
  }

  .inner-footer {
    margin: 0 auto;
    padding: 40px 7px;
  }

  .about-hero {
    padding: 98px 8px 58px;
  }

  .page-title--about {
    font-size: clamp(60px, 18vw, 90px);
  }

  .about-role {
    margin-top: 27px;
  }

  .about-statement {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.18;
  }

  .about-bio {
    padding-right: 18px;
  }

  .sticker--character {
    top: 150px;
    right: -4px;
    width: 67px;
  }

  .portrait-card {
    width: 100%;
    padding: 8px;
    border-radius: 23px;
    box-shadow: 7px 7px 0 var(--lavender);
  }

  .portrait-card__image {
    border-radius: 17px;
  }

  .about-facts {
    gap: 8px;
    padding: 0 8px 38px;
  }

  .about-facts article {
    min-height: 135px;
    padding: 18px;
    border-width: 1.25px;
    border-radius: 20px;
  }

  .about-facts strong {
    font-size: 29px;
  }

  .content-section {
    padding: 68px 8px;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .capability-card {
    border-radius: 22px;
  }

  .timeline-item {
    gap: 12px;
  }

  .education-card {
    border-radius: 22px;
  }

  .contact-panel {
    margin-top: 66px;
    padding: 25px 19px 27px;
    border-radius: 24px;
  }

  .contact-panel__main h2 {
    font-size: clamp(43px, 13vw, 66px);
  }

  .contact-email {
    font-size: 20px;
  }

  .about-footer {
    margin: 0 auto;
    padding: 28px 8px 32px;
  }

  .project-dialog {
    border: 0;
    border-radius: 0;
  }

  .project-viewer__details {
    background: var(--paper);
  }

  html[data-lang="en"] .sticker--flower {
    display: none;
  }

  .project-viewer__title h2 {
    font-size: 35px;
  }

  .project-viewer__summary {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticker,
  .sticker__bob,
  .sticker__twinkle,
  .paper-sticker {
    animation: none !important;
    transform: none !important;
  }
}


/* Remove browser-native download affordances where supported. */
video::-internal-media-controls-download-button {
  display: none !important;
}


/* =========================================================
   iOS safe-area and touch refinements
   ========================================================= */

@supports (padding: max(0px)) {
  .side-rail {
    padding-top: max(22px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(15px, env(safe-area-inset-left));
  }

  .utility-bar {
    top: max(20px, env(safe-area-inset-top));
    right: max(22px, env(safe-area-inset-right));
  }

  .home-hero {
    padding-top: max(94px, calc(env(safe-area-inset-top) + 72px));
  }

  .page-intro,
  .about-hero {
    padding-top: max(120px, calc(env(safe-area-inset-top) + 92px));
  }

  .about-footer {
    padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 16px));
  }

  .project-viewer__details {
    padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 20px));
  }
}

@media (max-width: 700px) {
  @supports (padding: max(0px)) {
    .side-rail {
      padding-top: max(14px, env(safe-area-inset-top));
      padding-bottom: max(15px, env(safe-area-inset-bottom));
      padding-left: max(7px, env(safe-area-inset-left));
    }

    .utility-bar {
      top: max(12px, env(safe-area-inset-top));
      right: max(10px, env(safe-area-inset-right));
    }

    .home-hero {
      padding-top: max(92px, calc(env(safe-area-inset-top) + 70px));
    }

    .page-intro,
    .about-hero {
      padding-top: max(96px, calc(env(safe-area-inset-top) + 72px));
    }

    .project-viewer__details {
      padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 20px));
    }
  }
}

button,
a {
  touch-action: manipulation;
}

.project-viewer__details {
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   CMS loading, empty and image-gallery states
   ========================================================= */

.content-state {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.02em;
  text-align: center;
}

.film-track > .content-state {
  position: absolute;
  inset: 0;
}

.works-grid.is-empty {
  display: block;
  width: 100%;
  padding: 80px 0;
  color: var(--muted);
  font-family: var(--font-display);
  text-align: center;
}

.project-gallery {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  background: #050506;
}

.project-gallery__main {
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: contain;
}

.project-gallery__thumbs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  background: #0b0b0d;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.project-gallery__thumb {
  width: 86px;
  height: 52px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111;
  cursor: pointer;
  opacity: 0.56;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.project-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery__thumb.is-active,
.project-gallery__thumb:hover {
  border-color: var(--pink);
  opacity: 1;
}

.project-gallery__caption {
  min-height: 38px;
  margin: 0;
  padding: 10px 16px 12px;
  background: #0b0b0d;
  color: rgba(255, 255, 255, 0.64);
  font-size: 8px;
  line-height: 1.6;
}

.project-gallery__caption:empty {
  display: none;
}

@media (max-width: 700px) {
  .content-state {
    min-height: 160px;
  }

  .project-gallery__thumb {
    width: 70px;
    height: 44px;
  }
}
