:root {
  color-scheme: light;
  font-family: Arial, Helvetica, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: #111;
  background: #fff;
  font-synthesis: none;
  font-weight: 400;
  --type: clamp(16px, 1.12vw, 25px);
  --small: clamp(12px, .9vw, 18px);
  --unit: min(1vw, 1.63svh);
  --quiet: #8a8a8a;
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; min-width: 280px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; font-size: inherit; font-weight: 400; }
::selection { background: #e8e8e8; color: #111; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* A viewport-sized composition: every label shares the reference's coordinates. */
.home-page { overflow: hidden; }
.home-canvas { position: relative; width: 100%; height: 100svh; min-height: 420px; overflow: hidden; isolation: isolate; }
.ghost-layer, .number-layer { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.ghost-layer { z-index: -1; }
.ghost {
  position: absolute;
  overflow: hidden;
  font-size: calc(var(--unit) * 1.1);
  line-height: 1.17;
  color: #bdbdbd;
  opacity: .43;
  filter: blur(.85px);
  transform: rotate(90deg);
  transform-origin: top left;
}
.ghost p + p { margin-top: .6em; }
.ghost--experience { top: 3.7%; left: 26.2%; width: calc(var(--unit) * 22.7); height: calc(var(--unit) * 16.4); }
.ghost--brands { top: 3.8%; left: 51.6%; width: calc(var(--unit) * 20.4); height: calc(var(--unit) * 10.4); }
.ghost--education { top: 3.9%; left: 98.3%; width: calc(var(--unit) * 20.4); height: calc(var(--unit) * 14); }
.ghost--introduction { top: 34.2%; left: 76.1%; width: calc(var(--unit) * 22.2); height: calc(var(--unit) * 16.2); }
.ghost--tools { top: 61.5%; left: 10.5%; width: calc(var(--unit) * 20.3); height: calc(var(--unit) * 8); }
.ghost--collaboration { top: 60.8%; left: 31.2%; width: calc(var(--unit) * 20.6); height: calc(var(--unit) * 7.6); }
.ghost--practice { top: 60.8%; left: 50.9%; width: calc(var(--unit) * 20.5); height: calc(var(--unit) * 7.4); }
.ghost--awards { top: 60.8%; left: 90%; width: calc(var(--unit) * 21); height: calc(var(--unit) * 6.2); }
.ghost--awards p + p { margin-top: 0; }

.index { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); font-size: var(--small); line-height: 1; font-variant-numeric: tabular-nums; }
.index--last { transform: translateX(-100%); }
.home-navigation { font-size: var(--type); line-height: 1.2; }
.home-navigation .home-work, .home-navigation .home-about { position: absolute; left: 25%; }
.home-work { top: max(5.75%, calc(3.5% + var(--small) + 10px)); }
.home-about { top: max(36.45%, calc(34.1% + var(--small) + 10px)); }
.home-detail { position: absolute; left: 75%; font-size: var(--type); line-height: 1.2; white-space: nowrap; transition: opacity 180ms ease; }
.home-email { top: 6.05%; }
.home-phone { top: 36.5%; }
.home-name { top: 67.25%; }

/* Reference-inspired rollover: tonal fade and a fine, short underline. */
.text-link { display: inline-block; position: relative; padding: 0 0 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.text-link, .text-link:focus, .text-link:focus-visible, .text-link:active { outline: none; box-shadow: none; }
.text-link::before { content: ""; position: absolute; inset: -10px -7px; }
.link-label { display: inline-block; transition: opacity 180ms ease; }
.text-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; opacity: .35; transition: transform 180ms ease; }
.text-link:focus-visible .link-label { opacity: .3; }
.text-link:focus-visible::after { transform: scaleX(1); opacity: 1; }
.text-link:active .link-label { opacity: .2; }
@media (hover: hover) {
  .home-detail:hover { opacity: .3; }
  .text-link:hover .link-label { opacity: .3; }
  .text-link:hover::after { transform: scaleX(1); }
}

/* Work uses the second reference's coordinates; homepage rules remain intact. */
.work-page { overflow: hidden; }
.work-canvas .ghost--tools { top: 3.7%; left: 9.8%; width: calc(var(--unit) * 20.3); height: calc(var(--unit) * 7.4); }
.work-canvas .ghost--collaboration { top: 3.7%; left: 50.75%; width: calc(var(--unit) * 21.4); height: calc(var(--unit) * 7.5); }
.work-canvas .ghost--brands { top: 34.2%; left: 34.75%; width: calc(var(--unit) * 20.3); height: calc(var(--unit) * 10); }
.work-canvas .ghost--practice { top: 34.2%; left: 76.1%; }
.work-canvas .ghost--experience { top: 60.8%; left: 18.65%; }
.work-canvas .ghost--introduction { top: 60.8%; left: 66%; height: calc(var(--unit) * 16); }
.work-project, .work-navigation .work-home { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); font-size: var(--type); line-height: 1.2; }
.work-project { max-width: 23vw; overflow-wrap: anywhere; }
[data-page-scene]:focus { outline: none; }
[data-page-scene][aria-busy="true"] { will-change: opacity; }

/* Preview overlays add no space to the existing project title line boxes. */
.work-project .project-link { display: inline; padding: 0; }
.work-project .link-label { display: inline; }
.project-preview {
  position: absolute;
  left: 0;
  top: calc(1.2em + var(--unit) * .8);
  width: min(24.05vw, calc(var(--unit) * 24.1));
  aspect-ratio: 485 / 286;
  display: grid;
  place-items: center;
  padding: 5%;
  z-index: 5;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background: #f3f3f3;
  color: #111;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
  opacity: 0;
  transform: scale(0);
  transform-origin: top left;
  transition: transform 220ms cubic-bezier(.4, 0, 1, 1), opacity 160ms ease, visibility 0s linear 220ms;
}
.project-preview--red { background: #ff2442; color: #fff; border: 0; }
.preview-wordmark { font-family: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; font-size: calc(var(--unit) * 1.65); font-weight: 900; line-height: 1; letter-spacing: -.07em; white-space: nowrap; }
.preview-title { font-size: calc(var(--unit) * 1.25); line-height: 1.3; text-align: center; }
.project-link:focus-visible .link-label { opacity: .3; }
.project-link:focus-visible + .project-preview {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition: transform 480ms cubic-bezier(.16, 1, .3, 1), opacity 180ms ease, visibility 0s;
}
@media (hover: hover) {
  .project-link:hover + .project-preview {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: transform 480ms cubic-bezier(.16, 1, .3, 1), opacity 180ms ease, visibility 0s;
  }
}

/* Independent project destinations, ready for the user's full case studies. */
.project-detail .page-counter { grid-column: 4; }
.project-detail .page-title { font-size: clamp(32px, 4vw, 76px); line-height: 1.2; letter-spacing: -.035em; margin-left: 0; overflow-wrap: anywhere; }
.detail-cover { margin-top: 6svh; width: 100%; max-width: 1100px; aspect-ratio: 485 / 286; display: grid; place-items: center; padding: 6%; background: #f3f3f3; border: 1px solid #e8e8e8; text-align: center; }
.detail-cover--red { background: #ff2442; color: #fff; border: 0; }
.detail-cover .preview-wordmark { font-size: clamp(24px, 4vw, 80px); }
.detail-cover .preview-title { font-size: clamp(20px, 2.4vw, 48px); }
.project-pending { margin-top: 24px; font-size: var(--small); line-height: 1.7; color: var(--quiet); }

/* Interior pages carry the same five-column alignment and editorial restraint. */
.interior-page { min-height: 100svh; font-size: var(--type); }
.page-header { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; align-items: start; padding: 3.5svh 2.45vw 0; font-size: var(--small); }
.page-header .brand { justify-self: start; }
.page-header nav { display: flex; gap: 32px; grid-column: 2 / 4; }
.page-header .page-counter { justify-self: end; }
.page-header a[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.interior-main { margin: 13svh 2.45vw 0 25vw; min-height: 61svh; }
.page-kicker { font-size: var(--small); margin-bottom: 24px; color: var(--quiet); }
.page-title { font-size: clamp(60px, 9vw, 172px); line-height: .94; letter-spacing: -.065em; margin-left: -.055em; }
.intro-line { margin-top: 36px; line-height: 1.65; }
.quiet { color: var(--quiet); }
.work-note { max-width: 40ch; margin-top: 14px; color: var(--quiet); font-size: var(--small); line-height: 1.7; }
.work-index { margin-top: 10svh; }
.work-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 24px; padding: 25px 0; border-top: 1px solid #ddd; align-items: baseline; }
.work-row:last-child { border-bottom: 1px solid #ddd; }
.work-row .row-number, .work-row .row-state { font-size: var(--small); color: var(--quiet); }
.work-row .row-title { font-size: clamp(18px, 2.1vw, 36px); letter-spacing: -.035em; }
.work-row small { display: block; margin-top: 8px; font-size: var(--small); letter-spacing: 0; color: var(--quiet); }
.about-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 8vw; margin-top: 7svh; }
.about-copy { max-width: 30em; line-height: 1.9; }
.about-copy .english-copy { margin-top: 32px; color: var(--quiet); font-size: var(--small); line-height: 1.65; }
.about-meta { font-size: var(--small); line-height: 1.7; }
.meta-block + .meta-block { margin-top: 36px; }
.meta-label { color: var(--quiet); margin-bottom: 8px; }
.contact-text { overflow-wrap: anywhere; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin: 9svh 2.45vw 0; padding: 22px 0 30px; font-size: var(--small); }

@media (max-width: 640px) {
  :root { --type: 17px; --small: 12px; }
  .home-canvas { min-height: 480px; }
  .ghost { font-size: max(6px, calc(var(--unit) * 1.1)); filter: blur(.65px); opacity: .38; }
  .ghost--experience { height: 18vw; }
  .ghost--introduction { height: 22vw; }
  .home-work, .home-about { left: 25%; }
  .home-detail { font-size: clamp(12px, 3.3vw, 16px); }
  .home-email { left: 50%; top: 11%; }
  .home-phone { left: 50%; top: 41.5%; }
  .home-name { left: 75%; }
  .page-header { padding: 25px 5vw 0; grid-template-columns: 1fr 2fr auto; }
  .page-header nav { grid-column: 2; gap: 25px; }
  .interior-main { margin: 13svh 5vw 0; min-height: 58svh; }
  .page-title { font-size: clamp(72px, 21vw, 130px); }
  .page-kicker { margin-bottom: 24px; }
  .intro-line { margin-top: 28px; }
  .work-index { margin-top: 8svh; }
  .work-row { grid-template-columns: 25px 1fr auto; gap: 12px; padding: 22px 0; }
  .work-row .row-state { font-size: 11px; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; margin-top: 6svh; }
  .about-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .meta-block + .meta-block { margin-top: 0; }
  .page-footer { margin: 9svh 5vw 0; font-size: 11px; }
}

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

@media (max-height: 479px) {
  .home-canvas { min-height: 100svh; }
}
