:root {
  color-scheme: dark;
  --bg: oklch(0.095 0 0);
  --surface: oklch(0.145 0.012 230);
  --surface-2: oklch(0.19 0.02 230);
  --ink: oklch(0.965 0.006 230);
  --muted: oklch(0.7 0.015 230);
  --line: oklch(0.29 0.018 230);
  --primary: oklch(0.62 0.12 230);
  --accent: oklch(0.77 0.17 310);
  --page-pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --z-sticky: 20;
  --z-backdrop: 40;
  --z-modal: 50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-modal);
  height: 3px;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-sticky);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem var(--page-pad);
  mix-blend-mode: difference;
}
.wordmark { font-size: 1.1rem; font-weight: 900; letter-spacing: -.03em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.75rem); }
.site-header nav a {
  color: var(--ink);
  font-size: .76rem;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 7rem var(--page-pad) 5rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, oklch(0.04 0 0 / .92) 0%, oklch(0.04 0 0 / .58) 42%, transparent 75%), linear-gradient(0deg, oklch(0.04 0 0 / .72), transparent 48%);
  pointer-events: none;
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.hero-copy { position: relative; z-index: 3; max-width: 48rem; padding-bottom: 8vh; }
.hero-status { margin: 0 0 1.5rem; color: var(--primary); font-size: .72rem; letter-spacing: .08em; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 6rem);
  line-height: .93;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero h1 span { color: var(--muted); font-size: .54em; font-weight: 500; letter-spacing: -.025em; }
.hero-intro { max-width: 34rem; margin: 2rem 0 0; color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.85; text-wrap: pretty; }

.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #030405; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: .55rem;
  padding: var(--page-pad);
  color: oklch(0.75 0.01 230 / .5);
  background: radial-gradient(ellipse at 76% 48%, oklch(0.3 0.055 230 / .34), transparent 30%);
  letter-spacing: .1em;
}
.hero-video-placeholder span { font-size: clamp(.7rem, 1vw, .9rem); }
.hero-video-placeholder small { font-size: .62rem; color: oklch(0.65 0.01 230 / .45); }
.hero-video[src] + .hero-video-placeholder { display: none; }

.scroll-cue {
  position: absolute;
  left: var(--page-pad);
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .65rem;
  text-decoration: none;
  letter-spacing: .08em;
}
.scroll-cue i { width: 3.5rem; height: 1px; background: var(--ink); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(-45deg); }

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: .9rem 0; color: var(--accent); background: var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 24s linear infinite; }
.ticker-track span { font-weight: 800; font-size: clamp(.8rem, 1.1vw, 1rem); white-space: nowrap; }

.section { padding: clamp(6rem, 12vw, 12rem) var(--page-pad); }
.section-heading { display: flex; justify-content: space-between; align-items: end; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.section-heading p { margin: 0; color: var(--primary); font-size: .72rem; letter-spacing: .08em; }
.section-heading h2 { margin: 0; font-size: clamp(2.1rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.04em; font-weight: 650; }

.profile { background: var(--surface); }
.profile-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; padding-top: clamp(4rem, 8vw, 7rem); }
.photo-stage { position: relative; min-height: 650px; display: grid; place-items: center; }
.portrait-card {
  position: relative;
  z-index: 2;
  width: min(78%, 430px);
  margin: 0;
  padding: .75rem .75rem 1.4rem;
  background: oklch(0.93 0 0);
  color: var(--bg);
  transform: rotate(-4.5deg);
  transition: transform 500ms var(--ease-out);
}
.portrait-card:hover { transform: rotate(-2deg) translateY(-8px); }
.portrait-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; filter: contrast(1.03) saturate(.8); }
.portrait-card figcaption { display: flex; justify-content: space-between; align-items: end; padding-top: 1rem; }
.portrait-card figcaption span { font-size: .6rem; letter-spacing: .08em; }
.portrait-card figcaption strong { font-size: 1.35rem; letter-spacing: -.03em; }
.photo-ticket { position: absolute; z-index: 1; width: 76%; height: 55%; background: var(--accent); color: var(--bg); transform: translate(-14%, -8%) rotate(7deg); padding: .9rem; font-size: .62rem; letter-spacing: .08em; writing-mode: vertical-rl; }
.photo-stamp { position: absolute; z-index: 3; right: 1%; bottom: 12%; width: 92px; height: 92px; border: 1px solid var(--ink); border-radius: 50%; transform: rotate(11deg); background: var(--accent); }

.profile-copy { max-width: 760px; }
.profile-facts { display: grid; grid-template-columns: 1fr .5fr; border-block: 1px solid var(--line); }
.profile-facts div { padding: 1.3rem 0; }
.profile-facts div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.profile-facts span, .profile-copy time { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.profile-facts strong { display: block; margin-top: .5rem; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.profile-meta { color: var(--muted); line-height: 1.8; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.experience-item { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.experience-item h3 { margin: .75rem 0; font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 600; }
.experience-item h3 span { color: var(--accent); margin-left: .75rem; }
.experience-item p, .profile-note { margin: 0; color: var(--muted); line-height: 1.85; font-size: .9rem; text-wrap: pretty; }
.profile-note { padding-top: 2rem; color: var(--ink); }

.work { overflow: hidden; }
.work-heading { text-align: center; }
.work-heading p { margin: 0 0 1rem; color: var(--primary); font-size: .68rem; letter-spacing: .14em; }
.work-heading h2 { margin: 0; font-size: clamp(3rem, 8vw, 7.5rem); line-height: .88; letter-spacing: -.055em; }
.work-heading span { display: block; margin-top: 1.5rem; color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.project-picker {
  display: flex;
  justify-content: center;
  width: min(100%, 860px);
  margin: clamp(2.5rem, 5vw, 4rem) auto clamp(5rem, 10vw, 9rem);
  padding: .65rem;
  gap: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.project-picker::-webkit-scrollbar { display: none; }
.project-picker button { flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; min-height: 42px; padding: .4rem .8rem .4rem .45rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.project-picker button i { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: .68rem; font-style: normal; }
.project-picker button span { display: none; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6rem; letter-spacing: .06em; }
.project-picker button.is-active span { display: block; }
.project-picker button.is-active, .project-picker button:hover { background: var(--ink); color: var(--bg); }
.project-picker button.is-active i, .project-picker button:hover i { background: var(--accent); color: var(--bg); }

.project-list { columns: 3 280px; column-gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.project {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  appearance: none;
  width: 100%;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  margin: 1.4rem 0 clamp(2rem, 4vw, 4rem);
  padding: 0;
  break-inside: avoid;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transform: perspective(900px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  transition: transform 250ms var(--ease-out), border-color 180ms ease-out, box-shadow 250ms var(--ease-out);
}
.project-tab { position: absolute; z-index: 4; left: 1rem; top: 0; max-width: calc(100% - 2rem); padding: .55rem .9rem; background: var(--primary); color: var(--bg); font-size: .58rem; font-weight: 800; letter-spacing: .08em; transform: translateY(-48%) translateZ(18px); }
.project:nth-child(3n + 2) .project-tab { background: var(--accent); }
.project:nth-child(3n) .project-tab { background: var(--ink); }
.project-visual { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: var(--card-ratio); overflow: hidden; background: oklch(0.17 0.03 230); }
.project-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-visual::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: var(--primary); filter: blur(2px); opacity: .65; transform: translate(-22%, 15%); transition: transform 700ms var(--ease-out); }
.project--alt .project-visual { background: oklch(0.2 0.045 310); }
.project--alt .project-visual::before { background: var(--accent); transform: translate(24%, -18%); }
.project-visual i { position: relative; z-index: 1; font-size: clamp(5rem, 11vw, 10rem); font-style: normal; font-weight: 900; letter-spacing: -.08em; color: oklch(0.98 0 0 / .85); }
.project-visual b { position: absolute; z-index: 2; left: 1.2rem; bottom: 1rem; font-size: .62rem; letter-spacing: .08em; }
.project-copy { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: end; padding: 1.25rem; transform: translateZ(12px); }
.project-copy small { grid-column: 1 / -1; color: var(--primary); letter-spacing: .06em; }
.project-copy strong { font-size: clamp(1.1rem, 2vw, 1.65rem); line-height: 1.08; letter-spacing: -.025em; }
.project-copy em { color: var(--muted); font-size: .6rem; font-style: normal; white-space: nowrap; }
.project:focus-visible .project-visual::before { transform: translate(0, 0) scale(1.18); }
.project:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

@media (hover: hover) {
  .project:hover .project-visual::before { transform: translate(0, 0) scale(1.18); }
  .project:hover { transform: perspective(900px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) scale(1.025); border-color: oklch(0.65 0.03 230); box-shadow: 0 18px 42px oklch(0.02 0 0 / .45); }
}

.manifesto { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; background: var(--accent); color: var(--bg); }
.manifesto p { margin: 0; max-width: 20ch; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 750; text-wrap: balance; }
.manifesto span { margin-top: 4rem; font-size: .72rem; letter-spacing: .08em; }

footer { min-height: 68svh; display: flex; flex-direction: column; justify-content: end; padding: 6rem var(--page-pad) 3rem; }
footer p { color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
footer a { width: fit-content; font-size: clamp(2rem, 6vw, 5.6rem); font-weight: 700; letter-spacing: -.04em; text-decoration-thickness: 1px; text-underline-offset: .15em; }
footer a { max-width: 100%; overflow-wrap: anywhere; }
footer span { margin-top: 3rem; color: var(--muted); font-size: .72rem; }

.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(32px); transition: opacity 650ms var(--ease-out), transform 750ms var(--ease-out); }
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

.project-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.project-dialog::backdrop { background: oklch(0.04 0 0 / .82); backdrop-filter: blur(6px); }
.project-dialog[open] { animation: dialogIn 420ms var(--ease-out); }
.dialog-shell { display: grid; grid-template-columns: minmax(320px, 34%) 1fr; height: 100%; }
.dialog-info { display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 4rem); border-right: 1px solid var(--line); }
.dialog-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.dialog-close { width: 44px; height: 44px; margin: -.75rem; border: 0; background: transparent; color: var(--ink); font-size: 2rem; cursor: pointer; }
.dialog-close:focus-visible, .dialog-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dialog-type { margin: auto 0 1rem; color: var(--primary); font-size: .7rem; letter-spacing: .08em; }
.dialog-info h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 5rem); line-height: .98; letter-spacing: -.04em; }
.dialog-info > p:not(.dialog-type) { max-width: 42rem; margin: 2rem 0; color: var(--muted); line-height: 1.8; font-size: .9rem; }
.dialog-info dl { margin: 0; border-top: 1px solid var(--line); }
.dialog-info dl div { display: grid; grid-template-columns: 5rem 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.dialog-info dt { color: var(--muted); font-size: .65rem; }
.dialog-info dd { margin: 0; font-size: .75rem; }
.dialog-nav { display: flex; justify-content: space-between; margin-top: 2rem; }
.dialog-nav button { padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: .72rem; }
.dialog-gallery { overflow-y: auto; overscroll-behavior: contain; background: oklch(0.84 0.008 230); padding: clamp(1.25rem, 3vw, 3rem); scroll-behavior: smooth; }
.gallery-page { min-height: 88vh; display: grid; place-items: center; align-content: center; margin-bottom: 1.25rem; background: oklch(0.95 0.005 230); color: var(--bg); }
.gallery-page span { font-size: clamp(5rem, 18vw, 16rem); line-height: 1; font-weight: 900; letter-spacing: -.08em; }
.gallery-page p { font-size: .7rem; letter-spacing: .08em; }
.gallery-page--cover { background: var(--primary); color: var(--ink); }
.gallery-section { margin-bottom: 1.25rem; background: oklch(0.95 0.005 230); color: var(--bg); }
.gallery-cover img { display: block; width: 100%; height: auto; }
.gallery-story { padding: clamp(2rem, 6vw, 5rem); }
.gallery-kicker, .gallery-section-heading p { margin: 0 0 .7rem; color: oklch(0.42 0.04 230); font-size: .65rem; letter-spacing: .1em; }
.gallery-story h3, .gallery-section-heading h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.5rem); letter-spacing: -.04em; }
.gallery-story > p:last-child { max-width: 48rem; margin: 2rem 0 0; line-height: 2; font-size: clamp(.88rem, 1.2vw, 1rem); white-space: pre-line; }
.gallery-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid oklch(0.78 0.01 230); }
.gallery-section-heading a, .gallery-section-heading > span { color: oklch(0.35 0.04 230); font-size: .7rem; text-decoration: none; }
.gallery-pdf iframe { display: block; width: 100%; height: min(78vh, 920px); border: 0; background: white; }
.gallery-portfolio { background: #000; }
.portfolio-image-stack { line-height: 0; background: #000; }
.portfolio-image-stack img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.gallery-section-copy { max-width: 54rem; margin: 0; padding: clamp(1.4rem, 3vw, 2.5rem); color: oklch(0.26 0.025 230); font-size: clamp(.82rem, 1vw, .95rem); line-height: 1.85; }
.gallery-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 1vw, .9rem); padding: clamp(.8rem, 2vw, 1.5rem); padding-top: 0; }
.gallery-image-grid figure { margin: 0; overflow: hidden; background: oklch(0.9 0.006 230); }
.gallery-image-grid img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 220ms var(--ease-out); }
.gallery-images--character .gallery-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-images--character .gallery-image-grid figure:nth-child(2) { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; }
.gallery-images--character .gallery-image-grid figure:not(:nth-child(2)) { aspect-ratio: 3 / 4; }
.gallery-images--wide .gallery-image-grid { grid-template-columns: 1fr; }
.gallery-images--wide .gallery-image-grid figure { aspect-ratio: 16 / 9; }
.gallery-images--props .gallery-image-grid figure { aspect-ratio: 1 / 1; }
.gallery-images--posters .gallery-image-grid { grid-template-columns: 1fr; }
.gallery-images--posters .gallery-image-grid figure { min-height: 0; }
.gallery-images--posters .gallery-image-grid img { width: 100%; height: auto; }
.gallery-images--single .gallery-image-grid { grid-template-columns: 1fr; }
.gallery-images--single .gallery-image-grid figure { min-height: 0; }
.gallery-images--single .gallery-image-grid img { width: 100%; height: auto; }
.gallery-images--triple .gallery-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-images--triple .gallery-image-grid figure { position: relative; aspect-ratio: 1 / 1; min-width: 0; min-height: 0; background: white; }
.gallery-images--triple .gallery-image-grid img { position: absolute; inset: clamp(.45rem, 1vw, .8rem); width: calc(100% - clamp(.9rem, 2vw, 1.6rem)); height: calc(100% - clamp(.9rem, 2vw, 1.6rem)); object-fit: contain; }
.gallery-images--qrcode { text-align: center; }
.gallery-images--qrcode .gallery-section-heading { justify-content: center; text-align: center; }
.gallery-images--qrcode .gallery-section-copy { margin-inline: auto; padding-bottom: 1rem; text-align: center; }
.gallery-images--qrcode .gallery-image-grid { grid-template-columns: 1fr; justify-items: center; padding-bottom: clamp(2rem, 5vw, 4rem); }
.gallery-images--qrcode .gallery-image-grid figure { width: min(100%, 22rem); padding: .75rem; background: white; }
.gallery-images--qrcode .gallery-image-grid img { width: 100%; height: auto; }
.storyboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.45rem, 1vw, .85rem); padding: clamp(.8rem, 2vw, 1.5rem); }
.storyboard-item { position: relative; margin: 0; overflow: hidden; background: white; aspect-ratio: 16 / 10; }
.storyboard-item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 220ms var(--ease-out); }
.storyboard-item figcaption { position: absolute; left: .45rem; bottom: .4rem; display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding-inline: .35rem; border-radius: 999px; background: oklch(0.08 0 0 / .78); color: white; font-size: .58rem; }
.gallery-film { padding-bottom: clamp(1rem, 2vw, 2rem); background: oklch(0.08 0 0); color: var(--ink); }
.gallery-film .gallery-section-heading { border-color: var(--line); }
.gallery-film .gallery-section-heading p { color: var(--primary); }
.gallery-film video { display: block; width: calc(100% - clamp(2rem, 4vw, 4rem)); margin: clamp(1rem, 2vw, 2rem) auto 0; aspect-ratio: 16 / 9; background: black; }
.gallery-clips { padding-bottom: clamp(1rem, 2vw, 2rem); background: oklch(0.08 0 0); color: var(--ink); }
.gallery-clips .gallery-section-heading { border-color: var(--line); }
.gallery-clips .gallery-section-heading p { color: var(--primary); }
.gallery-clips .gallery-section-copy { color: oklch(0.72 0.02 230); }
.gallery-clip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.55rem, 1vw, 1rem); padding: 0 clamp(1rem, 2vw, 2rem); }
.gallery-clip-grid figure { margin: 0; }
.gallery-clip-grid video { display: block; width: 100%; aspect-ratio: 16 / 9; background: black; }
.gallery-clip-grid figcaption { padding-top: .65rem; color: oklch(0.72 0.02 230); font-size: .65rem; letter-spacing: .06em; }
.gallery-document { padding-bottom: clamp(1.2rem, 3vw, 2.5rem); }
.gallery-document-summary { max-width: 56rem; margin: 0; padding: clamp(1.4rem, 3vw, 2.5rem); color: oklch(0.26 0.025 230); font-size: clamp(.82rem, 1vw, .95rem); line-height: 1.9; }
.gallery-document pre { max-height: min(68vh, 780px); margin: 0 clamp(.8rem, 2vw, 1.5rem); padding: clamp(1.2rem, 3vw, 2.4rem); overflow: auto; border: 1px solid oklch(0.78 0.01 230); background: white; color: oklch(0.2 0.02 230); font: 400 clamp(.75rem, .9vw, .9rem)/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (hover: hover) {
  .storyboard-item:hover img { transform: scale(1.035); }
  .gallery-image-grid figure:hover img { transform: scale(1.018); }
}

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(30px) scale(.985); } }

@media (max-width: 860px) {
  .hero { padding-top: 6rem; }
  .hero-video { object-position: 62% center; }
  .profile-layout { grid-template-columns: 1fr; }
  .photo-stage { min-height: 580px; }
  .project-list { columns: 2 240px; }
  .dialog-shell { grid-template-columns: 1fr; overflow-y: auto; }
  .dialog-info { min-height: 100svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-gallery { overflow: visible; }
  .gallery-pdf iframe { height: 72vh; }
}

@media (max-width: 560px) {
  .site-header nav a:not(:last-child) { display: none; }
  .hero { min-height: 100svh; padding-bottom: 5rem; }
  .hero h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .scroll-cue { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .photo-stage { min-height: 490px; }
  .portrait-card { width: 82%; }
  .photo-stamp { width: 76px; height: 76px; }
  .profile-facts { grid-template-columns: 1fr 5rem; }
  .profile-facts div + div { padding-left: 1rem; }
  .experience-item h3 span { display: block; margin: .45rem 0 0; }
  .work { padding-inline: 1rem; }
  .work-heading h2 { font-size: clamp(2.7rem, 15vw, 4.6rem); }
  .project-picker { width: calc(100vw - 2rem); margin-bottom: 4rem; }
  .project-picker { justify-content: flex-start; }
  .project-list { columns: 1; }
  .manifesto br { display: none; }
  .dialog-info { padding: 1.3rem; }
  .dialog-info h2 { font-size: 2.6rem; }
  .gallery-page { min-height: 72vh; }
  .storyboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-image-grid, .gallery-images--character .gallery-image-grid, .gallery-images--posters .gallery-image-grid { grid-template-columns: 1fr; }
  .gallery-images--triple .gallery-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-clip-grid { grid-template-columns: 1fr; }
  .gallery-images--character .gallery-image-grid figure:nth-child(2) { grid-column: auto; grid-row: auto; }
  .gallery-section-heading { align-items: start; flex-direction: column; }
}

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