:root {
  color-scheme: dark;
  --ink: #050505;
  --charcoal: #0c0e0e;
  --steel: #151b1d;
  --cream: #eee7da;
  --muted: #9f998f;
  --red: #c9232c;
  --red-dark: #71161b;
  --teal: #4fb7b0;
  --gold: #c9a767;
  --line: rgba(238, 231, 218, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: Inter, "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-zh-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 9%, rgba(79, 183, 176, 0.14), transparent 26rem),
    radial-gradient(circle at 88% 22%, rgba(201, 35, 44, 0.18), transparent 25rem),
    linear-gradient(180deg, #050505 0%, #0b0d0e 42%, #090909 100%);
  color: var(--cream);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body.lang-en .zh,
body:not(.lang-en) .en {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

#about,
#works,
#vertical,
#method,
#contact {
  scroll-margin-top: 128px;
}

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

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(201, 35, 44, 0.76);
  color: #fff;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, 1280px);
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(238, 231, 218, 0.14);
  background: rgba(5, 5, 5, 0.56);
  backdrop-filter: blur(20px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.edit-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 86;
  display: flex;
  flex-wrap: wrap;
  max-width: min(520px, calc(100vw - 36px));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(238, 231, 218, 0.16);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.edit-toggle,
.edit-save,
.edit-export,
.edit-reset,
.crop-close {
  border: 1px solid rgba(238, 231, 218, 0.18);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
}

.edit-toggle,
.edit-save,
.edit-export,
.edit-reset {
  min-height: 36px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.edit-toggle.is-active,
.edit-toggle:hover,
.edit-save:hover,
.edit-export:hover,
.edit-reset:hover {
  border-color: rgba(201, 35, 44, 0.76);
  background: rgba(201, 35, 44, 0.16);
}

.edit-save,
.edit-export {
  border-color: rgba(79, 183, 176, 0.28);
}

.edit-toast {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 8px);
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(79, 183, 176, 0.3);
  background: rgba(5, 5, 5, 0.84);
  color: rgba(238, 231, 218, 0.86);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.edit-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.is-editing img[data-edit-id]:not([data-edit-skip]) {
  outline: 1px solid rgba(201, 35, 44, 0.82);
  outline-offset: -1px;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(201, 35, 44, 0.12);
}

body.is-editing [data-text-id] {
  outline: 1px dashed rgba(79, 183, 176, 0.62);
  outline-offset: 3px;
  background: rgba(79, 183, 176, 0.08);
  cursor: text;
}

body.is-editing [data-text-id]:focus {
  outline-color: rgba(201, 35, 44, 0.88);
  background: rgba(201, 35, 44, 0.12);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.86);
  border-color: rgba(238, 231, 218, 0.22);
}

.brand {
  display: inline-grid;
  line-height: 1;
  gap: 5px;
  min-width: 112px;
}

.brand span {
  font-family: var(--font-zh-serif);
  font-size: 19px;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  color: rgba(238, 231, 218, 0.74);
  font-size: 13px;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-block: 8px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-toggle,
.rail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 231, 218, 0.18);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.language-toggle {
  min-width: 76px;
  height: 36px;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toggle-divider {
  width: 1px;
  height: 13px;
  background: rgba(238, 231, 218, 0.2);
}

.toggle-mark {
  color: var(--muted);
}

body.lang-en .toggle-mark {
  color: var(--red);
}

body:not(.lang-en) .language-toggle span:last-child {
  color: var(--red);
}

body.lang-en .language-toggle span:last-child {
  color: var(--muted);
}

.scene {
  position: relative;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.hero {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  padding: 132px max(24px, calc((100vw - var(--max)) / 2)) 70px;
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20vh;
  background: linear-gradient(180deg, transparent, #050505);
  z-index: -1;
}

.hero-bg,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.12) brightness(0.72);
  transform: scale(1.04) translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0);
  transition: transform 0.2s ease-out;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.62) 44%, rgba(5, 5, 5, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.88) 0%, transparent 40%);
}

.hero-grid {
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(238, 231, 218, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 231, 218, 0.1) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.hero-content {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  display: grid;
  gap: 14px;
  line-height: 0.9;
}

.hero-name {
  font-family: var(--font-zh-serif);
  font-size: clamp(64px, 12vw, 170px);
  font-weight: 800;
}

.hero-roman {
  color: rgba(238, 231, 218, 0.72);
  font-family: var(--font-serif);
  font-size: clamp(36px, 7vw, 98px);
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(238, 231, 218, 0.72);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(238, 231, 218, 0.2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-card {
  align-self: end;
  min-height: 310px;
  padding: 24px;
  border: 1px solid rgba(238, 231, 218, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 14, 14, 0.72), rgba(12, 14, 14, 0.48)),
    linear-gradient(135deg, rgba(79, 183, 176, 0.18), transparent 54%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 60px;
  color: rgba(238, 231, 218, 0.72);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.live-indicator span:first-child {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 22px rgba(201, 35, 44, 0.9);
}

.hero-card p {
  margin: 0;
  color: rgba(238, 231, 218, 0.84);
  font-size: 18px;
  line-height: 1.5;
}

.hero-card dl {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
}

.hero-card dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-card dd {
  margin: 0;
  color: var(--cream);
  font-size: 13px;
}

.identity-band {
  width: min(100% - 40px, var(--max));
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 auto 120px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(201, 35, 44, 0.16), transparent 32%),
    linear-gradient(248deg, rgba(79, 183, 176, 0.14), transparent 34%),
    var(--line);
}

.identity-band::before {
  content: "";
  position: absolute;
  inset: -60px 18%;
  border-left: 1px solid rgba(238, 231, 218, 0.11);
  border-right: 1px solid rgba(238, 231, 218, 0.11);
  transform: skewX(-16deg);
  pointer-events: none;
}

.identity-band article {
  position: relative;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  overflow: hidden;
  background: rgba(8, 10, 10, 0.78);
}

.identity-band article::after {
  content: "";
  position: absolute;
  right: 24px;
  top: -18px;
  width: 1px;
  height: 128%;
  background: linear-gradient(180deg, transparent, rgba(201, 35, 44, 0.62), transparent);
  transform: rotate(18deg);
  opacity: 0.55;
}

.identity-index {
  position: relative;
  z-index: 1;
  display: block;
  color: transparent;
  font-family: var(--font-serif);
  font-size: 82px;
  font-weight: 700;
  line-height: 0.88;
  -webkit-text-stroke: 1px rgba(238, 231, 218, 0.34);
}

.identity-copy {
  position: relative;
  z-index: 1;
}

.identity-copy small {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.identity-copy strong {
  display: block;
  max-width: 320px;
  margin-bottom: 14px;
  font-family: var(--font-zh-serif);
  font-size: 24px;
  line-height: 1.28;
}

.identity-copy p {
  margin: 0;
  max-width: 340px;
  color: rgba(238, 231, 218, 0.66);
  font-size: 14px;
  line-height: 1.6;
}

.bio-section {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  margin-bottom: 150px;
}

.portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5.4;
  border: 1px solid rgba(238, 231, 218, 0.16);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(238, 231, 218, 0.2);
  pointer-events: none;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.86) contrast(1.08);
  transform: scale(1.02);
}

.portrait-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 10px 12px;
  background: rgba(5, 5, 5, 0.7);
  color: rgba(238, 231, 218, 0.72);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bio-copy h2,
.section-heading h2,
.vertical-copy h2,
.recognition-card h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.04;
}

.bio-copy h2 .zh,
.section-heading h2 .zh,
.vertical-copy h2 .zh,
.recognition-card h2 .zh,
.contact-section h2 .zh {
  font-family: var(--font-zh-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bio-copy p:not(.eyebrow),
.vertical-copy p,
.recognition-card p,
.contact-section p {
  color: rgba(238, 231, 218, 0.7);
  font-size: 17px;
  line-height: 1.8;
}

.bio-copy p:not(.eyebrow) {
  max-width: 740px;
}

.works-section,
.vertical-section,
.method-section,
.recognition-section,
.sources-section,
.contact-section {
  margin-bottom: 150px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.work-switcher {
  display: block;
  min-height: 0;
  background: transparent;
  overflow: visible;
}

.work-panel {
  --work-accent: rgba(38, 88, 101, 0.86);
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 2.39 / 1;
  overflow: hidden;
  background: #020202;
  isolation: isolate;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.28s ease, transform 0.8s var(--ease), filter 0.35s ease;
}

.work-image.is-changing {
  opacity: 0;
  transform: scale(1.04);
}

.work-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.52) 22%, rgba(5, 5, 5, 0.04) 58%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.34), transparent 34%, rgba(5, 5, 5, 0.46)),
    linear-gradient(0deg, var(--work-accent), transparent 34%);
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

.work-tabs {
  position: absolute;
  left: clamp(18px, 3vw, 38px);
  top: clamp(16px, 2.4vw, 30px);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(720px, calc(100% - 48px));
}

.work-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  color: rgba(238, 231, 218, 0.68);
  background: rgba(5, 5, 5, 0.34);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.work-tab.is-active {
  color: #fff;
  background: rgba(201, 35, 44, 0.72);
}

.work-tab:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(238, 231, 218, 0.14);
}

.work-poster-copy {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 4;
  max-width: min(760px, calc(100% - 130px));
  transition: opacity 0.32s ease, transform 0.32s var(--ease);
}

.work-year {
  margin: 0 0 8px;
  color: rgba(201, 167, 103, 0.92);
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.2vw, 46px);
  line-height: 0.92;
}

.work-cn-title {
  margin: 0 0 10px;
  color: rgba(238, 231, 218, 0.9);
  font-family: var(--font-zh-serif);
  font-size: clamp(28px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.16em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.62);
}

.work-title {
  margin: 0;
  max-width: 860px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 82px);
  font-weight: 600;
  line-height: 0.92;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.58);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 13px;
  margin: 14px 0 0;
  color: var(--gold);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-duration {
  color: rgba(238, 231, 218, 0.88);
}

.work-duration::before {
  content: "/";
  margin-right: 13px;
  color: rgba(238, 231, 218, 0.42);
}

.work-description {
  margin: 0;
  max-width: 760px;
  color: rgba(238, 231, 218, 0.82);
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.65;
}

.work-detail-toggle {
  position: absolute;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(20px, 3vw, 40px);
  z-index: 6;
  width: fit-content;
  min-height: 34px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(238, 231, 218, 0.44);
  color: rgba(238, 231, 218, 0.72);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.work-detail-toggle:hover,
.work-detail-toggle[aria-expanded="true"] {
  transform: translateY(-2px);
  border-color: rgba(201, 167, 103, 0.76);
  color: #fff;
}

.work-detail-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(18px, 3vw, 34px);
  max-height: 0;
  padding: 0 clamp(18px, 4vw, 54px);
  border: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.58)),
    linear-gradient(135deg, var(--work-accent), rgba(5, 5, 5, 0.82) 46%);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  overflow: hidden;
  transition: max-height 0.34s var(--ease), opacity 0.28s ease, padding 0.34s var(--ease), transform 0.34s var(--ease);
}

.work-switcher:hover .work-detail-panel,
.work-switcher:focus-within .work-detail-panel,
.work-detail-panel.is-open {
  max-height: 360px;
  padding-block: 22px;
  opacity: 1;
  transform: translateY(10px);
  pointer-events: auto;
}

.work-panel:hover .work-image,
.work-panel:focus-within .work-image {
  transform: scale(1.025);
  filter: saturate(0.9) contrast(1.04) brightness(0.86);
}

.work-detail-meta {
  display: grid;
  align-content: start;
  gap: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.tag-row span {
  padding: 7px 9px;
  border: 0;
  color: rgba(238, 231, 218, 0.74);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  text-transform: uppercase;
}

.work-credit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 920px;
  margin-top: 0;
  border: 0;
  background: transparent;
}

.work-credit-grid div {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.work-credit-grid span {
  display: block;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.work-credit-grid strong {
  display: block;
  color: rgba(238, 231, 218, 0.9);
  font-size: 14px;
  line-height: 1.55;
}

.frame-rail-wrap {
  margin-top: 26px;
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rail-header h3 {
  margin: 0;
  color: rgba(238, 231, 218, 0.8);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rail-buttons {
  display: flex;
  gap: 8px;
}

.rail-button {
  width: 38px;
  height: 38px;
  font-size: 24px;
}

.frame-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 38vw, 500px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.frame-rail::-webkit-scrollbar {
  display: none;
}

.frame-rail figure {
  position: relative;
  aspect-ratio: 2.39 / 1;
  height: auto;
  margin: 0;
  border: 0;
  overflow: hidden;
  scroll-snap-align: start;
  background: #060606;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.frame-rail figure:nth-child(5n + 1),
.frame-rail figure:nth-child(5n + 4) {
  grid-column: auto;
}

.frame-rail figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 48%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.frame-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 0.45s var(--ease);
}

.frame-rail figure:hover img {
  transform: scale(1.05);
}

.frame-rail figure:hover::after {
  opacity: 1;
}

.frame-rail figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 8px 0 0;
  border-top: 1px solid rgba(201, 167, 103, 0.6);
  background: transparent;
  color: rgba(238, 231, 218, 0.76);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.26s ease, transform 0.26s var(--ease);
}

.frame-rail figure:hover figcaption,
.frame-rail figure:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.vertical-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.vertical-copy p {
  max-width: 620px;
}

.vertical-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.vertical-stats div {
  padding: 18px 16px;
  background: rgba(12, 14, 14, 0.82);
}

.vertical-stats strong,
.vertical-stats span {
  display: block;
}

.vertical-stats strong {
  margin-bottom: 8px;
  color: #fff;
  font-size: 15px;
}

.vertical-stats span {
  color: var(--muted);
  font-size: 12px;
}

.vertical-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vertical-card {
  display: grid;
  grid-template-columns: minmax(118px, 0.68fr) minmax(0, 1fr);
  min-height: 0;
  border: 1px solid rgba(238, 231, 218, 0.14);
  background:
    linear-gradient(135deg, rgba(79, 183, 176, 0.08), transparent 42%),
    rgba(12, 14, 14, 0.68);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.vertical-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 35, 44, 0.42);
  background:
    linear-gradient(135deg, rgba(201, 35, 44, 0.1), transparent 46%),
    rgba(12, 14, 14, 0.82);
}

.vertical-card.is-director {
  grid-column: 1 / -1;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(201, 35, 44, 0.12), transparent 48%),
    linear-gradient(315deg, rgba(79, 183, 176, 0.1), transparent 42%),
    rgba(12, 14, 14, 0.78);
}

.vertical-poster {
  min-height: 0;
  aspect-ratio: 9 / 16;
  background: #050505;
}

.vertical-poster img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.94) contrast(1.06);
}

.vertical-card.is-director .vertical-poster {
  min-height: 0;
  aspect-ratio: 9 / 16;
}

.vertical-card.is-director .vertical-poster img {
  aspect-ratio: 9 / 16;
  object-position: center top;
}

.vertical-poster img[data-focus="left"] {
  object-position: left top;
}

.vertical-poster img[data-focus="santa"] {
  object-fit: cover;
  object-position: center center;
}

.vertical-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}

.vertical-title {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.18;
}

.vertical-kicker {
  margin: 0 0 -8px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vertical-platform {
  margin: -10px 0 0;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.popularity-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.popularity-list div {
  padding-top: 9px;
  border-top: 1px solid rgba(238, 231, 218, 0.12);
}

.popularity-list dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.popularity-list dd {
  margin: 0;
  color: rgba(238, 231, 218, 0.84);
  font-size: 12px;
  line-height: 1.42;
}

.vertical-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(238, 231, 218, 0.55);
  font-size: 12px;
  line-height: 1.6;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.method-grid article {
  min-height: 340px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(18, 25, 27, 0.88), rgba(10, 12, 12, 0.9)),
    url("./assets/images/texture-snow.jpg") center / cover;
  background-blend-mode: multiply;
}

.method-grid article:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(18, 25, 27, 0.84), rgba(10, 12, 12, 0.92)),
    url("./assets/images/texture-dining.jpg");
}

.method-grid article:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(18, 25, 27, 0.88), rgba(10, 12, 12, 0.9)),
    url("./assets/images/hero-monitor.jpg");
}

.method-number {
  display: block;
  margin-bottom: 98px;
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 44px;
}

.method-grid h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
}

.method-grid p {
  margin: 0;
  color: rgba(238, 231, 218, 0.72);
  line-height: 1.7;
}

.quote-source {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 35, 44, 0.5);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recognition-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: 18px;
}

.recognition-card {
  display: flex;
  align-items: center;
  min-height: 390px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(201, 35, 44, 0.14), transparent 48%),
    rgba(12, 14, 14, 0.78);
}

.recognition-card img {
  width: 100%;
  opacity: 0.92;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.46));
}

.laurel-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.laurel-wall figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(238, 231, 218, 0.13);
  background:
    radial-gradient(circle at 50% 25%, rgba(201, 167, 103, 0.1), transparent 42%),
    rgba(12, 14, 14, 0.72);
  overflow: hidden;
}

.laurel-wall img {
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
  filter: saturate(0.88) contrast(1.04) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.38));
}

.laurel-wall figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: rgba(238, 231, 218, 0.66);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.text-laurel {
  color: transparent;
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 700;
  letter-spacing: 0.08em;
  -webkit-text-stroke: 1px rgba(201, 167, 103, 0.8);
}

.bts-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
}

.bts-grid img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.82) contrast(1.08);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.source-grid a {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 18px;
  background: rgba(12, 14, 14, 0.78);
  color: rgba(238, 231, 218, 0.82);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.25s ease, background 0.25s ease;
}

.source-grid a:hover {
  color: #fff;
  background: rgba(201, 35, 44, 0.16);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
  align-items: end;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(79, 183, 176, 0.16), transparent 44%),
    linear-gradient(315deg, rgba(201, 35, 44, 0.16), transparent 46%),
    rgba(12, 14, 14, 0.82);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(238, 231, 218, 0.18);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  overflow-wrap: anywhere;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.contact-link:hover {
  transform: translateX(6px);
  border-color: rgba(201, 35, 44, 0.64);
  background: rgba(201, 35, 44, 0.1);
}

.site-footer {
  width: min(100% - 40px, var(--max));
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 2, 2, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.crop-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.crop-dialog {
  width: min(100%, 700px);
  border: 1px solid rgba(238, 231, 218, 0.18);
  background:
    linear-gradient(135deg, rgba(79, 183, 176, 0.12), transparent 42%),
    rgba(9, 10, 10, 0.96);
  box-shadow: var(--shadow);
}

.crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(238, 231, 218, 0.12);
}

.crop-head strong {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crop-close {
  width: 34px;
  height: 34px;
  color: rgba(238, 231, 218, 0.82);
  font-size: 22px;
  line-height: 1;
}

.crop-stage {
  position: relative;
  height: min(62vh, 560px);
  min-height: 330px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
    #030303;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  cursor: grab;
  touch-action: none;
}

.crop-stage.is-dragging {
  cursor: grabbing;
}

.crop-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  width: auto;
  height: auto;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.crop-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(238, 231, 218, 0.74);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.crop-zoom {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px 0;
}

.crop-zoom span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crop-zoom input {
  width: 100%;
  accent-color: var(--red);
}

.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
}

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

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    order: 3;
    padding-top: 6px;
    border-top: 1px solid rgba(238, 231, 218, 0.1);
  }

  .language-toggle {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 168px;
  }

  .hero-card {
    max-width: 520px;
  }

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

  .bio-section,
  .work-switcher,
  .vertical-section,
  .recognition-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    max-width: 420px;
  }

  .vertical-gallery {
    grid-template-columns: 1fr;
  }

  .laurel-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 11px;
  }

  .brand span {
    font-size: 17px;
  }

  .brand small,
  .nav-links,
  .language-toggle {
    font-size: 10px;
  }

  .nav-links {
    gap: 8px;
  }

  .hero {
    padding: 158px 18px 54px;
    min-height: 96svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.48)),
      linear-gradient(0deg, rgba(5, 5, 5, 0.9) 0%, transparent 52%);
  }

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

  .live-indicator {
    margin-bottom: 34px;
  }

  .scene,
  .identity-band,
  .site-footer {
    width: calc(100% - 28px);
  }

  .identity-band {
    grid-template-columns: 1fr;
  }

  .identity-band,
  .bio-section,
  .works-section,
  .vertical-section,
  .method-section,
  .recognition-section,
  .sources-section,
  .contact-section {
    margin-bottom: 94px;
  }

  .identity-band article,
  .method-grid article {
    min-height: 250px;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-switcher {
    min-height: 0;
  }

  .work-panel {
    min-height: 0;
    aspect-ratio: 2.39 / 1;
  }

  .work-tabs {
    left: 10px;
    top: 10px;
    gap: 6px;
    max-width: calc(100% - 20px);
    margin-bottom: 0;
  }

  .work-tab {
    min-height: 27px;
    padding: 0 8px;
    font-size: 9px;
  }

  .work-poster-copy {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .work-year {
    margin-bottom: 4px;
    font-size: 20px;
  }

  .work-cn-title {
    margin-bottom: 5px;
    font-size: clamp(22px, 7vw, 32px);
    letter-spacing: 0.12em;
  }

  .work-title {
    font-size: clamp(24px, 8vw, 36px);
  }

  .work-meta {
    margin-top: 7px;
    gap: 5px 9px;
    font-size: 9px;
  }

  .work-duration::before {
    margin-right: 9px;
  }

  .work-detail-toggle {
    right: 12px;
    bottom: 12px;
    font-size: 9px;
  }

  .work-detail-panel {
    position: relative;
    grid-template-columns: 1fr;
    margin-top: 0;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
  }

  .work-switcher:hover .work-detail-panel,
  .work-switcher:focus-within .work-detail-panel,
  .work-detail-panel.is-open {
    max-height: 520px;
    padding-block: 14px;
    transform: translateY(8px);
  }

  .work-description {
    font-size: 11px;
    line-height: 1.45;
  }

  .work-credit-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 0;
  }

  .tag-row {
    margin-top: 0;
    gap: 6px;
  }

  .tag-row span,
  .work-credit-grid span,
  .work-credit-grid strong {
    font-size: 10px;
  }

  .frame-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82%);
    overflow-x: auto;
  }

  .frame-rail figure:nth-child(5n + 1),
  .frame-rail figure:nth-child(5n + 4) {
    grid-column: auto;
  }

  .frame-rail figure {
    height: auto;
  }

  .vertical-stats,
  .vertical-card,
  .vertical-card.is-director,
  .recognition-card,
  .bts-grid,
  .source-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .vertical-poster {
    min-height: 0;
  }

  .vertical-poster img {
    height: 100%;
  }

  .recognition-card img {
    width: min(210px, 68%);
  }

  .laurel-wall {
    grid-template-columns: 1fr;
  }

  .laurel-wall figure {
    min-height: 172px;
  }

  .bts-grid img {
    min-height: 260px;
  }

  .contact-section {
    padding: 26px;
  }

  .edit-toolbar {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }

  .edit-toggle,
  .edit-save,
  .edit-export,
  .edit-reset {
    flex: 1 1 calc(50% - 4px);
  }

  .crop-stage {
    min-height: 280px;
  }
}

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

}
