/* =========================================================
   P_P Studio — styles
   Brand palette kept from the original site.
   ========================================================= */
:root {
  --paper: #F5F6F3;
  --white: #FFFFFF;
  --ink: #121316;
  --soft: #3A3D43;
  --grey: #5B5F66;
  --line: #D9DBD6;
  --blue: #3346FF;
  --coral: #FF5A47;
  --lime: #C8F03C;
  --lav: #B7A4FF;
  --sun: #FFC93C;

  --f-display: 'Archivo', 'Noto Sans TC', system-ui, sans-serif;
  --f-body: 'Instrument Sans', 'Noto Sans TC', system-ui, sans-serif;
  --f-serif: 'Archivo', 'Noto Serif TC', system-ui, sans-serif;
  --f-zh-serif: 'Noto Serif TC', serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;
  --f-pixel: 'Press Start 2P', 'DM Mono', monospace;

  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.muted { font-size: 13px; color: var(--grey); }
.soft { color: var(--soft); }

/* ---------- Reveal (only when Motion runs) ---------- */
.motion-ok [data-reveal],
.motion-ok [data-stagger] > * { opacity: 0; }
.motion-ok .hero__title .ln__in { transform: translateY(105%); }

/* ---------- Logo mark ---------- */
.mark { display: inline-flex; align-items: flex-end; gap: .06em; font-family: var(--f-display); font-weight: 800; line-height: .86; letter-spacing: -.04em; }
.mark__bar { display: flex; width: .62em; height: .11em; margin-bottom: .07em; }
.mark__bar i { flex: 1; }
.mark__bar i:nth-child(1) { background: var(--blue); }
.mark__bar i:nth-child(2) { background: var(--coral); }
.mark__bar i:nth-child(3) { background: var(--lime); }
.mark__bar i:nth-child(4) { background: var(--lav); }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; text-align: center; max-width: 100%;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); box-shadow: 4px 4px 0 var(--ink); }
.btn--line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--lime); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--paper); }

/* ---------- Pills / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid #BFC2BC; background: transparent;
  font-size: 14px; font-weight: 500;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.filters--dark .pill { border-color: #5B5F66; color: var(--paper); }
.filters--dark .pill:hover { border-color: var(--paper); }
.filters--dark .pill[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; background: var(--white); }
.chips--dark li { border-color: #5B5F66; background: transparent; color: var(--paper); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(245, 246, 243, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: flex-end; gap: 10px; text-decoration: none; font-size: 26px; }
.logo__studio { font-weight: 500; font-size: 12px; letter-spacing: .16em; margin-bottom: 2px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color .25s, transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active, .nav__links a[aria-current="page"] { background: var(--lime); }
.nav__links a:hover { transform: rotate(-3deg); }
.nav__links a span { font-size: 13px; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: var(--white); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav__right .btn { display: none; }
}
@media (max-width: 1000px) {
  .nav__burger { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { justify-content: space-between; min-height: 52px; font-size: 18px; }
}
@media (max-width: 420px) {
  .logo__studio { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--grey); margin-bottom: clamp(20px, 3vw, 40px); }
.avail { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: #1FB85C; box-shadow: 0 0 0 0 rgba(31,184,92,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(31,184,92,0); } 100% { box-shadow: 0 0 0 0 rgba(31,184,92,0); } }

.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(40px, 8vw, 132px);
  line-height: .9; letter-spacing: -.045em; text-transform: uppercase;
  display: flex; flex-direction: column;
}
.ln { display: block; overflow: hidden; padding-bottom: .04em; }
.ln__in { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 .18em; }
.ln:nth-child(3) .ln__in, .ln:nth-child(5) .ln__in { padding-left: clamp(0px, 8vw, 1.4em); }
.hero__title em, .h2 em, .contact__h em, .callme em {
  font-family: var(--f-display); font-style: italic; font-weight: 800; font-stretch: 112%;
  text-transform: none; letter-spacing: -.03em; color: var(--blue);
}
.contact__h em { color: var(--lime); }
.hero__title em { font-size: 1.14em; line-height: .8; }
.paren { font-weight: 800; letter-spacing: 0; }
.tile {
  display: inline-block; position: relative; overflow: hidden;
  width: 1.5em; height: .74em; border-radius: .14em;
  background: var(--blue); vertical-align: middle;
}
.tile--b { width: 1.2em; background: var(--coral); }
.tile--inline { width: 1.3em; height: .72em; border-radius: .12em; background: var(--lime); }
.tile__shape { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%; background: var(--paper); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.hero__copy { display: flex; flex-direction: column; gap: 14px; max-width: 620px; color: var(--soft); }
.hero__zh { font-family: var(--f-zh-serif); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4; letter-spacing: .08em; color: var(--ink); }
.hero__copy p:not(.hero__zh):not(.tagline) { font-size: 16px; line-height: 1.9; }
.hero__copy .btns { margin-top: 10px; }

.playground {
  position: relative; height: clamp(300px, 30vw, 400px);
  border: 1px dashed #BFC2BC; border-radius: 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(200,240,60,.35), transparent 50%),
    var(--white);
  overflow: hidden; touch-action: none;
}
.playground__hint { position: absolute; top: 16px; left: 20px; color: var(--grey); }
.toy {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55em 1.3em; border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: clamp(14px, 1.5vw, 20px);
  text-transform: uppercase; white-space: nowrap; letter-spacing: .01em;
  border: 1.5px solid var(--ink); background: var(--white);
  cursor: grab; user-select: none; -webkit-user-select: none;
  will-change: transform;
}
.toy.is-drag { cursor: grabbing; box-shadow: 6px 8px 0 rgba(18,19,22,.9); z-index: 5; }
.toy--round { width: 3.6em; height: 3.6em; padding: 0; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--lime); border-block: 1.5px solid var(--ink); overflow: hidden; padding-block: 14px; }
.marquee__track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 28s linear infinite;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 3vw, 40px); text-transform: uppercase; letter-spacing: -.02em; }
.marquee__track [lang="zh-Hant"] { font-family: var(--f-zh-serif); font-weight: 900; letter-spacing: .08em; }
.marquee__track b { font-size: .7em; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* =========================================================
   SECTIONS
   ========================================================= */
.sec { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--ink); }
.sec--white { background: var(--white); border-top: 0; }
.sec--blue-tint { background: #E9ECFF; }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec--blue { background: var(--blue); color: var(--white); border-top: 0; }
.sec--grid {
  background-color: #F8F9F2;
  background-image:
    linear-gradient(rgba(51,70,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,70,255,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  position: relative; overflow: hidden;
}
.sec--grid::before, .sec--grid::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,240,60,.75), transparent 65%); filter: blur(20px); pointer-events: none;
}
.sec--grid::before { top: -200px; right: -160px; }
.sec--grid::after { bottom: -220px; left: -180px; }

.sec__head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(36px, 4vw, 56px); }
.h2 { display: flex; flex-direction: column; gap: 8px; }
.label { font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: .14em; color: var(--blue); }
.label--lime { color: var(--lime); }
.label--coral { color: var(--coral); }
.h2__en { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 88px); line-height: .98; letter-spacing: -.035em; }
.h2__en .paren { font-size: .9em; }
.h2__zh { font-family: var(--f-zh-serif); font-weight: 700; font-size: clamp(24px, 3vw, 40px); letter-spacing: .12em; }
.sec__lede { max-width: 500px; display: flex; flex-direction: column; gap: 8px; color: var(--soft); }
.sec__lede, .sec__lede p { line-height: 1.9; }
.sec__lede--strong { color: #2A2D45; font-weight: 500; }
.sec__lede--strong { font-size: 17px; }
.sec--dark .sec__lede { color: #C9CCD2; }
.mini-label { display: block; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--grey); margin-bottom: 16px; }
.ph { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: var(--soft); background: rgba(255,255,255,.82); padding: 2px 8px; border-radius: 3px; }

/* shapes used in placeholder covers */
.shp { display: block; aspect-ratio: 1; flex: none; }
.shp--circle { border-radius: 50%; }
.shp--arch { border-radius: 999px 999px 0 0; }
.shp--square { rotate: 12deg; }
.shp--pill { aspect-ratio: auto; height: 70%; border-radius: 999px; }
.shp--bar { aspect-ratio: auto; height: 18%; }
.shp--ring { border-radius: 50%; background: transparent !important; border: 18px solid; }
.shp--page { aspect-ratio: auto; height: 72%; box-shadow: 14px 14px 0 var(--ink); }

/* =========================================================
   HIGHLIGHTS
   ========================================================= */
.hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hl { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.hl__cover {
  position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: border-radius .6s var(--ease), box-shadow .5s var(--ease);
}
.hl:hover .hl__cover { border-radius: 110px 22px 22px 22px; box-shadow: 0 30px 50px -30px rgba(18,19,22,.55); }
.hl__art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hl__art img { width: 100%; height: 100%; object-fit: cover; }
.hl__art > * { transition: transform .8s var(--ease); }
.hl:hover .hl__art > .shp { transform: scale(1.12) rotate(-8deg); }
.hl:hover .hl__art > .canvas { transform: rotate(-4deg) scale(1.04); }
.hl:hover .hl__art > .mini-browser { transform: translateY(-8px) rotate(-2deg); }
.hl__no { position: absolute; top: 14px; left: 18px; font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--wm); z-index: 2; }
.hl__bar { position: absolute; left: 50%; top: 50%; width: 22%; height: 7%; translate: -50% -50%; background: var(--white); }

/* watermark — giant outlined running text across the image */
.hl__wm {
  position: absolute; left: -4%; top: 50%;
  display: flex; width: max-content; rotate: -8deg; transform-origin: 0 50%; pointer-events: none; z-index: 1;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--wm); opacity: .5; white-space: nowrap;
  transition: opacity .5s, color .5s;
}
.hl__wm span { padding-right: .3em; animation: wm 22s linear infinite; }
.hl:hover .hl__wm { opacity: .9; }
.hl:hover .hl__wm span { animation-duration: 9s; }
@keyframes wm { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .hl__wm span { animation: none; } }

/* the description, laid over the image */
.hl__desc {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(18,19,22,.12);
  transform: translateZ(30px);
  transition: background-color .4s, translate .5s var(--ease);
}
.hl__desc p { font-size: 14px; line-height: 1.7; color: var(--ink); }
.hl__go {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 600;
  max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; margin-top: -10px;
  transition: max-height .45s var(--ease), padding .45s var(--ease), opacity .3s, margin .45s var(--ease);
}
.hl:hover .hl__desc, .hl:focus-visible .hl__desc { background: rgba(255,255,255,.92); translate: 0 -4px; }
.hl:hover .hl__go, .hl:focus-visible .hl__go { max-height: 40px; padding-block: 6px; opacity: 1; margin-top: 0; }
.hl__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 5px solid var(--c); }
.hl__foot h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.hl__foot .en { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.hl__foot .zh { font-family: var(--f-zh-serif); font-weight: 700; font-size: 17px; letter-spacing: .1em; }
.hl__arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; transition: background-color .3s, rotate .4s var(--ease); }
.hl:hover .hl__arrow { background: var(--c); rotate: 45deg; }

@media (max-width: 900px) {
  .hl-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .hl-grid::-webkit-scrollbar { display: none; }
  .hl { scroll-snap-align: start; }
  .hl__go { max-height: 40px; padding-block: 6px; opacity: 1; margin-top: 0; }
}

.mini-browser { width: 74%; aspect-ratio: 4 / 3; margin-top: 16%; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.mini-browser__bar { height: 14%; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 5px; padding: 0 8px; }
.mini-browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.mini-browser__bar i:nth-child(2) { background: var(--sun); }
.mini-browser__bar i:nth-child(3) { background: var(--lime); }
.mini-browser__hero { flex: 1; margin: 8px; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.mini-browser__row { height: 16%; margin: 0 8px 8px; display: flex; gap: 6px; }
.mini-browser__row i { flex: 1; background: #E6E8E3; }
.mini-phone { position: absolute; right: 9%; bottom: 12%; width: 20%; aspect-ratio: 9 / 18; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 6px 5px; display: flex; flex-direction: column; gap: 4px; }
.mini-phone i:first-child { height: 4px; width: 50%; background: var(--ink); }
.mini-phone b { flex: 1; background: var(--lime); }
.mini-phone i:last-child { height: 14%; background: #E6E8E3; }
.canvas { width: 64%; aspect-ratio: 3 / 4; margin-top: 10%; background: #FF8A7A; display: flex; align-items: center; justify-content: center; }

/* =========================================================
   GRAPHIC DESIGN
   ========================================================= */
#design .filters { margin-bottom: 36px; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 24px; margin-bottom: 64px; }
.proj { display: flex; flex-direction: column; gap: 12px; }
.proj__cover {
  position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.proj__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj__cover .shp { transition: transform .8s var(--ease); }
.proj:hover .proj__cover .shp { transform: rotate(18deg) scale(1.1); }
.proj__cover::after {
  content: "VIEW ↗"; position: absolute; right: 12px; top: 12px;
  font-family: var(--f-mono); font-size: 11px; padding: 6px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper); opacity: 0; translate: 0 -6px;
  transition: opacity .3s, translate .3s var(--ease);
}
.proj:hover .proj__cover::after { opacity: 1; translate: 0 0; }
.proj__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { display: inline-flex; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.proj h3 { display: flex; flex-direction: column; gap: 2px; }
.proj h3 .en { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.proj h3 .zh { font-weight: 500; font-size: 17px; letter-spacing: .06em; }
.proj > p { font-size: 14px; color: var(--grey); }
.proj-more {
  min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  text-align: left; padding: 28px; border: 1.5px dashed var(--ink); border-radius: 14px; background: transparent; text-decoration: none;
  transition: background-color .3s, transform .4s var(--ease);
}
.proj-more:hover { background: var(--lime); transform: rotate(-1.5deg); }
.proj-more__plus { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 1; }
.proj-more b { display: block; font-family: var(--f-display); font-size: 22px; }
.proj-more__zh { display: block; font-weight: 500; letter-spacing: .06em; }
.proj-more__go { display: block; margin-top: 8px; font-size: 22px; color: var(--blue); transition: translate .4s var(--ease); }
.proj-more:hover .proj-more__go { translate: 8px 0; }

/* category key — compact, readable at a glance */
.key-wrap { flex: 0 1 520px; min-width: 0; }
.key-wrap .mini-label { margin-bottom: 10px; }
.key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.key--filter { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 40px; }
.key__i {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; row-gap: 1px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  text-decoration: none; text-align: left; color: var(--ink); font: inherit;
  transition: border-color .25s, background-color .25s, transform .3s var(--ease);
}
.key__i:hover { border-color: var(--ink); transform: translateY(-2px); }
.key__i[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.key__i[aria-pressed="true"] .key__en, .key__i[aria-pressed="true"] .key__s { color: #C9CCD2; }
.key__dot { width: 10px; height: 10px; border-radius: 50%; grid-row: 1; }
.key__i[aria-pressed="true"] .key__i--all .key__dot, .key__i--all[aria-pressed="true"] .key__dot { background: var(--lime) !important; }
.key__zh { font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.key__en { grid-column: 2; font-family: var(--f-mono); font-size: 11px; color: var(--grey); text-transform: uppercase; }
.key__s { grid-column: 2; font-size: 12px; color: var(--grey); }
@media (max-width: 900px) {
  .key--filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key--filter .key__i { min-height: 76px; }
}
@media (max-width: 380px) {
  .key__i { padding: 8px 10px; }
  .key__zh { font-size: 14px; }
}

/* "view all" link under a home section */
.more-link {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px;
  padding: 20px 4px; border-block: 1.5px solid var(--ink); text-decoration: none; margin-bottom: 48px;
  transition: padding .4s var(--ease), background-color .3s;
}
.more-link:hover { padding-inline: 20px; background: var(--lime); }
.more-link__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -.02em; }
.more-link__t span { font-family: var(--f-zh-serif); font-weight: 700; font-size: .7em; letter-spacing: .08em; margin-left: 8px; }
.more-link__n { color: var(--grey); }
.more-link__arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: rotate .4s var(--ease); }
.more-link:hover .more-link__arrow { rotate: -45deg; }
.more-link--dark { border-color: var(--paper); margin-bottom: 0; }
.more-link--dark:hover { color: var(--ink); }
.more-link--dark .more-link__arrow { background: var(--lime); color: var(--ink); }
@media (max-width: 560px) {
  .more-link { grid-template-columns: 1fr auto; }
  .more-link__n { display: none; }
  .more-link__t span { display: block; margin: 4px 0 0; }
}

/* =========================================================
   SUB-PAGES
   ========================================================= */
.page-hero { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--ink); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .35; filter: blur(10px); pointer-events: none; }
.page-hero--tint { background: #E9ECFF; }
.page-hero--dark { background: var(--ink); color: var(--paper); border-bottom-color: var(--soft); }
.page-hero--dark .sec__lede { color: #C9CCD2; }
.crumb { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--grey); margin-bottom: clamp(16px, 3vw, 40px); }
.crumb:hover { color: var(--blue); }
.page-hero--dark .crumb { color: #A9ADB5; }
.page-hero__row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; position: relative; z-index: 1; }
.page-hero__en--long { font-size: clamp(26px, 7.4vw, 120px) !important; }
.page-hero__en { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 8.6vw, 140px); line-height: .92; letter-spacing: -.045em; text-transform: uppercase; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 .2em; }
.page-hero__en .tile--inline { width: 1.2em; height: .66em; }
.page-hero__side { max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.page-hero__count { display: inline-flex; align-self: flex-start; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; }
.sec--flush { border-top: 0; padding-top: clamp(32px, 4vw, 56px); }

/* next / CTA band at the end of every work page */
.next { background: var(--paper); border-top: 1px solid var(--ink); }
.next__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; }
.next__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(40px, 6vw, 80px) clamp(0px, 3vw, 40px) clamp(40px, 6vw, 80px) 0; }
.next__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.next__tz { font-family: var(--f-zh-serif); font-weight: 700; font-size: 20px; letter-spacing: .08em; margin-bottom: 10px; }
.next__link {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px); border-left: 1px solid var(--ink);
  text-decoration: none; overflow: hidden; transition: background-color .4s;
}
.next__link:hover { background: var(--lime); }
.next__link .mono { color: var(--grey); }
.next__en { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 88px); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.next__zh { font-family: var(--f-zh-serif); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .12em; }
.next__arrow { position: absolute; right: clamp(20px, 4vw, 56px); bottom: clamp(24px, 4vw, 48px); font-size: clamp(32px, 4vw, 56px); transition: translate .5s var(--ease); }
.next__link:hover .next__arrow { translate: 12px 0; }
@media (max-width: 760px) {
  .next__in { grid-template-columns: 1fr; }
  .next__cta { padding-right: 0; }
  .next__link { border-left: 0; border-top: 1px solid var(--ink); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

/* =========================================================
   WEB — hanging cards
   ========================================================= */
.rope { position: relative; padding-top: 8px; margin-bottom: clamp(56px, 7vw, 96px); }
.rope__line { position: absolute; left: -2%; right: -2%; top: 0; width: 104%; height: 60px; overflow: visible; }
.rope__hint { text-align: right; color: var(--grey); margin-top: 18px; }
.hang { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); position: relative; }
.hang__item { display: flex; flex-direction: column; align-items: center; }
.hang__item:nth-child(1) { padding-top: 34px; }
.hang__item:nth-child(2) { padding-top: 54px; }
.hang__item:nth-child(3) { padding-top: 54px; }
.hang__item:nth-child(4) { padding-top: 34px; }
.hang__swing { width: 100%; transform-origin: 50% -34px; display: flex; flex-direction: column; align-items: center; }
.hang__pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); margin-top: -40px; position: relative; z-index: 2; }
.hang__thread { width: 1.5px; height: 26px; background: var(--ink); }
.hang__card {
  width: 100%; min-height: 240px; padding: 18px 18px 20px;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 18px;
  box-shadow: 0 18px 30px -18px rgba(18,19,22,.45);
  display: flex; flex-direction: column; gap: 10px;
}
.hang__card header { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--grey); }
.hang__swatch { aspect-ratio: 16 / 9; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; font-size: 44px; }
.hang__t { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.hang__t span { font-family: var(--f-zh-serif); font-size: 18px; letter-spacing: .08em; margin-left: 6px; }
.hang__card p { font-size: 14px; color: #2A2D45; }

@media (max-width: 820px) {
  .rope__line { display: none; }
  .hang { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hang__item:nth-child(n) { padding-top: 34px; }
  .hang__item::before { content: ""; position: absolute; }
}
@media (max-width: 460px) { .hang { grid-template-columns: 1fr; } }

/* website showcase */
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 32px; margin-bottom: 56px; }
.site { display: flex; flex-direction: column; gap: 14px; }
.browser { background: var(--white); border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); transition: box-shadow .4s var(--ease), translate .4s var(--ease); }
.site:hover .browser { box-shadow: 16px 16px 0 var(--ink); translate: -3px -3px; }
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.browser__dots i:nth-child(2) { background: var(--sun); }
.browser__dots i:nth-child(3) { background: var(--lime); }
.browser__url { flex: 1; min-width: 0; font-size: 12px; color: var(--grey); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser__view { position: relative; aspect-ratio: 16 / 11; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.browser__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bv-nav { display: flex; justify-content: space-between; align-items: center; }
.bv-nav b { width: 56px; height: 10px; background: var(--ink); }
.bv-nav span { display: flex; gap: 8px; }
.bv-nav span i { width: 28px; height: 6px; background: #BFC2BC; }
.bv-hero { flex: 1; display: flex; align-items: center; justify-content: center; padding-right: 24%; }
.bv-hero .shp { width: 28%; }
.bv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 0 0 22%; }
.bv-tiles i { background: #E6E8E3; }
.bv-phone { position: absolute; right: 14px; bottom: 14px; width: 22%; aspect-ratio: 9 / 18; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 5px; display: flex; flex-direction: column; gap: 4px; }
.bv-phone i { height: 12%; background: #E6E8E3; }
.bv-phone i:first-child { height: 4px; width: 50%; background: var(--ink); }
.bv-phone b { flex: 1; }
.site__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #4A4E66; }
.site h3 { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.site h3 .zh { font-family: var(--f-body); font-weight: 500; font-size: 17px; }
.site > p { font-size: 14px; color: #2A2D45; }
.site__link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--blue); }

.caps { margin-bottom: 40px; }
.cta-dark {
  display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between;
  padding: clamp(24px, 4vw, 40px); background: var(--ink); color: var(--paper); border-radius: 24px;
}
.cta-dark > div { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-dark__t { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.cta-dark__tz { font-family: var(--f-zh-serif); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.cta-dark__p { font-size: 15px; color: #C9CCD2; line-height: 1.8; }

/* =========================================================
   ART
   ========================================================= */
#art .filters { margin-bottom: 36px; }
.masonry { columns: 3 280px; column-gap: 28px; margin-bottom: 48px; }
.art { break-inside: avoid; margin: 0 0 36px; display: flex; flex-direction: column; gap: 14px; }
.art__frame { position: relative; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.art__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__frame .shp { transition: transform 1s var(--ease); }
.art:hover .art__frame .shp { transform: scale(1.18) rotate(-10deg); }
.art__frame .ph { color: var(--ink); }
.art figcaption { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; font-size: 13px; border-top: 1px solid var(--soft); padding-top: 12px; }
.art figcaption > b { font-family: var(--f-mono); font-weight: 500; color: var(--lime); }
.art figcaption > span { display: flex; flex-direction: column; gap: 2px; color: #A9ADB5; }
.art figcaption > span > b { font-weight: 600; font-size: 15px; color: var(--paper); }

.uses { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--soft); border-radius: 24px; }
.uses__t { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.uses__tz { font-size: 17px; letter-spacing: .08em; color: #C9CCD2; }
.uses .chips { flex: 1 1 420px; justify-content: flex-end; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 56px clamp(40px, 6vw, 96px); align-items: start; position: relative; z-index: 1; }
.about__side { display: flex; flex-direction: column; gap: 20px; }
.about__name { display: flex; flex-direction: column; gap: 4px; }
.about__name span:first-child { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; }
.about__name span:last-child { font-family: var(--f-zh-serif); font-weight: 700; font-size: clamp(26px, 3vw, 38px); letter-spacing: .2em; }
.polaroid { position: relative; margin: 12px 0 0; padding: 14px 14px 18px; background: var(--white); box-shadow: 0 24px 40px -24px rgba(18,19,22,.5); rotate: -3deg; transition: rotate .6s var(--ease); max-width: 340px; }
.polaroid:hover { rotate: 1deg; }
.polaroid__img { aspect-ratio: 4 / 5; background: #E6E8E3; display: flex; align-items: center; justify-content: center; color: var(--grey); font-size: 13px; }
.polaroid figcaption { margin-top: 12px; color: var(--grey); }
.polaroid__tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; translate: -50% 0; rotate: 4deg; background: rgba(200,240,60,.75); }

.about__main { display: flex; flex-direction: column; gap: 44px; padding-top: 40px; }
.statement { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 820px; padding-block: 12px; }
.statement__en { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -.02em; }
.statement__en em { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.statement__zh { font-family: var(--f-zh-serif); font-weight: 700; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.6; letter-spacing: .04em; }
.hl-mark { position: relative; background: none; color: inherit; padding: 0 .12em; white-space: nowrap; }
.hl-mark::before { content: ""; position: absolute; inset: .06em -.04em .02em; background: var(--lime); z-index: -1; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .3s; }
.hl-mark { z-index: 0; }
.statement.is-in .hl-mark::before, html:not(.motion-ok) .hl-mark::before { transform: scaleX(1); }
.sticker {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; background: var(--lime); color: var(--ink);
  font-size: 14px; font-weight: 600; box-shadow: 4px 5px 0 rgba(18,19,22,.85);
  rotate: var(--r, 0deg); white-space: nowrap; z-index: 2;
}
.sticker i { font-style: normal; color: var(--blue); }
.sticker--blue { background: var(--blue); color: var(--white); }
.sticker--blue i { color: var(--lime); }
.about__more { display: flex; flex-direction: column; gap: 10px; max-width: 700px; color: var(--soft); }
.about__more p { line-height: 1.9; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.value { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; font-size: 15px; color: var(--soft); }
.value > span:not(.value__t) { line-height: 1.8; }
.value__t { font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.value__t span { font-family: var(--f-zh-serif); font-size: 17px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__main { padding-top: 0; }
  .sticker { position: static; align-self: flex-start; }
}

/* =========================================================
   SERVICES — fanned cards
   ========================================================= */
.callme { position: relative; display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; margin-bottom: 40px; }
.callme svg { position: absolute; right: -6px; bottom: -14px; width: 42%; height: 18px; color: var(--blue); }

.fan { display: flex; justify-content: center; align-items: flex-start; padding: 24px 0 40px; margin-bottom: 56px; }
.svc {
  position: relative; flex: 0 1 380px; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 26px 26px; border-radius: 22px;
  border: 1.5px solid var(--ink);
  background: var(--c); color: var(--ink2, var(--ink));
  box-shadow: 0 30px 50px -30px rgba(18,19,22,.6);
  rotate: var(--r); translate: 0 var(--ty, 0);
  transition: rotate .5s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease);
}
.svc + .svc { margin-left: -36px; }
.svc:nth-child(1) { --r: -6deg; --ty: 18px; z-index: 1; }
.svc:nth-child(2) { --r: 1.5deg; --ty: 0px; z-index: 2; }
.svc:nth-child(3) { --r: 7deg; --ty: 26px; z-index: 3; }
.fan:hover .svc { --ty: 30px; }
.fan .svc:hover { --r: 0deg; --ty: -14px; z-index: 5; box-shadow: 0 40px 60px -30px rgba(18,19,22,.7); }
.svc__top { display: flex; justify-content: space-between; align-items: center; }
.svc__no { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; }
.svc__sticker { width: 64px; height: 64px; margin: -52px -10px 0 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 1.5px solid var(--ink); rotate: 10deg; box-shadow: 3px 4px 0 var(--ink); }
.svc__sticker span { display: block; width: 30px; height: 30px; background: var(--ink); }
.svc h3 { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1.5px solid currentColor; }
.svc h3 .en { font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1.05; }
.svc h3 .zh { font-family: var(--f-zh-serif); font-weight: 700; font-size: 22px; letter-spacing: .1em; }
.svc > p { font-size: 15px; }
.svc ul { display: flex; flex-direction: column; gap: 6px; }
.svc li { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; }
.svc li::before { content: "✦"; font-size: 11px; line-height: 1.9; }
.svc__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.svc__foot small { font-size: 13px; opacity: .85; }
.svc .btn { background: var(--ink); color: var(--paper); }
.svc .btn:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 900px) {
  .fan { flex-direction: column; align-items: stretch; gap: 20px; padding: 0; }
  .svc { flex: none; }
  .svc + .svc { margin-left: 0; }
  .svc:nth-child(1) { --r: -1.5deg; } .svc:nth-child(2) { --r: 1deg; } .svc:nth-child(3) { --r: -1deg; }
  .svc:nth-child(n) { --ty: 0px; }
  .fan:hover .svc { --ty: 0px; }
  .svc__sticker { margin-top: -44px; }
}

.flow__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.flow__row li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: transform .4s var(--ease), border-color .3s; }
.flow__row li:hover { transform: translateY(-4px); border-color: var(--ink); }
.flow__no { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; }
.flow__row b { font-weight: 600; font-size: 17px; }
.flow__d { font-size: 14px; color: var(--soft); }
.pill__en { font-size: 12px; opacity: .6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 4vw, 56px); }
.contact__h { display: flex; flex-direction: column; gap: 14px; }
.contact__en { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6.4vw, 96px); line-height: .98; letter-spacing: -.035em; max-width: 14ch; }
.contact__h .tile--inline { background: var(--lime); }
.contact__hz { font-family: var(--f-zh-serif); font-weight: 700; font-size: clamp(24px, 3.2vw, 44px); letter-spacing: .1em; }
.contact { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.contact__form { flex: 999 1 540px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; box-shadow: 12px 12px 0 var(--ink); }
.contact__form .btn { align-self: flex-start; }
.contact__ft { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.contact__ftz { font-size: 19px; font-weight: 500; letter-spacing: .06em; margin-top: -12px; }
.contact__aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.contact__at { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.direct { border-top: 1px solid rgba(255,255,255,.55); }
.direct a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; min-height: 44px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.55); transition: padding .35s var(--ease); }
.direct a:hover { padding-inline: 10px; }
.direct span:first-child { display: flex; flex-direction: column; }
.direct small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; }
.direct b { font-size: 17px; font-weight: 600; }
.book { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--lime); color: var(--ink); text-decoration: none; border-radius: 18px; rotate: -1.5deg; transition: rotate .4s var(--ease); }
.book:hover { rotate: 0deg; }
.book b { font-size: 17px; }
.book small { font-size: 13px; }
.where { font-size: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--ink); color: #C9CCD2; padding-block: 72px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot__top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.foot__logo { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--paper); }
.mark--xl { font-size: clamp(72px, 12vw, 180px); }
.foot__sub { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.foot__sub b { font-size: 15px; letter-spacing: .28em; color: var(--paper); }
.foot__sub span { font-size: 14px; letter-spacing: .2em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; }
.foot__nav a, .foot__nav button { color: var(--paper); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; }
.foot__nav a:hover { color: var(--lime); }
.foot__nav button { color: var(--lime); font-weight: 600; font-size: 14px; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 20px 64px; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--soft); font-size: 13px; line-height: 1.8; }
.foot__legal > div { display: flex; flex-direction: column; gap: 4px; }
.foot__legal b { color: var(--paper); font-weight: 600; }
.foot__ip { max-width: 640px; }

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: clamp(24px, 4vw, 40px); border: 0; border-top: 8px solid var(--blue); border-radius: 18px;
  background: var(--white); color: var(--ink);
  box-shadow: 12px 12px 0 var(--ink); overflow-y: auto;
}
.modal::backdrop { background: rgba(18,19,22,.62); backdrop-filter: blur(3px); }
.modal__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; transition: rotate .3s var(--ease); }
.modal__x:hover { rotate: 90deg; }
.enq { display: flex; flex-direction: column; gap: 22px; }
.enq__t { font-family: var(--f-display); font-weight: 700; font-size: 24px; padding-right: 48px; }
.enq__tz { font-size: 18px; font-weight: 500; letter-spacing: .06em; }
.enq fieldset { border: 0; margin: 0; padding: 0; }
.enq legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.enq__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.enq label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.enq input, .enq select, .enq textarea { min-height: 48px; padding: 10px 14px; border: 1px solid #8A8E95; border-radius: 10px; background: var(--white); font-weight: 400; }
.enq input:focus, .enq select:focus, .enq textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.enq textarea { resize: vertical; }
.enq small { font-weight: 400; }
.enq__err { color: #C42A18; font-size: 14px; font-weight: 600; }
.sent { min-height: 360px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.sent__ok { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.sent__t { font-family: var(--f-display); font-weight: 800; font-size: 32px; line-height: 1.1; }
.sent__tz { font-family: var(--f-zh-serif); font-weight: 700; font-size: 24px; letter-spacing: .08em; }
.sent .btn { align-self: flex-start; }

/* =========================================================
   v2 — real work, P_P mark hero, project pages
   ========================================================= */
.proj { text-decoration: none; color: inherit; }
.proj__cover { background: #E6E8E3; }
.proj__cover img { transition: transform 1s var(--ease); }
.proj:hover .proj__cover img { transform: scale(1.05); }
.proj h3 .en { font-weight: 700; letter-spacing: -.01em; }

/* ---------- Hero mark: P [the pause] P ---------- */
.pp {
  --open: 1; --spread: 0;
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  margin: clamp(16px, 3vw, 40px) 0 clamp(64px, 6vw, 88px);
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(112px, 27vw, 420px); line-height: .78; letter-spacing: -.04em;
  user-select: none;
}
.pp__p { display: block; translate: calc(var(--spread) * var(--dir) * 12vw) 0; transition: translate .1s linear; }
.pp__p--l { --dir: -1; }
.pp__p--r { --dir: 1; }
.pp__gap {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .045em;
  width: calc(.62em * var(--open)); height: .7em; margin-inline: .05em; flex: none;
}
.pp__window {
  position: relative; flex: 1; display: block; overflow: hidden; border-radius: .07em;
  background: var(--ink); transform-origin: center; text-decoration: none;
  box-shadow: 0 .04em .08em -.04em rgba(18,19,22,.4);
}
.pp__reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.12; transition: opacity .7s ease, scale 2.4s var(--ease); }
.pp__reel img.is-on { opacity: 1; scale: 1; }
.pp__cap {
  position: absolute; left: 8px; bottom: 8px; right: 8px; z-index: 2;
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(9px, .9vw, 11px); letter-spacing: .04em; line-height: 1.3;
  color: var(--paper); text-shadow: 0 1px 6px rgba(0,0,0,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp__window:hover .pp__reel img.is-on { scale: 1.06; }
.pp__bar { display: flex; height: .1em; flex: none; }
.pp__bar i { flex: 1; transform-origin: left; }
.pp__bar i:nth-child(1) { background: var(--blue); }
.pp__bar i:nth-child(2) { background: var(--coral); }
.pp__bar i:nth-child(3) { background: var(--lime); }
.pp__bar i:nth-child(4) { background: var(--lav); }
.pp__side {
  position: absolute; top: 100%; margin-top: 16px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .06em;
  color: var(--grey); text-transform: uppercase;
}
.pp__side--l { left: 0; }
.pp__side--r { right: 0; text-align: right; }
@media (max-width: 640px) {
  .pp { font-size: 29vw; margin-top: 44px; }
  .pp__side { font-size: 10px; }
}

/* ---------- Tagline ---------- */
.hero__grid { margin-top: clamp(16px, 2vw, 32px); }
.hero__copy .tagline {
  font-family: var(--f-display); font-weight: 800; font-stretch: 110%;
  font-size: clamp(34px, 4.6vw, 68px); line-height: 1; letter-spacing: -.035em; color: var(--ink);
}
.t-clear { display: inline-block; color: var(--blue); }
.t-free { display: inline-block; color: var(--coral); font-style: italic; }
.fl { display: inline-block; transition: translate .5s var(--ease); }
.hero__copy { gap: 18px; }

/* ---------- Highlights with real images ---------- */
.hl__art img { width: 100%; height: 100%; object-fit: cover; }
.hl__art img.is-top { object-position: top; }
.hl__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,19,22,.35), rgba(18,19,22,0) 40%, rgba(18,19,22,.15)); pointer-events: none; }
.hl__count { position: absolute; top: 20px; right: 18px; z-index: 2; color: var(--paper); font-size: 11px; }

/* ---------- Website cards ---------- */
a.site { text-decoration: none; color: inherit; }
.browser__view[data-scrollshot] { padding: 0; display: block; background: #E6E8E3; }
.browser__view[data-scrollshot] img { position: absolute; inset: 0 0 auto; width: 100%; height: auto; object-fit: initial; transition: transform 3s cubic-bezier(.45,0,.25,1); }
.site__meta .mono { font-size: 11px; color: var(--grey); }

/* ---------- Illustration cards ---------- */
.masonry { columns: 3 280px; column-gap: 24px; }
.art { display: block; break-inside: avoid; margin: 0 0 28px; text-decoration: none; color: var(--paper); }
.art__frame { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #2A2C31; }
.art__frame img { position: static; width: 100%; height: auto; display: block; transition: transform 1.2s var(--ease), filter .6s; }
.art:hover .art__frame img { transform: scale(1.04); }
.art__cap { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--soft); font-size: 13px; }
.art__cap > b { color: var(--lime); font-size: 12px; }
.art__cap > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; color: #A9ADB5; }
.art__cap > span:nth-child(2) b { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--paper); }
.art__cap > .mono { color: #A9ADB5; font-size: 11px; }

/* ---------- About portrait ---------- */
.polaroid__img { overflow: hidden; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* =========================================================
   PROJECT PAGE
   ========================================================= */
.phead { position: relative; padding-block: clamp(24px, 4vw, 48px) 0; border-bottom: 1px solid var(--ink); overflow: hidden; }
.phead::before { content: ""; position: absolute; right: -140px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .35; pointer-events: none; }
.ph__row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; position: relative; }
.ph__title { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph__en { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: clamp(40px, 7.4vw, 120px); line-height: .92; letter-spacing: -.04em; overflow-wrap: anywhere; }
.ph__en .ch { display: inline-block; }
.ph__zh { font-family: var(--f-zh-serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: .1em; }
.ph__meta { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 14px 32px; margin: 0; }
.ph__meta dt { font-size: 11px; color: var(--grey); text-transform: uppercase; }
.ph__meta dd { margin: 2px 0 0; font-weight: 600; }
.ph__desc { max-width: 720px; margin-top: 24px; font-size: 16px; line-height: 1.9; color: var(--soft); }
.phead .btn { margin-top: 20px; }
.ph__cover { margin-top: clamp(28px, 4vw, 48px); height: clamp(220px, 42vw, 560px); overflow: hidden; }
.ph__cover img { width: 100%; height: 100%; object-fit: cover; }

.pblock { padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.pblock__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: clamp(24px, 3vw, 40px); }
.pblock__head--sm { margin-bottom: 20px; }
.pblock__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 48px); line-height: 1; letter-spacing: -.03em; }
.pblock__t span { font-family: var(--f-zh-serif); font-weight: 700; font-size: .6em; letter-spacing: .1em; margin-left: 6px; }

.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot__btn { display: block; padding: 0; border: 0; background: #E6E8E3; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.shot__btn img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.shot__btn:hover img { transform: scale(1.025); }
.shot figcaption, .vid figcaption { font-size: 11px; color: var(--grey); }
.story__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.story__grid .is-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .story__grid { grid-template-columns: 1fr; } }

.gif { position: relative; border-radius: 8px; overflow: hidden; background: #E6E8E3; }
.gif img { width: 100%; height: auto; display: block; }
.gif__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 4px 4px 0 var(--lime); }
.vid { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vid video { width: 100%; border-radius: 8px; background: #000; display: block; }

/* logo lab */
.lab { background: var(--ink); color: var(--paper); border-bottom: 0; overflow: hidden; }
.lab .pblock__t span { color: #C9CCD2; }
.lab__stage { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(28px, 4vw, 64px); align-items: center; }
.deck { position: relative; aspect-ratio: var(--ratio); width: 100%; max-height: 62vh; cursor: pointer; margin: 24px 24px 24px 0; }
.deck__card {
  position: absolute; inset: 0; margin: 0; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 50px -24px rgba(0,0,0,.7);
  transform: translate(calc(var(--pos) * 14px), calc(var(--pos) * -12px)) rotate(calc(var(--pos) * 2.5deg)) scale(calc(1 - var(--pos) * .035));
  transition: transform .55s var(--ease), opacity .3s;
}
.deck__card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.deck__card figcaption { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 11px; }
.deck__card.is-out { transform: translate(115%, -6%) rotate(14deg); opacity: 0; }
.deck:hover .deck__card[aria-hidden="false"] { transform: translateY(-6px) rotate(-1deg); }
.lab__count { font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.04em; }
.lab__count span { font-size: .35em; color: #8A8E95; margin-left: 6px; }
.lab__hint { font-size: 14px; color: #C9CCD2; line-height: 1.7; margin: 12px 0 18px; }
.lab__hint .mono { font-size: 11px; color: #8A8E95; }
.lab__btns { display: flex; gap: 10px; margin-bottom: 20px; }
.lab__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--paper); background: transparent; color: var(--paper); font-size: 18px; transition: background-color .25s, color .25s; }
.lab__btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.lab__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lab__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #fff; aspect-ratio: 1; opacity: .55; transition: opacity .25s, border-color .25s; }
.lab__thumbs button.is-on, .lab__thumbs button:hover { opacity: 1; border-color: var(--lime); }
.lab__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.compare-wrap { margin-top: clamp(48px, 6vw, 80px); }
.compare { position: relative; aspect-ratio: var(--ratio); max-height: 70vh; width: 100%; border-radius: 14px; overflow: hidden; background: #fff; cursor: ew-resize; touch-action: pan-y; }
.compare > img, .compare__top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--lime); translate: -1px 0; pointer-events: none; }
.compare__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.compare input { position: absolute; inset: auto 0 0; width: 100%; opacity: 0; height: 44px; cursor: ew-resize; }
.compare__tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; z-index: 2; }
.compare__tag--l { left: 12px; }
.compare__tag--r { right: 12px; background: var(--lime); color: var(--ink); }
.lab__extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.lab .shot figcaption { color: #A9ADB5; }
@media (max-width: 820px) { .lab__stage { grid-template-columns: 1fr; } .deck { margin-right: 14px; } }

/* applications strip */
.apps__strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
.apps__strip .shot { flex: 0 0 min(78vw, 560px); scroll-snap-align: start; }
.apps__strip .shot figcaption { font-size: 13px; color: var(--ink); font-family: var(--f-body); text-transform: none; }

/* mock-ups, full bleed */
.mocks__list { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.mocks__list .shot { padding-inline: clamp(0px, 2vw, 24px); }
.mocks__list .shot__btn { border-radius: clamp(0px, 1vw, 12px); }
.mocks__list figcaption { padding-inline: var(--gutter); }

.process { background: #1A1B1F; color: var(--paper); border-bottom: 0; }
.process__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

/* live website */
.browser--big { box-shadow: 14px 14px 0 var(--ink); }
.browser__scroll { height: min(76vh, 760px); overflow-y: auto; background: #E6E8E3; overscroll-behavior: contain; }
.browser__scroll img { width: 100%; height: auto; display: block; }
.bigsite { margin-bottom: 48px; }
.bigsite__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.bigsite__row .mono { color: var(--grey); font-size: 11px; }

.series { background: var(--lime); border-block: 1.5px solid var(--ink); padding-block: 18px; }
.series__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -.03em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.series__t .mono { font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.series__t span:last-child:not(.mono) { font-family: var(--f-zh-serif); font-size: .6em; letter-spacing: .1em; }

/* prev / all / next */
.pn { display: grid; grid-template-columns: 1fr auto 1fr; border-bottom: 1px solid var(--ink); }
.pn a { display: flex; flex-direction: column; gap: 4px; padding: clamp(24px, 4vw, 48px) var(--gutter); text-decoration: none; transition: background-color .3s; }
.pn a:hover { background: var(--lime); }
.pn a .mono { font-size: 11px; color: var(--grey); }
.pn__a b { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 36px); letter-spacing: -.02em; line-height: 1.05; }
.pn__a span:last-child { font-family: var(--f-zh-serif); font-weight: 700; }
.pn__a--next { text-align: right; align-items: flex-end; }
.pn__all { border-inline: 1px solid var(--ink); align-items: center; justify-content: center; }
.pn__all b { font-family: var(--f-zh-serif); font-size: 18px; }
@media (max-width: 640px) { .pn { grid-template-columns: 1fr 1fr; } .pn__all { display: none !important; } }
.next__in--solo { grid-template-columns: 1fr; }

/* lightbox */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18,19,22,.94); color: var(--paper); }
.lb::backdrop { background: rgba(18,19,22,.6); }
.lb__fig { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 72px; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 6px; }
.lb__fig figcaption { font-size: 12px; color: #A9ADB5; }
.lb__btn, .lb__x { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--paper); background: rgba(18,19,22,.6); color: var(--paper); font-size: 20px; }
.lb__btn:hover, .lb__x:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.lb__btn--prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb__btn--next { right: 16px; top: 50%; translate: 0 -50%; }
.lb__x { right: 16px; top: 16px; }
@media (max-width: 640px) { .lb__fig { padding: 64px 12px; } .lb__btn { top: auto; bottom: 16px; translate: none; } }

/* =========================================================
   v3 — banners, design files, game, sketchbook, website layout
   ========================================================= */
/* project header: banners crossfade */
.ph__cover--fade { position: relative; }
.ph__cover--fade img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.ph__cover--fade img.is-on { opacity: 1; }

/* design files: artboards on a cutting mat */
.lab--paper { color: var(--ink); background-color: #E9ECE4;
  background-image: linear-gradient(rgba(18,19,22,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(18,19,22,.07) 1px, transparent 1px);
  background-size: 32px 32px; border-bottom: 1px solid var(--line); }
.lab--paper .pblock__t span { color: var(--ink); }
.lab--paper .deck__card { box-shadow: 0 0 0 1px rgba(18,19,22,.12), 0 26px 40px -26px rgba(18,19,22,.55); border-radius: 2px; overflow: visible; }
.lab--paper .deck__card img { border-radius: 2px; background: #fff; }
.lab--paper .deck__card::before, .lab--paper .deck__card::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--ink); border-style: solid; pointer-events: none; }
.lab--paper .deck__card::before { left: -10px; top: -10px; border-width: 1px 0 0 1px; }
.lab--paper .deck__card::after { right: -10px; bottom: -10px; border-width: 0 1px 1px 0; }
.lab--paper .deck__card figcaption { left: 0; bottom: auto; top: -30px; background: transparent; color: var(--ink); padding: 0; }
.lab--paper .lab__count span, .lab--paper .lab__hint, .lab--paper .lab__hint .mono { color: var(--soft); }
.lab--paper .lab__btn { border-color: var(--ink); color: var(--ink); }
.lab--paper .lab__btn:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.lab--paper .lab__thumbs button.is-on, .lab--paper .lab__thumbs button:hover { border-color: var(--blue); }
.lab--paper .deck { margin-top: 48px; }
.artboard { max-width: 1000px; }

/* playable game */
.arcade { background: #1B23B8; color: var(--paper); border-bottom: 0; position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.5px); background-size: 18px 18px; }
.arcade .pblock__t span { color: #DDE1FF; }
.arcade__stage { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.arcade__phone { position: relative; width: 100%; border-radius: 34px; padding: 12px; background: var(--ink); box-shadow: 10px 10px 0 var(--lime), 0 40px 60px -30px rgba(0,0,0,.6); }
.arcade__hud { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px 8px; font-size: 11px; color: var(--lime); letter-spacing: .06em; }
.arcade__hearts { color: var(--coral); letter-spacing: 0; }
.arcade__bar { height: 6px; margin: 0 10px 10px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.arcade__bar i { display: block; height: 100%; width: 20%; background: var(--lime); transition: width .5s var(--ease); }
.arcade__screen { position: relative; aspect-ratio: var(--ratio); border-radius: 22px; overflow: hidden; background: #fff; }
.arcade__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.arcade__screen > img.is-on { opacity: 1; }
.arcade__screen > img.is-top { z-index: 1; }
.arcade__tap { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer; }
.arcade__go { position: absolute; z-index: 4; left: 50%; bottom: 7%; translate: -50% 0; padding: 10px 16px; border-radius: 999px; background: var(--coral); color: #fff; font: 10px/1.2 var(--f-pixel); white-space: nowrap; pointer-events: none; box-shadow: 4px 4px 0 var(--ink); animation: pp-bob 1s steps(2) infinite; }
.arcade__go[hidden] { display: none; }
@keyframes pp-bob { 50% { translate: -50% -4px; } }
.arcade__pop { position: absolute; z-index: 5; translate: -50% -50%; font: 16px/1 var(--f-pixel); color: #FFE14D; text-shadow: 3px 3px 0 var(--ink); pointer-events: none; animation: pp-pop .9s var(--ease) forwards; }
@keyframes pp-pop { from { opacity: 0; transform: translateY(10px) scale(.6); } 25% { opacity: 1; transform: translateY(-10px) scale(1.2); } to { opacity: 0; transform: translateY(-60px) scale(1); } }
.arcade__end { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: rgba(27,35,184,.92); color: #fff; overflow: hidden; }
.arcade__end[hidden] { display: none; }
.arcade__px { font: 14px/1.6 var(--f-pixel); color: var(--lime); letter-spacing: .02em; }
.arcade__rt { font-family: var(--f-zh-serif); font-weight: 700; font-size: 18px; letter-spacing: .1em; }
.arcade__pct { font-family: var(--f-display); font-weight: 900; font-size: 72px; line-height: 1; }
.arcade__pct b { font-weight: 900; }
.arcade__msg { font-size: 14px; line-height: 1.7; max-width: 220px; color: #DDE1FF; }
.arcade__confetti i { position: absolute; top: -12px; left: calc(var(--i) * 5.6%); width: 8px; height: 14px; background: var(--lime); animation: pp-fall 2.4s linear calc(var(--i) * -0.13s) infinite; }
.arcade__confetti i:nth-child(3n) { background: var(--coral); }
.arcade__confetti i:nth-child(3n+1) { background: #FFE14D; width: 10px; height: 10px; border-radius: 50%; }
@keyframes pp-fall { to { transform: translateY(720px) rotate(540deg); } }
.arcade__blink { font-size: clamp(16px, 2vw, 24px); color: #FFE14D; animation: pp-blink 1.1s steps(1) infinite; }
@keyframes pp-blink { 50% { opacity: 0; } }
.arcade .lab__hint { color: #DDE1FF; }
.arcade .lab__hint .mono { color: #B7BFFF; }
.arcade__sel { font-size: 11px; color: var(--lime); letter-spacing: .12em; margin: 28px 0 12px; }
.arcade__levels { display: grid; grid-template-columns: repeat(5, minmax(0, 72px)); gap: 10px; }
.arcade__levels button { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 9 / 16; background: #fff; opacity: .6; transition: opacity .2s, border-color .2s, transform .2s; }
.arcade__levels button:hover { opacity: 1; transform: translateY(-3px); }
.arcade__levels button.is-on { opacity: 1; border-color: var(--lime); }
.arcade__levels img { width: 100%; height: 100%; object-fit: cover; }
.arcade__levels span { position: absolute; left: 4px; bottom: 4px; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: var(--lime); font-size: 10px; }
@media (max-width: 760px) {
  .arcade__stage { grid-template-columns: 1fr; justify-items: center; }
  .arcade__phone { max-width: 320px; }
  .arcade__side { width: 100%; }
}

/* sketchbook: loose sheets on a desk */
.sketchbook { background: #D9C7A6; border-bottom: 0;
  background-image: radial-gradient(rgba(90,60,20,.12) 1px, transparent 1.4px); background-size: 6px 6px; }
.sketchbook .pblock__t span { color: var(--ink); }
.sketchbook .lab__hint { color: #4A3F2E; margin: 0; }
.board { position: relative; height: clamp(560px, 62vw, 820px); }
.sheet { position: absolute; left: var(--x); top: var(--y); width: clamp(160px, 21%, 280px); margin: 0; padding: 10px 10px 34px; background: #fff; box-shadow: 0 18px 30px -18px rgba(60,40,10,.6); rotate: var(--r); cursor: grab; user-select: none; touch-action: pan-y; transition: rotate .4s var(--ease), box-shadow .3s, scale .3s; }
.sheet--tall { width: clamp(130px, 15%, 210px); }
.sheet img { width: 100%; height: auto; display: block; pointer-events: none; }
.sheet figcaption { position: absolute; left: 12px; bottom: 9px; font-size: 11px; color: var(--soft); }
.sheet__tape { position: absolute; left: 50%; top: -12px; width: 76px; height: 24px; translate: -50% 0; rotate: -4deg; background: rgba(200,240,60,.75); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.sheet:hover { scale: 1.03; }
.sheet.is-drag { cursor: grabbing; rotate: 0deg; scale: 1.06; box-shadow: 0 34px 50px -24px rgba(60,40,10,.7); }
.sketchbook .compare-wrap { margin-top: 56px; }
.compare--tall { max-width: 420px; max-height: none; margin-inline: auto; }
@media (max-width: 760px) {
  .board { height: auto; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 4px 18px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .sheet, .sheet--tall { position: relative; left: auto; top: auto; flex: 0 0 62%; width: auto; scroll-snap-align: center; cursor: zoom-in; }
  .sheet--tall { flex-basis: 46%; }
}

/* website layout: the screenshot pans with the page scroll */
.browser__pan { position: relative; height: clamp(300px, 46vw, 540px); overflow: hidden; background: #E6E8E3; }
.browser__pan img { width: 100%; height: auto; display: block; will-change: transform; }
.bigsite { margin-bottom: clamp(48px, 6vw, 80px); }
.bigsite__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; font-family: var(--f-zh-serif); font-weight: 700; font-size: clamp(18px, 2vw, 24px); letter-spacing: .06em; }
.bigsite__t .mono { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--grey); letter-spacing: .1em; }
.bigsite__frames { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.bigsite--duo .bigsite__frames { grid-template-columns: minmax(0, 1fr) clamp(170px, 20vw, 250px); }
.phone { position: relative; border: 8px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--ink); box-shadow: 10px 10px 0 var(--lime); }
.phone .browser__pan { height: auto; aspect-ratio: 9 / 18.5; border-radius: 22px; }
.phone__notch { position: absolute; z-index: 2; left: 50%; top: 6px; width: 34%; height: 14px; translate: -50% 0; border-radius: 99px; background: var(--ink); }
.bigsite__row .btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .bigsite--duo .bigsite__frames { grid-template-columns: minmax(0, 1fr) 34%; gap: 12px; } .phone { border-width: 5px; border-radius: 20px; box-shadow: 6px 6px 0 var(--lime); } .phone .browser__pan { border-radius: 15px; } }

/* lightbox: tall pages scroll inside the viewer */
.lb--tall .lb__fig { display: block; overflow-y: auto; padding: 72px clamp(12px, 6vw, 96px); text-align: center; }
.lb--tall .lb__fig img { max-height: none; width: min(1200px, 100%); height: auto; }
.lb--tall .lb__fig figcaption { margin-top: 12px; }
.deck { width: min(100%, calc(62vh * var(--ratio))); }
.deck__card figcaption { transition: opacity .3s; }
.lab--paper .deck__card[aria-hidden="true"] figcaption { opacity: 0; }
.sketchbook .label--lime { color: var(--blue); }

/* Graphic Design page: square covers */
[data-projects] .proj__cover { aspect-ratio: 1 / 1; }

/* =========================================================
   中文為主版 — Chinese leads, English supports
   ========================================================= */
:root { --f-zh-head: 'Noto Serif TC', serif; --f-mix: 'Archivo', 'Noto Serif TC', serif; }
.h2 .label { order: 0; }
.h2__zh { order: 1; font-family: var(--f-zh-head); font-weight: 900; font-size: clamp(40px, 6vw, 84px); line-height: 1.12; letter-spacing: .04em; }
.h2__zh .paren { font-family: var(--f-display); font-weight: 800; font-size: .8em; }
.h2__en { order: 2; font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -.01em; color: var(--grey); }
.sec--dark .h2__en, .page-hero--dark .h2__en { color: #A9ADB5; }
.page-hero__zh { order: 1; font-family: var(--f-zh-head); font-weight: 900; font-size: clamp(56px, 12vw, 168px); line-height: 1.02; letter-spacing: .02em; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 .1em; }
.page-hero__zh .tile--inline { width: .9em; height: .6em; }

.hero__copy .tagline.tagline--zh { font-family: var(--f-zh-head); font-weight: 900; font-stretch: normal; font-size: clamp(38px, 5vw, 72px); line-height: 1.28; letter-spacing: .02em; }
.tagline--zh .t-free { font-style: normal; }
.hero__en { font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 1.5vw, 20px); color: var(--soft); letter-spacing: -.01em; }

.callme { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .02em; }
.callme em, .contact__hz em { font-family: inherit; font-style: normal; font-weight: 900; }
.contact__hz { order: 1; font-family: var(--f-zh-head); font-weight: 900; font-size: clamp(40px, 6vw, 88px); line-height: 1.2; letter-spacing: .03em; }
.contact__hz .paren { font-family: var(--f-display); font-weight: 800; font-size: .8em; }
.contact__en { order: 2; font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; max-width: none; opacity: .8; }
.contact__ft { font-family: var(--f-zh-head); font-weight: 900; font-size: 26px; letter-spacing: .04em; }
.contact__ftz { font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-top: -10px; color: var(--grey); }
.contact__at { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .04em; }
.contact__at span { display: block; font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: 0; opacity: .7; }

.about__name span.about__zh { font-family: var(--f-zh-head); font-weight: 900; font-size: clamp(44px, 5vw, 72px); line-height: 1.1; letter-spacing: .12em; }
.about__name span.about__en { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; color: var(--soft); }
.value__t { font-family: var(--f-zh-head); font-weight: 900; font-size: 19px; letter-spacing: .04em; }
.value__t span { font-family: var(--f-display); font-size: 13px; font-weight: 600; color: var(--grey); letter-spacing: 0; margin-left: 4px; }

.hl__foot .en { font-family: var(--f-zh-head); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.hl__foot .zh { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--grey); }
.proj h3 .zh, .site h3 .zh { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--grey); }
.art__cap > span:nth-child(2) > span { font-family: var(--f-display); }
.more-link__t { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .04em; }
.more-link__t span { font-family: var(--f-display); font-weight: 600; font-size: .55em; letter-spacing: 0; }
.proj-more__zh { font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: 0; color: var(--grey); }

.next__t { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .04em; }
.next__tz { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: 0; color: var(--grey); }
.next__zh { font-family: var(--f-zh-head); font-weight: 900; font-size: clamp(40px, 6vw, 88px); line-height: 1.1; letter-spacing: .04em; }
.next__en { font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; letter-spacing: 0; line-height: 1.2; }

.hang__t { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .06em; }
.hang__t span { font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: 0; color: var(--grey); margin-left: 6px; }
.svc h3 .zh { font-family: var(--f-zh-head); font-weight: 900; font-size: 32px; line-height: 1.15; letter-spacing: .08em; }
.svc h3 .en { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: 0; }
.flow__row b span, .chips li span[lang="en"] { font-family: var(--f-display); font-weight: 500; font-size: .82em; opacity: .65; }
.uses__t { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .06em; }
.uses__tz { font-family: var(--f-display); font-size: 15px; letter-spacing: 0; }

.pblock__t { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .04em; }
.pblock__t span { font-family: var(--f-display); font-weight: 700; font-size: .5em; letter-spacing: -.01em; color: var(--grey); }
.lab .pblock__t span, .arcade .pblock__t span, .process .pblock__t span { color: #A9ADB5; }
.series__t { font-family: var(--f-mix); font-weight: 900; letter-spacing: .02em; }
.series__t span:last-child:not(.mono) { font-family: var(--f-display); font-weight: 700; font-size: .5em; letter-spacing: 0; }
.ph__en { font-family: var(--f-mix); font-weight: 900; font-stretch: normal; font-size: clamp(40px, 6.4vw, 104px); line-height: 1.08; letter-spacing: .01em; }
.ph__zh { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 26px); letter-spacing: -.01em; color: var(--soft); }
.pn__a span:last-child { font-family: var(--f-display); font-weight: 600; color: var(--grey); }
.enq__t { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .04em; }
.enq__tz { font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--grey); }
.sent__t { font-family: var(--f-zh-head); font-weight: 900; letter-spacing: .04em; }
.sent__tz { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.nav__links a { letter-spacing: .06em; }
.callme em, .contact__hz em { letter-spacing: inherit; font-stretch: normal; }

/* =========================================================
   作品保護：不能拖曳、長按存圖；列印時隱藏作品
   ========================================================= */
img, video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vid--loop video { display: block; width: 100%; height: auto; }
@media print {
  img, video, .shot, .vid, .deck, .board, .arcade, .browser, .phone { visibility: hidden !important; }
  body::before { content: "本網站作品受著作權保護，請勿列印或轉載。© P_P Studio"; display: block; padding: 24px; font-size: 16px; }
}
