* site.css — shared styles for the whole Tristan Zhu site.
   Theme colors arrive as CSS vars (--bg --fg --sub --hair --faint) set on .tz-page. */

* { box-sizing: border-box; }
html {
  width: 100%;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 127, 127, 0.45) var(--tz-page-bg, #0d0d0d);
}
html, body, #root {
  margin: 0; padding: 0;
  background: var(--tz-page-bg, #0d0d0d);
}
body {
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar,
::-webkit-scrollbar-track {
  background-color: var(--tz-page-bg, #0d0d0d);
}
::-webkit-scrollbar-thumb {
  background: rgba(127, 127, 127, 0.45);
  border-radius: 8px;
  border: 2px solid var(--tz-page-bg, #0d0d0d);
}
::-webkit-scrollbar-thumb:hover { background: rgba(127, 127, 127, 0.6); }
a { color: inherit; }
::selection { background: var(--fg); color: var(--bg); }

.tz-page {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
.tz-page.tz-page-inner {
  /* no transition on load — avoids color/layout flash between paints */
}

#root:not(.tz-mounted) {
  min-height: 100dvh;
}
html.tz-booting #root {
  opacity: 0;
}

/* Smooth theme crossfade after first paint */
html.tz-ready,
html.tz-ready body {
  transition: background-color 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.tz-ready .tz-page,
html.tz-ready .tz-topbar,
html.tz-ready .tz-sitefoot,
html.tz-ready .tz-section,
html.tz-ready .tz-mobile-menu,
html.tz-ready .tz-starpal-pop,
html.tz-ready .tz-page [style] {
  transition:
    background-color 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
    color 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.tz-ready .tz-let {
  transition: none;
}

/* ===== scramble letters ===== */
.tz-scramble { display: inline-flex; flex-wrap: nowrap; align-items: flex-end; line-height: .82; white-space: nowrap; }
.tz-let { display: inline-block; cursor: pointer; letter-spacing: -0.035em; transition: none; }
.tz-sp { display: inline-block; width: .26em; }

/* ===== top bar ===== */
.tz-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--hair);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}
.tz-topbar-spacer {
  height: var(--tz-topbar-h, 56px);
  flex-shrink: 0;
}
.tz-tb-mark { font-weight: 700; font-size: clamp(13px,1.1vw,15px); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.tz-tb-mark sup { font-size: .55em; }
.tz-tb-nav { display: flex; gap: clamp(14px,2vw,30px); margin-left: auto; }
.tz-tb-link {
  font-weight: 600; font-size: 12px; letter-spacing: 0.02em; text-decoration: none; padding: 6px 0;
  position: relative; opacity: .62; transition: opacity .2s;
}
.tz-tb-link:hover { opacity: 1; }
.tz-tb-link.is-active { opacity: 1; }
.tz-tb-link.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: var(--fg);
}
.tz-tb-theme { display: flex; align-items: center; padding-left: clamp(10px,1.5vw,22px); }
.tz-tb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tz-tb-menu-btn {
  display: none; appearance: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px; margin: -8px;
}
.tz-tb-menu-btn span {
  display: block; width: 22px; height: 2px; background: currentColor;
}
.tz-mobile-menu {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
  justify-content: center; align-items: stretch; padding: clamp(24px,6vw,48px);
}
.tz-mobile-nav { display: flex; flex-direction: column; gap: 0; }
.tz-mobile-link {
  font-weight: 700; font-size: clamp(28px,8vw,44px); letter-spacing: -0.02em;
  text-decoration: none; padding: 14px 0; border-top: 1px solid var(--hair);
}
.tz-mobile-link.is-active { opacity: 1; }
.tz-mobile-close {
  margin-top: 24px; align-self: flex-start; appearance: none; background: none; border: none;
  font: inherit; font-weight: 700; cursor: pointer; letter-spacing: 0.04em;
}
.tz-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px;
  background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none;
}
.tz-skip:focus { left: 12px; top: calc(var(--tz-topbar-h, 56px) + 8px); }
.tz-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;
}
.tz-gal-img-empty {
  min-height: 120px; display: flex; align-items: center; justify-content: center;
  background: var(--faint); border: 1px solid var(--hair);
}
.tz-dither-fallback { width: 100%; height: auto; display: block; }
.tz-playground-fallback { padding: 24px 0; }

a:focus-visible, button:focus-visible, .tz-let:focus-visible, .tz-mondrian-cell:focus-visible {
  outline: 2px solid var(--fg); outline-offset: 3px;
}
.tz-mondrian-cell { outline: none; }

/* ===== hero ===== */
.tz-hero {
  min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden;
  padding: clamp(20px,3vw,42px); cursor: crosshair;
}
.tz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.tz-name { font-weight: 700; font-size: clamp(13px,1.05vw,16px); letter-spacing: -0.01em; line-height: 1; }
.tz-name sup { font-size: .58em; vertical-align: super; }
.tz-meta { font-weight: 600; font-size: 11px; letter-spacing: 0.015em; margin-top: 7px; }
.tz-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.tz-hint { font-weight: 600; font-size: 11px; letter-spacing: 0.04em; margin-bottom: 14px; opacity: .9; }
.tz-giant { font-weight: 700; margin: 0; }
.tz-giant-1 { font-size: clamp(56px,12.5vw,188px); line-height: 0.88; }
.tz-giant-2 { font-size: clamp(92px,20vw,308px); line-height: 0.84; margin-top: 0.04em; }
.tz-row2 { display: flex; align-items: flex-start; gap: clamp(20px,4vw,64px); }

.tz-cats { display: flex; flex-direction: column; gap: 4px; margin-left: auto; padding-bottom: clamp(8px,1.4vw,22px); }
.tz-cat { display: flex; align-items: baseline; gap: 13px; text-decoration: none; padding: 8px 2px; min-height: 44px; cursor: pointer; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.tz-cat-n { font-size: 11px; font-weight: 700; width: 20px; }
.tz-cat-l { font-size: clamp(17px,2.1vw,31px); font-weight: 700; letter-spacing: -0.025em; line-height: .95; box-shadow: inset 0 -0.06em 0 transparent; transition: box-shadow .22s; }
.tz-cat-a { font-size: clamp(14px,1.4vw,21px); opacity: .32; transition: opacity .25s, transform .25s; }
.tz-cat:hover { transform: translateX(9px); }
.tz-cat:hover .tz-cat-a { opacity: 1; transform: translate(4px,-4px); }
.tz-cat:hover .tz-cat-l { box-shadow: inset 0 -0.08em 0 var(--fg); }
.tz-cat:hover .tz-cat-n { color: var(--fg) !important; }
.tz-foot { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: clamp(10px,0.92vw,12.5px); letter-spacing: 0.012em; }

/* ===== mondrian theme palette ===== */
/* Each color owns a PERMANENT cell in a 3×3 mosaic that fully tiles the board.
   Selecting never moves a color: only the grid tracks (cols/rows) it sits on
   grow, so the active swatch becomes the largest tile in place while the
   others shrink. The black board (gap + frame) draws the Mondrian gridlines. */
.tz-mondrian {
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
  flex-shrink: 0;
}
.tz-mondrian-board {
  aspect-ratio: 1;
  box-sizing: border-box;
  display: grid;
  gap: 5px;
  padding: 6px;
  background: #0a0a0a;
  grid-template-areas:
    "a b c"
    "a d c"
    "e f g";
  transition:
    grid-template-columns 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    grid-template-rows 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tz-mondrian-cell {
  margin: 0; padding: 0; border: none; border-radius: 0;
  appearance: none; cursor: pointer; outline: none; box-sizing: border-box;
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  z-index: 1;
  transition: background-color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tz-mondrian-cell.is-active { z-index: 2; cursor: default; }
.tz-mondrian-cell:not(.is-active):hover {
  z-index: 3; outline: 2px solid #f1efe9; outline-offset: -2px;
}
.tz-mondrian-label {
  font-weight: 600; font-size: 10.5px; letter-spacing: 0.02em;
}
/* hero palette (large) vs. top bar (compact) */
.tz-hero .tz-mondrian-board { width: clamp(132px, 12vw, 172px); }
.tz-topbar .tz-mondrian-board { width: clamp(52px, 5.2vw, 64px); }

/* ===== star palette launcher (top bar) ===== */
.tz-starpal { position: relative; display: flex; align-items: center; }
.tz-star-btn {
  appearance: none; background: none; border: 0; padding: 8px; margin: -8px;
  cursor: pointer; line-height: 0; display: block; -webkit-tap-highlight-color: transparent;
}
.tz-star-svg {
  width: clamp(27px, 3vw, 33px); height: auto; display: block;
  transform: rotate(30deg); transform-origin: 50% 50%;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.tz-star-btn:hover .tz-star-svg { transform: rotate(30deg) scale(1.06); }
.tz-starpal.is-open .tz-star-svg,
.tz-starpal.is-open .tz-star-btn:hover .tz-star-svg { transform: rotate(246deg) scale(.82); }
.tz-starpal-pop {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 80;
  padding: 13px; background: var(--bg);
  border: 1px solid var(--hair); box-shadow: 0 20px 54px rgba(0,0,0,.30);
  transform-origin: top right; transform: scale(.32); opacity: 0; pointer-events: none;
  transition: transform .44s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.tz-starpal.is-open .tz-starpal-pop { transform: scale(1); opacity: 1; pointer-events: auto; }
.tz-starpal-pop .tz-mondrian { align-items: stretch; }
.tz-starpal-pop .tz-mondrian-label { margin-top: 10px; text-align: right; }
@media (prefers-reduced-motion: reduce) {
  .tz-mondrian-board { transition: grid-template-columns 0.2s ease, grid-template-rows 0.2s ease; }
}

/* ===== generic sections ===== */
.tz-section { padding: clamp(56px,8vh,116px) clamp(16px,3vw,42px); border-top: 1px solid var(--hair); }
.tz-sec-head { margin-bottom: clamp(26px,4vw,52px); }
.tz-sec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: clamp(10px,1.4vw,18px); }
.tz-kicker { font-weight: 700; font-size: clamp(10px,0.95vw,12px); letter-spacing: 0.09em; display: inline-block; }
.tz-sec-note { font-weight: 600; font-size: clamp(10px,0.9vw,12px); letter-spacing: 0.05em; text-align: right; }
.tz-sec-title { font-weight: 700; font-size: clamp(44px,9vw,128px); letter-spacing: -0.03em; line-height: .84; }

/* ===== works grid ===== */
.tz-works { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(16px,1.8vw,30px); }
.tz-works-cat { grid-template-columns: repeat(2,1fr); }
.tz-work { text-decoration: none; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.tz-work-img { position: relative; overflow: hidden; background: transparent; width: 100%; }
.tz-proj-img,
.tz-proj-img-empty {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.tz-proj-img { object-fit: cover; object-position: center bottom; }
.tz-work-img .tz-proj-img { object-position: center bottom; }
.tz-proj-img-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px; transform: none;
}
.tz-proj-img-empty-label {
  font-weight: 700; font-size: clamp(11px,1.1vw,14px); letter-spacing: 0.06em;
  color: var(--sub); line-height: 1.35; max-width: 90%;
}
.tz-work:hover .tz-proj-img { transform: scale(1.035); }
.tz-work-tag { position: absolute; top: 10px; left: 11px; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; mix-blend-mode: difference; color: #fff; z-index: 2; }
.tz-work-meta { display: flex; align-items: baseline; gap: 9px; padding: 11px 2px 0; min-width: 0; }
.tz-work--compact .tz-work-meta {
  flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 10px;
}
.tz-work--compact .tz-work-title {
  font-size: clamp(14px, 1.05vw, 17px); line-height: 1.25;
  overflow-wrap: anywhere; word-break: break-word;
}
.tz-work--compact .tz-work-sub { display: inline; }
.tz-work-type {
  font-weight: 600; font-size: clamp(10px, 0.88vw, 12px); letter-spacing: 0.02em;
  opacity: .58; white-space: nowrap;
}
.tz-work-title { font-weight: 700; font-size: clamp(16px,1.5vw,22px); letter-spacing: -0.02em; min-width: 0; }
.tz-work-sub { font-weight: 600; opacity: .5; }
.tz-work-spacer { flex: 1; }
.tz-work-role { font-weight: 600; font-size: clamp(10px,0.95vw,12.5px); letter-spacing: 0.01em; opacity: .62; white-space: nowrap; }
.tz-work-arrow { font-size: 15px; opacity: .35; transition: transform .25s, opacity .25s; }
.tz-work:hover .tz-work-arrow { opacity: 1; transform: translate(3px,-3px); }
.tz-work:hover .tz-work-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.tz-works-foot { display: flex; flex-wrap: wrap; gap: clamp(18px,4vw,64px); margin-top: clamp(40px,6vw,84px); border-top: 1px solid var(--hair); padding-top: clamp(20px,3vw,40px); }
.tz-bigjump { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: clamp(22px,4vw,58px); letter-spacing: -0.03em; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.tz-bigjump i { font-size: .5em; opacity: .4; font-style: normal; transition: opacity .25s, transform .25s; }
.tz-bigjump:hover { transform: translateX(10px); }
.tz-bigjump:hover i { opacity: 1; transform: translate(4px,-4px); }

/* ===== collaborators ===== */
.tz-collab { font-weight: 700; font-size: clamp(24px,4.6vw,64px); letter-spacing: -0.03em; line-height: 1.04; }
.tz-collab-item { transition: opacity .2s; }
.tz-collab-item:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tz-dot { font-weight: 400; }

/* ===== awards ledger ===== */
.tz-awards { display: flex; flex-direction: column; }
.tz-award {
  display: grid; grid-template-columns: 34px minmax(140px,1fr) 1.4fr minmax(120px,0.95fr) minmax(110px,0.9fr) 56px;
  gap: clamp(10px,1.5vw,26px); align-items: baseline; padding: clamp(16px,2vw,26px) 0;
  border-bottom: 1px solid var(--hair);
}
.tz-award:first-child { border-top: 1px solid var(--hair); }
.tz-aw-idx { font-weight: 700; font-size: 12px; }
.tz-aw-fest { font-weight: 700; font-size: clamp(18px,2.3vw,34px); letter-spacing: -0.025em; line-height: .95; }
.tz-aw-detail { font-weight: 600; font-size: clamp(12px,1.1vw,15px); }
.tz-aw-win { font-style: normal; font-weight: 700; }
.tz-aw-role { font-weight: 600; font-size: clamp(12px,1.05vw,14px); }
.tz-aw-proj { font-weight: 600; font-size: clamp(12px,1.05vw,14px); }
.tz-aw-year { font-weight: 700; font-size: clamp(12px,1.05vw,14px); text-align: right; }

/* ===== contact (landing + page) ===== */
.tz-section-contact { }
.tz-contact-2 { display: block; margin-top: -0.06em; opacity: .35; }
.tz-contact-grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: clamp(36px,5vw,70px); }
.tz-contact-big { display: inline-flex; align-items: center; gap: .25em; text-decoration: none; font-weight: 700; font-size: clamp(26px,5.2vw,76px); letter-spacing: -0.035em; line-height: .9; }
.tz-contact-big i { font-size: .42em; font-style: normal; opacity: .4; transition: transform .25s, opacity .25s; }
.tz-contact-big:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.tz-contact-big:hover i { opacity: 1; transform: translate(5px,-5px); }
.tz-contact-side { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }
.tz-contact-row { display: flex; justify-content: space-between; gap: 18px; text-decoration: none; padding: 9px 0; border-top: 1px solid var(--hair); min-height: 40px; align-items: baseline; }
.tz-cr-k { font-weight: 700; font-size: 11px; letter-spacing: 0.06em; }
.tz-cr-v { font-weight: 700; font-size: clamp(14px,1.4vw,19px); letter-spacing: -0.01em; }
a.tz-contact-row:hover .tz-cr-v { text-decoration: underline; text-underline-offset: 4px; }
.tz-contact-grid2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(24px,4vw,70px); margin-top: clamp(34px,5vw,64px); max-width: 900px; }
.tz-contact-bio {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--hair);
}
.tz-contact-bio-p {
  margin: 0 0 clamp(16px, 2vw, 22px);
  font-weight: 600;
  font-size: clamp(14px, 1.45vw, 18px);
  line-height: 1.5; letter-spacing: -0.01em; text-wrap: pretty;
}
.tz-contact-bio-p:last-child { margin-bottom: 0; }
.tz-contact-bio-photo {
  overflow: visible; background: transparent; border: 0;
}
.tz-contact-bio-photo img {
  display: block; width: 100%; height: auto;
}
.tz-dither { position: relative; display: block; width: 100%; line-height: 0; cursor: crosshair; }
.tz-dither-canvas { display: block; pointer-events: none; }
.tz-contact-note { max-width: 620px; margin: clamp(34px,5vw,60px) 0 0; font-weight: 600; font-size: clamp(14px,1.5vw,20px); line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }

/* ===== inner pages ===== */
.tz-inner-body { flex: 1; min-width: 0; max-width: 100%; overflow-x: hidden; }
#main-content { scroll-margin-top: var(--tz-topbar-h, 56px); }
.tz-pagehead { padding: clamp(40px,7vw,92px) clamp(16px,3vw,42px) clamp(24px,3vw,40px); }
.tz-pagehead .tz-kicker { display: block; margin-bottom: clamp(12px,1.6vw,20px); }
.tz-pagetitle { font-weight: 700; font-size: clamp(64px,16vw,260px); letter-spacing: -0.04em; line-height: .8; }
.tz-pagelede { max-width: 640px; margin: clamp(20px,2.5vw,34px) 0 0; font-weight: 600; font-size: clamp(15px,1.6vw,21px); line-height: 1.42; letter-spacing: -0.01em; text-wrap: pretty; }
.tz-section-grid { border-top: 1px solid var(--hair); }

/* ===== design showcase ===== */
.tz-pagehead-design { padding-bottom: clamp(16px, 2vw, 28px); }
.tz-design-showcase {
  display: flex; flex-direction: column;
  gap: clamp(56px, 8vh, 108px);
  border-top: 1px solid var(--hair);
}
.tz-design-project-head { margin-bottom: clamp(18px, 2.5vw, 28px); }
.tz-design-project-head .tz-kicker { display: block; margin-bottom: 10px; }
.tz-design-project-title {
  margin: 0; font-weight: 700;
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.03em; line-height: .95;
}
/* Masonry: tall images only stretch their column; neighbors flow up underneath */
.tz-design-grid {
  --tz-design-gap: clamp(12px, 1.2vw, 20px);
  column-count: 3;
  column-gap: var(--tz-design-gap);
}
.tz-design-grid-single { column-count: 1; }
.tz-design-cell {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: var(--tz-design-gap);
  overflow: hidden;
  vertical-align: top;
}
.tz-design-img {
  display: block; width: 100%; height: auto;
}
.tz-design-img-empty {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  min-height: clamp(160px, 24vw, 280px);
}
@media (max-width: 1100px) {
  .tz-design-grid { column-count: 2; }
}
@media (max-width: 640px) {
  .tz-design-grid { column-count: 1; }
}

/* ===== photography gallery ===== */
.tz-pagehead-photo { padding-bottom: clamp(16px, 2vw, 28px); }

.tz-playground-section {
  padding: clamp(8px, 1.2vw, 14px) clamp(16px, 3vw, 42px) clamp(20px, 2.5vw, 32px);
}
.tz-playground-wrap {
  position: relative;
  height: calc(100dvh - var(--tz-topbar-h, 56px) - clamp(28px, 4vw, 44px));
  min-height: 480px;
}
.tz-playground-mount {
  position: absolute;
  inset: 0;
  --grav-bg: var(--bg);
  --grav-ink: var(--fg);
  --grav-paper: #F3F2EE;
}
.tz-playground-mount > .grav {
  border-radius: 2px;
  border: 1px solid var(--hair);
  height: 100%;
  background: var(--grav-bg);
  color: var(--grav-ink);
  --bg: var(--grav-bg);
  --ink: var(--grav-ink);
  --paper: var(--grav-paper);
}
.tz-playground-head {
  position: absolute;
  left: clamp(20px, 3vw, 36px);
  top: clamp(14px, 2vw, 24px);
  z-index: 4;
  pointer-events: none;
  max-width: min(92%, 720px);
}
.tz-playground-kicker {
  display: block;
  margin-bottom: clamp(6px, 1vw, 12px);
}
.tz-playground-title {
  font-size: clamp(44px, 11vw, 140px);
  line-height: 0.82;
  pointer-events: auto;
}
.tz-playground-title .tz-let { pointer-events: auto; }

.tz-pg-subsection {
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 42px);
  border-top: 1px solid var(--hair);
}
.tz-pg-subsection .tz-sec-head { margin-bottom: clamp(20px, 3vw, 36px); }
.tz-canvas-mount,
.tz-seq-mount {
  position: relative;
  width: 100%;
}

.tz-photo-showcase {
  display: flex; flex-direction: column;
  gap: clamp(48px, 7vh, 88px);
  border-top: 1px solid var(--hair);
}
.tz-photo-section {
  display: flex; flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}
/* Masonry gallery — column count set inline from JS (2–3 cols) */
.tz-photo-masonry {
  --tz-photo-gap: clamp(10px, 1.2vw, 18px);
  column-gap: var(--tz-photo-gap);
}
.tz-photo-cell {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: var(--tz-photo-gap);
  overflow: hidden;
  vertical-align: top;
}
.tz-photo-img { display: block; width: 100%; height: auto; vertical-align: top; }
.tz-photo-img-empty {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  min-height: clamp(140px, 22vw, 240px);
  background: var(--faint);
}
.tz-photo-img-empty-hero { min-height: clamp(180px, 28vw, 320px); }
.tz-photo-hero {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* ===== work detail ===== */
.tz-detail {
  padding: clamp(28px,4vw,56px) clamp(16px,3vw,42px) 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}
.tz-back { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-decoration: none; opacity: .6; margin-bottom: clamp(22px,3vw,40px); transition: opacity .2s, transform .2s; max-width: 100%; }
.tz-back:hover { opacity: 1; transform: translateX(-4px); }
.tz-detail .tz-kicker { display: block; margin-bottom: 14px; max-width: 100%; }
.tz-detail-title {
  font-weight: 700; font-size: clamp(50px,11vw,180px); letter-spacing: -0.04em; line-height: .82;
  max-width: 100%; min-width: 0;
}
.tz-detail-sub { font-weight: 600; font-size: clamp(15px,1.7vw,24px); letter-spacing: -0.01em; margin-top: 14px; max-width: 100%; }
.tz-detail-body {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px,4vw,70px);
  margin-top: clamp(34px,5vw,64px); min-width: 0; max-width: 100%;
}
.tz-detail-text { min-width: 0; max-width: 100%; }
.tz-detail-blurb {
  margin: 0; font-weight: 600; font-size: clamp(17px,2vw,28px); line-height: 1.36;
  letter-spacing: -0.015em; text-wrap: pretty; overflow-wrap: anywhere; word-break: break-word;
  max-width: 100%;
}
.tz-detail-award {
  margin: 22px 0 0; font-weight: 700; font-size: clamp(13px,1.3vw,17px);
  overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
}
.tz-detail-award + .tz-detail-award { margin-top: 8px; }
.tz-detail-crew {
  margin: 20px 0 0;
  display: flex; flex-direction: column;
  row-gap: 8px;
  color: var(--sub);
  font-family: 'PT Mono', monospace;
  font-weight: 400;
  font-size: clamp(9px, 0.78vw, 10.5px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.tz-detail-crew-row {
  display: flex; flex-wrap: nowrap; align-items: baseline;
  column-gap: clamp(20px, 4vw, 56px);
}
.tz-detail-crew-row span { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 860px) {
  .tz-detail-crew {
    overflow-x: visible;
    max-width: 100%;
  }
  .tz-detail-crew-row {
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: clamp(10px, 3vw, 16px);
    row-gap: 6px;
  }
  .tz-detail-crew-row span {
    white-space: normal;
    flex: 0 1 auto;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
.tz-detail-meta { margin: 0; min-width: 0; max-width: 100%; }
.tz-detail-meta dt {
  font-weight: 700; font-size: 11px; letter-spacing: 0.06em; flex-shrink: 0;
  padding-top: 11px; border-top: 1px solid var(--hair);
}
.tz-detail-meta dd {
  margin: 0; font-weight: 700; font-size: clamp(13px,1.2vw,16px); letter-spacing: -0.01em;
  text-align: right; min-width: 0; overflow-wrap: anywhere; word-break: break-word;
  padding-bottom: 11px; border-top: 1px solid var(--hair);
}
.tz-detail-meta dt:first-of-type,
.tz-detail-meta dd:first-of-type { border-top: none; }
.tz-detail-meta .tz-meta-row-dd { grid-column: 2; }

@media (min-width: 861px) {
  .tz-detail-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: start;
  }
}
.tz-detail-gallery {
  display: flex; flex-direction: column; gap: clamp(16px,1.8vw,28px);
  margin-top: clamp(40px,6vw,80px); max-width: 100%; min-width: 0;
}
.tz-gal-main, .tz-gal-cell { position: relative; overflow: hidden; background: var(--faint); border: 1px solid var(--hair); max-width: 100%; }
.tz-gal-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,1.8vw,28px); max-width: 100%; }

/* image-driven gallery: landscape spans the row, portrait sits two-up */
.tz-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,1.6vw,26px);
  margin-top: clamp(40px,6vw,80px); align-items: start; grid-auto-flow: dense;
  max-width: 100%; min-width: 0; width: 100%;
}
.tz-detail-grid .tz-gal-img { display: block; width: 100%; max-width: 100%; height: auto; grid-column: 1 / -1; }
.tz-detail-grid .tz-gal-img.is-portrait { grid-column: span 1; }
/* fixed column layouts (per-project galleryCols in data.jsx) */
.tz-detail-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
}
@media (max-width: 1100px) {
  .tz-detail-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tz-detail-grid--3 .tz-gal-img,
.tz-detail-grid--3 .tz-gal-img.is-portrait,
.tz-detail-grid--3 .tz-gal-img.is-land {
  grid-column: span 1;
  width: 100%;
  height: auto;
  display: block;
}
.tz-detail-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
}
.tz-detail-grid--2 .tz-gal-img,
.tz-detail-grid--2 .tz-gal-img.is-portrait,
.tz-detail-grid--2 .tz-gal-img.is-land {
  grid-column: span 1;
  width: 100%;
  height: auto;
  display: block;
}
.tz-gal-wide { grid-column: 1 / -1; }
.tz-gal-video { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.tz-gal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tz-detail-nav {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: clamp(40px,6vw,80px); padding: clamp(22px,3vw,38px) 0 clamp(50px,7vw,90px);
  border-top: 1px solid var(--hair); max-width: 100%; min-width: 0;
}
.tz-dn-prev, .tz-dn-next { display: flex; flex-direction: column; gap: 7px; text-decoration: none; transition: transform .25s; min-width: 0; max-width: 100%; }
.tz-dn-next { text-align: right; }
.tz-dn-prev span:first-child, .tz-dn-next span:first-child { font-weight: 700; font-size: 11px; letter-spacing: 0.06em; }
.tz-dn-t {
  font-weight: 700; font-size: clamp(20px,3vw,42px); letter-spacing: -0.03em;
  overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
}
.tz-dn-prev:hover { transform: translateX(-6px); }
.tz-dn-next:hover { transform: translateX(6px); }

/* ===== site footer ===== */
.tz-sitefoot { border-top: 1px solid var(--hair); padding: clamp(28px,4vw,52px) clamp(16px,3vw,42px); display: flex; flex-direction: column; gap: clamp(20px,3vw,40px); }
.tz-sf-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.tz-sf-mark { font-weight: 700; font-size: clamp(28px,6vw,84px); letter-spacing: -0.035em; text-decoration: none; line-height: .9; }
.tz-sf-mark sup { font-size: .4em; }
.tz-sf-nav { display: flex; gap: clamp(12px,2vw,28px); flex-wrap: wrap; }
.tz-sf-link { font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-decoration: none; opacity: .62; transition: opacity .2s; }
.tz-sf-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.tz-sf-base { font-weight: 600; font-size: clamp(10px,0.92vw,12px); letter-spacing: 0.02em; }
.tz-sf-top { background: none; border: none; cursor: pointer; font: inherit; letter-spacing: 0.04em; font-weight: 700; padding: 0; }
.tz-sf-top:hover { text-decoration: underline; text-underline-offset: 4px; }

/* homepage featured — 12-col rows, spans set per card from cover aspect ratio */
@media (min-width: 761px) {
  .tz-works.tz-works-feat {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(14px, 1.3vw, 20px);
    align-items: start;
  }
}

/* ===== responsive ===== */
@media (max-width: 860px) {
  .tz-detail-body { grid-template-columns: 1fr; gap: 28px; }
  .tz-award { grid-template-columns: 26px 1fr 50px; row-gap: 4px; }
  .tz-aw-detail { grid-column: 2 / 3; }
  .tz-aw-role { grid-column: 2 / 3; }
  .tz-aw-proj { grid-column: 2 / 3; }
  .tz-aw-year { grid-column: 3 / 4; grid-row: 1; }
}
@media (max-width: 760px) {
  .tz-tb-nav { display: none; }
  .tz-tb-menu-btn { display: flex; }
  .tz-tb-theme { padding-left: 0; }

  /* hero: name + palette stack; the section nav becomes a full-width tap list */
  .tz-head { flex-direction: row; align-items: flex-start; gap: 16px; }
  .tz-main { gap: 6px; }
  .tz-row2 { flex-direction: column; align-items: flex-start; gap: clamp(16px,4vw,26px); }
  .tz-cats { margin-left: 0; width: 100%; flex-direction: column; gap: 0; padding-bottom: 0; }
  .tz-cat { width: 100%; gap: 12px; padding: 13px 2px; border-top: 1px solid var(--hair); }
  .tz-cat:last-child { border-bottom: 1px solid var(--hair); }
  .tz-cat-l { font-size: 20px; }
  .tz-cat-a { margin-left: auto; opacity: .5; }
  .tz-foot { flex-direction: column; gap: 6px; }

  /* section headers: kicker + note stack above the title, never overlap it */
  .tz-sec-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tz-sec-note { text-align: left; }
  .tz-sec-title { font-size: clamp(40px,13vw,76px); }

  /* work cards: single column, meta wraps cleanly */
  .tz-works.tz-works-feat .tz-work { grid-column: span 12 !important; }
  .tz-works-cat { grid-template-columns: 1fr; }
  .tz-work-meta { flex-wrap: wrap; gap: 4px 9px; }
  .tz-work-spacer { display: none; }
  .tz-work-role { white-space: normal; width: 100%; }

  /* detail page: keep all copy and meta inside the viewport on phones */
  .tz-detail { padding-left: clamp(14px, 4vw, 20px); padding-right: clamp(14px, 4vw, 20px); }
  .tz-detail .tz-scramble {
    max-width: 100%;
    white-space: normal;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .tz-detail-title { font-size: clamp(32px, 11vw, 56px); line-height: 0.88; }
  .tz-detail-blurb { font-size: clamp(16px, 4.2vw, 20px); }
  .tz-detail-crew {
    overflow-x: visible;
    max-width: 100%;
  }
  .tz-detail-crew-row {
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: clamp(10px, 3vw, 16px);
    row-gap: 6px;
  }
  .tz-detail-crew-row span {
    white-space: normal;
    flex: 0 1 auto;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .tz-detail-meta { display: block; }
  .tz-detail-meta dt { padding-top: 11px; }
  .tz-detail-meta dd { text-align: left; width: 100%; padding-bottom: 0; border-top: none; }
  .tz-detail-meta .tz-meta-row-dd { padding-bottom: 11px; margin-bottom: 0; }
  .tz-detail-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .tz-dn-next { text-align: left; align-self: stretch; }
  .tz-dn-prev, .tz-dn-next { max-width: 100%; }
  .tz-dn-t { font-size: clamp(18px, 5.5vw, 26px); }

  /* detail gallery: one image per row on phones */
  .tz-detail-grid { grid-template-columns: 1fr; }
  .tz-detail-grid .tz-gal-img,
  .tz-detail-grid .tz-gal-img.is-portrait,
  .tz-detail-grid--2 .tz-gal-img,
  .tz-detail-grid--3 .tz-gal-img { grid-column: 1 / -1; }
  .tz-detail-gallery .tz-gal-pair { grid-template-columns: 1fr; }

  /* contact */
  .tz-contact-grid2 { grid-template-columns: 1fr; }
  .tz-contact-bio { grid-template-columns: 1fr; }
  .tz-contact-bio-photo { max-width: 360px; }
  .tz-contact-side { min-width: 0; width: 100%; }
}
