:root {
  --paper: #f1efe8;
  --paper-2: #e7e4dc;
  --ink: #11110f;
  --ink-2: #1a1a17;
  --muted: #66665e;
  --line: rgba(17, 17, 15, 0.17);
  --line-light: rgba(241, 239, 232, 0.2);
  --rust: #c34b31;
  --acid: #d8de58;
  --cream: #f8f6ef;
  --display: "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --pad: clamp(20px, 3vw, 52px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

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

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

::selection {
  color: var(--cream);
  background: var(--rust);
}

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

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  gap: 22px;
  color: var(--paper);
  background: var(--ink);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.page-loader__mark {
  font: 700 clamp(72px, 10vw, 140px)/0.8 var(--display);
  letter-spacing: -0.08em;
}

.page-loader__line {
  width: clamp(160px, 20vw, 260px);
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,0.2);
}

.page-loader__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  transform: translateX(-100%);
  animation: loaderLine 1s var(--ease) forwards;
}

body.is-loaded .page-loader {
  opacity: 0;
  visibility: hidden;
}

@keyframes loaderLine {
  to { transform: translateX(0); }
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 900;
  width: 18px;
  height: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.25s ease, width 0.35s var(--ease), height 0.35s var(--ease);
  mix-blend-mode: difference;
}

.cursor__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--paper);
}

.cursor__label {
  position: absolute;
  left: 26px;
  top: 50%;
  color: var(--paper);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-active {
  width: 42px;
  height: 42px;
}

.cursor.is-active .cursor__label {
  opacity: 1;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  color: #fff;
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-family: var(--display);
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  font: 700 13px/1 var(--display);
  letter-spacing: -0.05em;
}

.brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.header-center,
.local-time {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-center {
  opacity: 0.72;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  margin-right: clamp(0px, 8vw, 150px);
}

.site-nav a {
  position: relative;
  font: 700 12px/1 var(--display);
  letter-spacing: 0.08em;
}

.site-nav a::after,
.text-link span::after,
.contact__mail span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right 0.45s var(--ease);
}

.site-nav a:hover::after,
.text-link:hover span::after,
.contact__mail:hover span::after {
  right: 0;
}

.local-time {
  position: absolute;
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.76;
}

.menu-toggle {
  display: none;
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  text-transform: uppercase;
  font: 700 12px/1 var(--display);
  letter-spacing: 0.08em;
}

.menu-toggle i {
  display: block;
  width: 24px;
  height: 1px;
  margin-top: 5px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 100px var(--pad) 40px;
  background: var(--rust);
  color: var(--cream);
  transform: translateY(-101%);
  transition: transform 0.75s var(--ease);
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.24);
  pointer-events: none;
}

.mobile-menu a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: baseline;
  font: 700 clamp(54px, 18vw, 92px)/0.86 var(--display);
  letter-spacing: -0.05em;
}

.mobile-menu a span,
.mobile-menu p {
  font: 600 10px/1.2 var(--mono);
  letter-spacing: 0.12em;
}

.mobile-menu p {
  position: absolute;
  left: var(--pad);
  bottom: 42px;
}

body.menu-open .mobile-menu {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 680px;
  height: 100svh;
  overflow: clip;
  background: var(--paper);
  isolation: isolate;
}

.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,17,15,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,17,15,0.055) 1px, transparent 1px);
  background-size: 25vw 100%, 100% 25vh;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
}

.pointer-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.pointer-plane {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(150px, 15.5vw, 250px);
  height: clamp(205px, 21.2vw, 342px);
  opacity: 0;
  filter: blur(14px);
  transform-origin: center;
  will-change: transform, opacity, filter;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity 0.38s ease, filter 0.5s var(--ease);
}

.pointer-plane.is-visible {
  opacity: 0.94;
  filter: blur(0);
}

.pointer-plane.is-leaving {
  opacity: 0;
  filter: blur(7px);
}

.pointer-plane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(17,17,15,0.12);
  box-shadow: 0 36px 90px rgba(17,17,15,0.24);
  filter: saturate(0.9) contrast(1.06);
}

.hero__eyebrow {
  position: absolute;
  left: var(--pad);
  top: 15vh;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 5px rgba(195,75,49,0.12);
}

.hero__copy {
  position: absolute;
  left: var(--pad);
  bottom: 17vh;
  z-index: 12;
  width: min(390px, 34vw);
  padding-left: 24px;
  border-left: 1px solid var(--ink);
}

.hero__copy p {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.65;
  color: #363631;
}

.hero__coordinates {
  position: absolute;
  left: var(--pad);
  top: 38vh;
  z-index: 12;
  display: grid;
  gap: 5px;
  color: #77776f;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.09em;
  writing-mode: vertical-rl;
}

.hero__name {
  position: absolute;
  right: 2.3vw;
  bottom: 10.4vh;
  z-index: 20;
  width: 79vw;
  margin: 0;
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  pointer-events: none;
}

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

.hero__name-line > span,
.hero__name-line > b {
  display: inline-block;
  transform: translateY(112%);
}

body.is-loaded .hero__name-line > span,
body.is-loaded .hero__name-line > b {
  animation: nameReveal 1.15s var(--ease) forwards;
}

body.is-loaded .hero__name-line--last > span {
  animation-delay: 0.1s;
}

body.is-loaded .hero__name-line--last > b {
  animation-delay: 0.18s;
}

.hero__name-line--first {
  font-size: clamp(104px, 15.4vw, 260px);
  line-height: 0.68;
  letter-spacing: -0.085em;
}

.hero__name-line--last {
  margin-top: 0.015em;
  font-size: clamp(142px, 21.5vw, 360px);
  line-height: 0.62;
  letter-spacing: -0.095em;
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.11vw, 2px) var(--ink);
}

.hero__name-line--last b {
  color: var(--rust);
  -webkit-text-stroke: 0;
}

@keyframes nameReveal {
  to { transform: translateY(0); }
}

.hero__bottom {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 3.2vh;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__scroll,
.hero__index {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
}

.scroll-line {
  width: 64px;
  height: 1px;
  overflow: hidden;
  background: rgba(17,17,15,0.25);
}

.scroll-line i {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--ink);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-110%); }
  50%, 100% { transform: translateX(210%); }
}

.hero__index i {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--ink);
}

.pointer-hint {
  position: absolute;
  left: 54%;
  top: 50%;
  z-index: 26;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.12em;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.pointer-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
}

.pointer-hint__ring {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.pointer-hint__ring::before,
.pointer-hint__ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.pointer-hint__ring::before { width: 10px; height: 1px; }
.pointer-hint__ring::after { width: 1px; height: 10px; }

.reveal-load {
  opacity: 0;
  transform: translateY(18px);
}

body.is-loaded .reveal-load {
  animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}

body.is-loaded .hero__copy.reveal-load { animation-delay: 0.6s; }
body.is-loaded .hero__bottom.reveal-load { animation-delay: 0.78s; }
body.is-loaded .pointer-hint.reveal-load { animation-delay: 1s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
}

.section-kicker--light {
  border-color: var(--line-light);
  color: rgba(241,239,232,0.74);
}

.statement {
  position: relative;
  padding: clamp(112px, 13vw, 210px) var(--pad) 0;
  background: var(--paper);
}

.statement__layout {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: clamp(36px, 5vw, 90px);
  padding: clamp(60px, 7vw, 110px) 0 clamp(90px, 10vw, 150px);
}

.statement__label {
  align-self: end;
  padding-bottom: 14px;
}

.statement__label > p {
  max-width: 28ch;
  margin: 0 0 28px;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.32;
}

.micro-copy {
  display: block;
  font: 600 9px/1.4 var(--mono);
  letter-spacing: 0.11em;
  color: var(--muted);
}

.statement__headline {
  margin: 0;
  font: 700 clamp(68px, 9.5vw, 170px)/0.79 var(--display);
  letter-spacing: -0.065em;
}

.statement__headline em,
.works__heading em,
.resume__heading em,
.contact__title em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.07em;
}

.statement__aside {
  grid-column: 9 / 13;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding-top: 36px;
}

.statement__aside p {
  max-width: 38ch;
  margin: 0;
  color: #4b4b44;
  font-size: 14px;
  line-height: 1.8;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  font: 700 11px/1 var(--display);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.text-link span {
  position: relative;
}

.text-link i {
  font-style: normal;
  font-size: 16px;
}

.ticker {
  overflow: hidden;
  padding: 18px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: ticker 34s linear infinite;
  font: 700 clamp(28px, 3vw, 48px)/1 var(--display);
  letter-spacing: -0.035em;
}

.ticker__track i {
  color: var(--rust);
  font-size: 0.58em;
  font-style: normal;
}

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

.works {
  padding: clamp(110px, 13vw, 200px) var(--pad) clamp(90px, 10vw, 150px);
  color: var(--paper);
  background: var(--ink);
}

.works__heading {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: end;
  gap: 48px;
  padding: clamp(55px, 6vw, 90px) 0 clamp(50px, 5vw, 80px);
}

.works__heading h2,
.resume__heading h2 {
  margin: 0;
  font: 700 clamp(72px, 10.6vw, 185px)/0.76 var(--display);
  letter-spacing: -0.07em;
}

.works__heading p {
  max-width: 36ch;
  margin: 0 0 10px;
  color: rgba(241,239,232,0.58);
  font-size: 14px;
  line-height: 1.75;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: clamp(560px, 52vw, 790px);
  overflow: hidden;
  border: 0;
  padding: 0;
  color: var(--paper);
  background: #20201d;
  text-align: left;
  cursor: none;
}

.work-card--wide { grid-column: span 8; }
.work-card--tall { grid-column: span 4; }
.work-card--rust { background: var(--rust); color: #fff7ed; }
.work-card--dark { background: #080808; }

.work-card__media {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #2a2a26;
}

.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent 44%, rgba(0,0,0,0.16));
  pointer-events: none;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.25s var(--ease), filter 0.8s ease;
}

.work-card__motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease !important;
}

.work-card:hover .work-card__media > img:not(.work-card__motion) {
  transform: scale(1.035);
  filter: saturate(0.85);
}

.work-card:hover .work-card__motion {
  opacity: 1;
}

.work-card__number,
.work-card__action,
.work-card__tag,
.work-card__zh {
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.work-card__number {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 4;
  font-size: 9px;
  opacity: 0.8;
  mix-blend-mode: difference;
}

.work-card__action {
  position: absolute;
  right: 18px;
  top: 15px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
  mix-blend-mode: difference;
}

.work-card__action i {
  font-size: 14px;
  font-style: normal;
}

.work-card:hover .work-card__action {
  opacity: 1;
  transform: translateY(0);
}

.work-card__info {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: end;
  padding: 18px 18px 21px;
}

.work-card__tag {
  grid-column: 1 / -1;
  font-size: 9px;
  opacity: 0.62;
}

.work-card__info strong {
  font: 700 clamp(27px, 2.45vw, 44px)/0.9 var(--display);
  letter-spacing: -0.04em;
}

.work-card__zh {
  justify-self: end;
  max-width: 22ch;
  color: rgba(241,239,232,0.6);
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
}

.work-card--rust .work-card__zh {
  color: rgba(255,247,237,0.72);
}

.more-projects {
  margin-top: clamp(70px, 8vw, 120px);
  border-top: 1px solid var(--line-light);
}

.more-projects__label {
  padding: 18px 0 40px;
  color: rgba(241,239,232,0.5);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
}

.more-projects button {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(220px, 1.4fr) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line-light);
  color: inherit;
  background: none;
  text-align: left;
  cursor: none;
}

.more-projects button:last-child {
  border-bottom: 1px solid var(--line-light);
}

.more-projects button span,
.more-projects button em {
  color: rgba(241,239,232,0.52);
  font: 500 11px/1.3 var(--mono);
  font-style: normal;
}

.more-projects button strong {
  font: 700 clamp(30px, 4vw, 62px)/0.9 var(--display);
  letter-spacing: -0.045em;
  transition: color 0.3s ease, transform 0.5s var(--ease);
}

.more-projects button i {
  font-size: 22px;
  font-style: normal;
  transition: transform 0.5s var(--ease);
}

.more-projects button:hover strong { color: var(--rust); transform: translateX(12px); }
.more-projects button:hover i { transform: translate(5px, -5px); }

.resume {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 13vw, 200px) var(--pad) clamp(90px, 10vw, 150px);
  color: var(--paper);
  background: #151512;
}

.resume__glow {
  position: absolute;
  width: 56vw;
  height: 56vw;
  right: -24vw;
  top: 12vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195,75,49,0.25), rgba(195,75,49,0) 68%);
  pointer-events: none;
}

.resume__heading {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 390px;
  align-items: end;
  gap: 55px;
  padding: clamp(55px, 6vw, 90px) 0 clamp(60px, 7vw, 100px);
}

.resume__heading p {
  margin: 0 0 10px;
  color: rgba(241,239,232,0.56);
  font-size: 14px;
  line-height: 1.75;
}

.resume__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.resume-card {
  min-height: 590px;
  padding: clamp(22px, 2.4vw, 36px);
  color: var(--ink);
  background: var(--paper);
}

.resume-card__top,
.resume-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.08em;
}

.resume-card__top {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.resume-card__footer {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.timeline {
  display: grid;
  padding: 38px 0 20px;
}

.timeline article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline article > span {
  color: var(--rust);
  font: 600 10px/1.4 var(--mono);
}

.timeline strong {
  display: block;
  margin-bottom: 7px;
  font: 700 clamp(24px, 2.4vw, 40px)/0.95 var(--display);
  letter-spacing: -0.04em;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.capabilities {
  padding-top: 8px;
}

.capabilities > ol {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.capabilities li {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 18px;
  padding: 25px 0;
  border-top: 1px solid var(--line-light);
}

.capabilities li:last-child {
  border-bottom: 1px solid var(--line-light);
}

.capabilities li span {
  grid-row: 1 / 3;
  color: var(--rust);
  font: 600 10px/1.4 var(--mono);
}

.capabilities li strong {
  font: 700 clamp(24px, 2.2vw, 36px)/1 var(--display);
  letter-spacing: -0.035em;
}

.capabilities li p {
  margin: 7px 0 0;
  color: rgba(241,239,232,0.55);
  font-size: 12px;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.capability-tags span {
  padding: 9px 11px 8px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: rgba(241,239,232,0.68);
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.06em;
}

.resume__media {
  position: relative;
  height: clamp(320px, 43vw, 650px);
  margin-top: clamp(60px, 7vw, 110px);
  overflow: hidden;
}

.resume__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.resume__media > div {
  position: absolute;
  left: 22px;
  bottom: 20px;
  padding: 15px 17px;
  color: var(--ink);
  background: rgba(241,239,232,0.92);
  backdrop-filter: blur(12px);
}

.resume__media span {
  display: block;
  margin-bottom: 6px;
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.1em;
}

.resume__media p {
  margin: 0;
  font: 700 clamp(20px, 2vw, 32px)/1 var(--display);
}

.contact {
  position: relative;
  min-height: 98svh;
  padding: clamp(100px, 12vw, 180px) var(--pad) 20px;
  background: var(--paper);
}

.contact__eyebrow {
  margin-top: clamp(70px, 8vw, 120px);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.1em;
}

.contact__title {
  margin: 0.05em 0 0;
  font: 700 clamp(112px, 18vw, 310px)/0.7 var(--display);
  letter-spacing: -0.085em;
}

.contact__title span,
.contact__title em {
  display: block;
}

.contact__title em {
  margin-right: 0.03em;
  text-align: right;
  color: var(--rust);
}

.contact__mail {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(60px, 7vw, 110px);
  padding: 22px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font: 700 clamp(24px, 3.3vw, 54px)/1 var(--display);
  letter-spacing: -0.035em;
}

.contact__mail span {
  position: relative;
}

.contact__mail i {
  font-style: normal;
  transition: transform 0.5s var(--ease);
}

.contact__mail:hover i {
  transform: translate(6px, -6px);
}

.footer {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: #66665e;
  font: 600 9px/1.5 var(--mono);
  letter-spacing: 0.06em;
}

.footer div {
  display: flex;
  gap: 25px;
}

.footer a {
  color: var(--ink);
}

.project-dialog {
  width: min(1480px, calc(100vw - 32px));
  height: min(900px, calc(100svh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--paper);
  background: #11110f;
  overflow: hidden;
}

.project-dialog::backdrop {
  background: rgba(0,0,0,0.74);
  backdrop-filter: blur(10px);
}

.project-dialog[open] {
  animation: dialogIn 0.55s var(--ease);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
}

.project-dialog__shell {
  position: relative;
  height: 100%;
  overflow: auto;
  padding: 0 var(--pad) 60px;
}

.dialog-close {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 64px;
  border: 0;
  color: inherit;
  background: linear-gradient(to bottom, #11110f 70%, rgba(17,17,15,0));
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.dialog-close i {
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
}

.project-dialog__head {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--line-light);
  color: rgba(241,239,232,0.56);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.1em;
}

.project-dialog__content {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 5vw, 84px);
  padding-top: clamp(36px, 5vw, 70px);
}

.project-dialog__copy {
  position: sticky;
  top: 88px;
  align-self: start;
}

.project-dialog__copy h2 {
  margin: 0;
  font: 700 clamp(52px, 6vw, 106px)/0.84 var(--display);
  letter-spacing: -0.06em;
}

.project-dialog__zh {
  margin: 18px 0 0;
  color: var(--rust);
  font-size: 14px;
}

.project-dialog__copy > p:not(.project-dialog__zh) {
  max-width: 42ch;
  margin: 28px 0 0;
  color: rgba(241,239,232,0.6);
  font-size: 14px;
  line-height: 1.8;
}

.project-dialog__meta {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 16px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.project-dialog__meta span {
  color: rgba(241,239,232,0.42);
  font: 500 9px/1.3 var(--mono);
}

.project-dialog__meta strong {
  font: 600 11px/1.3 var(--mono);
}

.project-dialog__gallery {
  display: grid;
  gap: 16px;
}

.project-dialog__gallery img {
  width: 100%;
  min-height: 420px;
  max-height: 76svh;
  object-fit: cover;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}

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

@media (pointer: fine) {
  .hero,
  .work-card,
  .more-projects button {
    cursor: none;
  }
}

@media (max-width: 1120px) {
  .header-center {
    display: none;
  }

  .site-nav {
    margin-right: 0;
  }

  .local-time {
    display: none;
  }

  .hero__name {
    width: 86vw;
  }

  .hero__copy {
    width: min(360px, 42vw);
  }

  .statement__layout,
  .works__heading,
  .resume__heading {
    grid-template-columns: 1fr;
  }

  .statement__label,
  .statement__aside {
    grid-column: auto;
  }

  .statement__aside {
    width: min(640px, 100%);
    justify-self: end;
  }

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

  .capabilities {
    padding-top: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 18px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 66px;
  }

  .site-nav,
  .local-time {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 720px;
  }

  .hero__eyebrow {
    top: 12vh;
    max-width: 72vw;
    line-height: 1.3;
  }

  .hero__coordinates {
    display: none;
  }

  .hero__copy {
    left: var(--pad);
    bottom: 43vh;
    width: min(78vw, 520px);
    padding-left: 18px;
  }

  .hero__copy p {
    font-size: 13px;
    line-height: 1.62;
  }

  .hero__name {
    right: var(--pad);
    bottom: 9vh;
    width: calc(100vw - var(--pad) * 2);
  }

  .hero__name-line--first {
    font-size: clamp(90px, 24vw, 190px);
  }

  .hero__name-line--last {
    font-size: clamp(124px, 33vw, 255px);
  }

  .pointer-plane {
    width: 132px;
    height: 180px;
  }

  .pointer-hint {
    left: auto;
    right: 30px;
    top: 28%;
  }

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

  .work-card--wide,
  .work-card--tall {
    grid-column: span 1;
    height: min(74svh, 680px);
  }

  .work-card:nth-child(3n) {
    height: min(56svh, 520px);
  }

  .work-card__info {
    grid-template-columns: 1fr;
  }

  .work-card__zh {
    justify-self: start;
    text-align: left;
  }

  .more-projects button {
    grid-template-columns: 36px 1fr auto;
  }

  .more-projects button em {
    display: none;
  }

  .resume-card {
    min-height: auto;
  }

  .timeline article {
    grid-template-columns: 92px 1fr;
    gap: 18px;
  }

  .contact {
    min-height: 82svh;
  }

  .footer {
    position: static;
    margin-top: 80px;
    flex-direction: column;
  }

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

  .project-dialog__copy {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  .brand__name {
    display: none;
  }

  .hero__copy {
    bottom: 39vh;
  }

  .hero__name-line--first {
    font-size: 25vw;
  }

  .hero__name-line--last {
    font-size: 39vw;
  }

  .hero__bottom {
    bottom: 2.5vh;
  }

  .hero__scroll > span:last-child {
    display: none;
  }

  .scroll-line {
    width: 42px;
  }

  .pointer-hint {
    right: 18px;
    top: 26%;
  }

  .pointer-hint > span:last-child {
    display: none;
  }

  .statement__headline,
  .works__heading h2,
  .resume__heading h2 {
    font-size: 18vw;
  }

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

  .work-card {
    height: 62svh;
  }

  .work-card__info strong {
    font-size: 34px;
  }

  .resume-card__footer,
  .resume-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .contact__title {
    font-size: 25vw;
  }

  .contact__mail {
    font-size: 22px;
  }

  .footer div {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker__track {
    animation: none;
  }

  .pointer-stage,
  .pointer-hint {
    display: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
/* 00 — scroll-driven showreel */
.showreel {
  position: relative;
  height: 310svh;
  min-height: 2100px;
  color: var(--paper);
  background: #0d0d0b;
}
.showreel__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: #0d0d0b;
}
.showreel__frame {
  --reel-scale: 0.86;
  position: absolute;
  inset: 74px var(--pad) 58px;
  overflow: hidden;
  background: #1a1a17;
  transform: scale(var(--reel-scale));
  transform-origin: center;
  will-change: transform;
}
.showreel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08);
}
.showreel__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 28%, transparent 62%, rgba(0,0,0,0.62)), linear-gradient(to right, rgba(0,0,0,0.18), transparent 45%, rgba(0,0,0,0.12));
  pointer-events: none;
}
.showreel__topline {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 2.2vw, 34px);
  right: clamp(18px, 2.2vw, 34px);
  top: clamp(18px, 2.2vw, 30px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.1em;
}
.showreel__title {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 100%;
  margin: 0;
  color: var(--paper);
  text-align: center;
  font: 700 clamp(92px, 15vw, 260px)/0.76 var(--display);
  letter-spacing: -0.075em;
  white-space: nowrap;
  transform: translate3d(calc(-50% + var(--reel-x, 0px)), -50%, 0);
  will-change: transform;
}
.showreel__title em {
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(241,239,232,0.92);
}
.showreel__controls {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 2.2vw, 34px);
  right: clamp(18px, 2.2vw, 34px);
  bottom: clamp(20px, 2.4vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.reel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(241,239,232,0.5);
  padding: 10px 13px;
  color: var(--paper);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.reel-toggle i { font-size: 11px; font-style: normal; }
.reel-toggle.is-live i { font-size: 0; }
.reel-toggle.is-live i::after { content: "▶"; font-size: 10px; }
.reel-time { font: 600 9px/1 var(--mono); letter-spacing: 0.08em; }
.reel-progress {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
}
.reel-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--rust);
  transform-origin: left;
}
.showreel__footer {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: rgba(241,239,232,0.52);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.08em;
}
/* Numbered project index */
.project-list { display: grid; gap: clamp(46px, 6vw, 96px); }
.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr);
  min-height: clamp(520px, 49vw, 760px);
  border-top: 1px solid var(--line-light);
}
.project-entry__visual {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #252522;
  cursor: none;
}
.project-entry__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12), transparent 35%, rgba(0,0,0,0.2));
  pointer-events: none;
}
.project-entry__visual img {
  width: 100%;
  height: 100%;
  min-height: clamp(520px, 49vw, 760px);
  object-fit: cover;
  transition: transform 1.3s var(--ease), filter 0.7s ease;
}
.project-entry__visual:hover img { transform: scale(1.035); filter: saturate(0.88) contrast(1.04); }
.project-entry__stamp,
.project-entry__view {
  position: absolute;
  z-index: 2;
  top: 18px;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--paper);
  mix-blend-mode: difference;
}
.project-entry__stamp { left: 20px; font-size: 16px; }
.project-entry__view {
  right: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.project-entry__visual:hover .project-entry__view { opacity: 1; transform: translateY(0); }
.project-entry__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(25px, 4vw, 64px);
  border-left: 1px solid var(--line-light);
  background: #171714;
}
.project-entry:nth-child(even) .project-entry__visual { order: 2; border-left: 1px solid var(--line-light); }
.project-entry:nth-child(even) .project-entry__copy { order: 1; border-left: 0; border-right: 1px solid var(--line-light); }
.project-entry__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(38px, 5vw, 74px);
  color: rgba(241,239,232,0.46);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.08em;
}
.project-entry__copy h3 {
  margin: 0;
  font: 700 clamp(46px, 5.5vw, 96px)/0.82 var(--display);
  letter-spacing: -0.06em;
}
.project-entry__zh { margin: 18px 0 0; color: var(--rust); font-size: 13px; }
.project-entry__desc { max-width: 40ch; margin: 24px 0 0; color: rgba(241,239,232,0.58); font-size: 13px; line-height: 1.8; }
.project-entry__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(250px, 100%);
  margin-top: 42px;
  border: 0;
  border-bottom: 1px solid rgba(241,239,232,0.54);
  padding: 0 0 10px;
  color: var(--paper);
  background: none;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-align: left;
  cursor: none;
}
.project-entry__button i { font-size: 16px; font-style: normal; transition: transform 0.45s var(--ease); }
.project-entry__button:hover i { transform: translate(5px, -5px); }
.board-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 42px; }
.board-index button {
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line-light);
  padding: 8px;
  color: var(--paper);
  background: transparent;
  text-align: left;
  cursor: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.board-index button:hover { border-color: rgba(241,239,232,0.6); background: rgba(255,255,255,0.05); }
.board-index button > span { color: var(--rust); font: 700 10px/1 var(--mono); }
.board-index img { width: 42px; height: 42px; object-fit: cover; }
.board-index strong { overflow: hidden; font: 700 12px/1 var(--display); letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.project-dialog__gallery video,
.project-dialog__gallery img { width: 100%; min-height: 420px; max-height: 76svh; object-fit: cover; background: #000; }
.project-dialog__gallery video { object-fit: contain; }
@media (max-width: 860px) {
  .showreel { height: 240svh; min-height: 1600px; }
  .showreel__frame { inset: 66px 14px 52px; }
  .showreel__title { font-size: 24vw; }
  .showreel__footer { bottom: 16px; }
  .project-entry,
  .project-entry:nth-child(even) { grid-template-columns: 1fr; min-height: 0; border-top: 1px solid var(--line-light); }
  .project-entry__visual,
  .project-entry:nth-child(even) .project-entry__visual { order: 1; border: 0; border-bottom: 1px solid var(--line-light); }
  .project-entry__visual img { min-height: 0; aspect-ratio: 4 / 3; }
  .project-entry__copy,
  .project-entry:nth-child(even) .project-entry__copy { order: 2; border: 0; padding: 30px 20px 42px; }
  .project-entry__meta { margin-bottom: 36px; }
  .project-entry__copy h3 { font-size: clamp(50px, 15vw, 84px); }
  .board-index { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .showreel__topline span:last-child,
  .showreel__footer span:last-child,
  .reel-time { display: none; }
  .showreel__frame { inset: 62px 10px 44px; }
  .showreel__title { font-size: 26vw; }
  .reel-toggle { padding: 9px 10px; }
  .project-entry__copy h3 { font-size: 17vw; }
  .board-index { grid-template-columns: 1fr; }
}
/* Final corrections: clean hero tiles and uncropped source galleries */
.pointer-plane { mix-blend-mode: normal; }
.pointer-plane img { border: 0; box-shadow: none; filter: saturate(0.92) contrast(1.03); }
.pointer-plane.is-visible { opacity: 1; }
.project-dialog__gallery { align-items: start; gap: 28px; }
.detail-item { display: grid; gap: 10px; margin: 0; }
.detail-item figcaption {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(241,239,232,0.58);
  font: 500 9px/1.3 var(--mono);
  letter-spacing: 0.05em;
}
.detail-item figcaption span { color: var(--rust); }
.detail-item figcaption strong {
  overflow: hidden;
  color: rgba(241,239,232,0.78);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-item figcaption em { color: rgba(241,239,232,0.36); font-style: normal; }
.project-dialog__gallery img,
.detail-item img {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  background: transparent;
}
.project-dialog__gallery video,
.detail-item video {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: 82svh;
  object-fit: contain;
  background: #000;
}
.detail-item--file {
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-light);
}
.detail-item--file > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--paper);
  background: var(--rust);
  font: 700 10px/1 var(--mono);
}
.detail-item--file strong {
  overflow: hidden;
  font: 600 12px/1.3 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-item--file em { color: rgba(241,239,232,0.38); font: 500 9px/1 var(--mono); font-style: normal; }
@media (max-width: 700px) {
  .detail-item figcaption { grid-template-columns: 28px minmax(0, 1fr); }
  .detail-item figcaption em { display: none; }
  .detail-item--file { grid-template-columns: 54px minmax(0, 1fr); }
  .detail-item--file em { display: none; }
}
.hero__identity {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17,17,15,0.28);
}
.hero__identity strong {
  font: 700 clamp(22px, 2vw, 32px)/0.95 var(--display);
  letter-spacing: -0.035em;
}
.hero__identity span {
  color: #4e4e47;
  font: 600 9px/1.35 var(--mono);
  letter-spacing: 0.07em;
}