:root {
  --ink: #050505;
  --ink-2: #0a0a0a;
  --red: #721b1e;
  --red-bright: #9b292c;
  --gold: #ededeb;
  --gold-soft: #bdbdb9;
  --paper: #f3f3f0;
  --muted: #91918d;
  --line: rgba(255, 255, 255, .16);
  --serif: "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  color: #171717;
  background:
    radial-gradient(circle at 86% 8%, rgba(114, 27, 30, .07), transparent 29rem),
    #efefec;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
body.modal-open { overflow: hidden; }
html:has(.image-viewer[open]) { overflow: hidden; }
.poster-item[role="button"] { cursor: zoom-in; }
.image-viewer { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; padding: 0; border: 0; background: #080808; color: #f3f3f0; overflow: hidden; overscroll-behavior: contain; }
.image-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.image-viewer::backdrop { background: #080808; }
.image-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); border-bottom: 1px solid #333; z-index: 1; }
.image-viewer-title { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-controls { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.image-viewer-controls button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #555; border-radius: 6px; background: #191919; color: #fff; cursor: pointer; }
.image-viewer-controls button:hover { background: #333; }
.image-viewer-controls button:disabled { opacity: .4; cursor: default; }
.image-viewer-scale { min-width: 54px; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
.image-viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; touch-action: none; user-select: none; cursor: zoom-out; }
.image-viewer-stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; flex: none; object-fit: contain; transform-origin: center; filter: none; -webkit-user-drag: none; }
.image-viewer-stage.is-zoomed { cursor: grab; }
.image-viewer-stage.is-dragging { cursor: grabbing; }
#image-viewer-help { margin: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); color: #bdbdb9; text-align: center; font-size: .875rem; }
@media (max-width: 640px) {
  .image-viewer-toolbar { flex-direction: column; gap: 8px; padding-inline: 12px; }
  .image-viewer-title { width: 100%; text-align: center; font-size: .875rem; }
  .image-viewer-controls { gap: 6px; }
  #image-viewer-help { font-size: .75rem; }
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
#top, #works, #tea, #motion, #about, #skills { scroll-margin-top: 82px; }

.grain {
  position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 82px; padding: 0 clamp(24px, 5vw, 84px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,.12); background: rgba(239,239,236,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .93rem; letter-spacing: .18em; font-weight: 650; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #181818; color: #181818; font-family: var(--serif); font-size: 1rem; }
.gold { color: var(--red-bright); }
nav { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 52px); }
nav a { position: relative; display: inline-flex; align-items: baseline; gap: 8px; color: #4d4d4a; font-size: .72rem; letter-spacing: .13em; }
nav a span { color: var(--red); font-family: var(--serif); font-size: .68rem; letter-spacing: 0; }
nav a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: -9px; background: var(--gold); transition: right .3s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 116px clamp(24px, 5vw, 84px) 56px; display: grid; place-items: center; overflow: hidden; background: #050505; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.42)), radial-gradient(circle at 50% 46%, rgba(114,27,30,.14), transparent 34rem); }
.hero-background-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.04) contrast(1.05); }
.hero-center { position: relative; z-index: 2; width: min(1120px, 100%); margin: 0 auto; text-align: center; text-shadow: 0 2px 24px rgba(0,0,0,.42); }
.hero-wordmark { width: min(100%, 1040px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-overline { width: 54%; margin: 0 0 10px; color: #d98c8f; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.32rem); letter-spacing: .08em; }
.hero-name { width: 42%; margin: 0 0 clamp(24px, 3.5vh, 38px); color: rgba(255,255,255,.8); font-size: clamp(.9rem, 1.15vw, 1.05rem); font-weight: 650; letter-spacing: .22em; text-transform: none; }
.hero h1 { width: 100%; margin: 0 auto; color: #fff; font: 600 clamp(3.15rem, 6.6vw, 5.85rem)/.96 var(--serif); letter-spacing: -.055em; white-space: nowrap; }
.hero-translation { width: 72%; margin: 24px 0 0; color: #fff; font-family: var(--serif); font-size: clamp(1.2rem, 2.15vw, 2rem); letter-spacing: .025em; }
.hero-description { width: 50%; margin: 15px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.3vw, 1.15rem); letter-spacing: .1em; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: clamp(34px, 5vh, 54px); }
.hero-action { min-width: 164px; min-height: 52px; padding: 14px 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #fff; border-radius: 10px; font-size: .78rem; letter-spacing: .16em; cursor: pointer; transition: background .28s ease, border-color .28s ease, color .28s ease, transform .28s ease; }
.hero-action:hover, .hero-action:focus-visible { transform: translateY(-2px); }
.hero-action--primary { background: #fff; color: #111; }
.hero-action--primary:hover, .hero-action--primary:focus-visible { background: var(--red); border-color: var(--red); }
.hero-action--secondary { background: rgba(0,0,0,.18); color: #fff; }
.hero-action--secondary:hover, .hero-action--secondary:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.work-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,4,4,.82)); pointer-events: none; }
.work-image img { height: 100%; object-fit: cover; filter: grayscale(.82) saturate(.35) contrast(1.18) brightness(.75); transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s ease; }
.work-image:hover img, .work-image:focus-visible img { transform: scale(1.035); filter: grayscale(.5) saturate(.6) contrast(1.12) brightness(.86); }

.section-shell { padding: clamp(90px, 12vw, 170px) clamp(24px, 7vw, 118px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 65px; }
.section-index { color: var(--red); font-size: .68rem; letter-spacing: .22em; }
.section-heading h2 { margin: 12px 0 0; font: 400 clamp(3rem, 6vw, 6.5rem)/1 var(--serif); letter-spacing: -.045em; }
.section-heading p { max-width: 26rem; margin: 0 0 8px; color: var(--muted); }

.works { color: #f2f2ef; background: linear-gradient(180deg, #292929, #202020); }
.works .section-index { color: #b85c5f; }
.works .section-heading p { color: #aaa9a5; }
.works .work-meta { border-top-color: rgba(255,255,255,.18); }
.works .work-meta h3 { color: #f2f2ef; }
.works .work-meta p { color: #aaa9a5; }
.works, .motion, .skills { padding-top: clamp(48px, 5vw, 72px); }
.works > *, .motion > *, .skills > * { width: 100%; max-width: 1600px; margin-left: auto; margin-right: auto; }
.work-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(42px, 7vw, 110px) clamp(24px, 4vw, 64px); }
.work-card { margin: 0; }
.work-card--wide { grid-column: 1 / -1; width: 82%; }
.work-card--poster-series { width: 100%; }
.poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 22px); }
.poster-grid--landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.poster-item { min-width: 0; margin: 0; background: #1b1112; }
.poster-item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; filter: none; }
.poster-grid--landscape .poster-item img { aspect-ratio: 16 / 9; }
.work-card--portrait { width: 88%; margin-left: auto; }
.work-card--landscape { padding-top: 18vh; }
.work-image { position: relative; display: block; width: 100%; height: min(65vw, 720px); padding: 0; overflow: hidden; border: 0; background: #160c0c; cursor: pointer; color: var(--paper); }
.work-card--portrait .work-image { height: min(63vw, 780px); }
.work-card--landscape .work-image { height: min(38vw, 500px); }
.work-hover { position: absolute; z-index: 2; right: 22px; bottom: 20px; display: flex; gap: 16px; align-items: center; opacity: 0; transform: translateY(10px); font-size: .67rem; letter-spacing: .16em; transition: .3s ease; }
.work-hover b { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--gold); font-size: .9rem; }
.work-image:hover .work-hover, .work-image:focus-visible .work-hover { opacity: 1; transform: translateY(0); }
.work-meta { display: flex; justify-content: space-between; align-items: end; padding-top: 18px; border-top: 1px solid rgba(0,0,0,.18); margin-top: 14px; }
.work-meta div { display: flex; gap: 14px; align-items: baseline; }
.work-meta span { color: var(--red); font: .85rem var(--serif); }
.work-meta h3 { margin: 0; font: 400 clamp(1.45rem, 2.5vw, 2.35rem) var(--serif); }
.work-meta p { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .09em; }

.motion { background: #090909; position: relative; }
.motion { color: var(--paper); }
.motion::before { content: "MOTION"; position: absolute; right: -3vw; top: 2vw; font: 14vw/.8 var(--serif); color: rgba(255,255,255,.035); pointer-events: none; }
.section-heading--motion { position: relative; z-index: 1; }
.motion-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.2vw, 38px); }
.film-card { min-width: 0; }
.film-card--featured { grid-column: 1 / -1; width: min(100%, 1180px); justify-self: center; margin-bottom: clamp(8px, 1.2vw, 18px); }
.film-card--featured .play-button { width: clamp(100px, 8vw, 132px); height: clamp(100px, 8vw, 132px); }
.film-card--featured .film-caption h3 { font-size: clamp(2.25rem, 4vw, 4.4rem); }
.film-frame { position: relative; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #000; border: 1px solid var(--line); }
.film-frame video { position: absolute; top: 0; left: 0; right: 0; width: 100%; height: calc(100% - 54px); object-fit: contain; filter: none; }
.film-shade { position: absolute; inset: 0 0 54px; background: linear-gradient(90deg, rgba(5,3,3,.34), transparent 60%), linear-gradient(0deg, rgba(5,3,3,.38), transparent 55%); pointer-events: none; }
.film-topline { position: absolute; top: 24px; left: 26px; right: 26px; z-index: 1; display: flex; justify-content: space-between; color: rgba(255,255,255,.62); font-size: .65rem; letter-spacing: .18em; }
.film-controls { position: absolute; top: 56px; right: 24px; bottom: 7px; left: 24px; z-index: 5; display: flex; justify-content: flex-end; align-items: flex-start; gap: 8px; pointer-events: none; }
.film-control { min-height: 40px; padding: 9px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.42); border-radius: 8px; background: rgba(7,7,7,.52); color: #fff; font-size: .7rem; letter-spacing: .1em; cursor: pointer; backdrop-filter: blur(8px); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.film-controls .film-control { pointer-events: auto; }
.fullscreen-button { position: absolute; right: 0; bottom: 0; }
.film-control:hover, .film-control:focus-visible { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.film-control .control-icon { min-width: 1em; color: #fff; font-size: 1rem; line-height: 1; }
.film-control.is-active { background: var(--red); border-color: var(--red); }
.pause-button { display: none; }
.film-frame.is-playing .pause-button { display: inline-flex; }
.film-frame:fullscreen { width: 100vw; height: 100vh; max-width: none; border: 0; }
.film-frame:fullscreen video { width: 100%; height: calc(100% - 54px); object-fit: contain; }
.play-button { position: absolute; z-index: 2; top: calc((100% - 54px) / 2); left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 132px; height: 132px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(7,4,4,.38); color: var(--paper); cursor: pointer; backdrop-filter: blur(4px); transition: .35s ease; }
.play-button:hover, .play-button:focus-visible { background: var(--red); border-color: var(--red); color: #fff; transform: translate(-50%,-50%) scale(.96); }
.play-icon { width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid currentColor; }
.play-button.is-playing .play-icon { width: 13px; height: 16px; margin: 0; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.play-label { margin-top: 8px; font-size: .58rem; letter-spacing: .15em; }
.film-caption { position: absolute; z-index: 1; left: 32px; bottom: 68px; transition: opacity .3s ease, transform .3s ease; }
.film-caption > span { color: var(--gold); font-size: .65rem; letter-spacing: .2em; }
.film-caption h3 { margin: 8px 0 10px; font: 400 clamp(2rem, 4vw, 4.4rem)/.92 var(--serif); }
.film-caption h3 em { font-size: .52em; color: #b5ada1; letter-spacing: .08em; font-style: normal; }
.film-caption p { margin: 0; color: #a69d91; font-size: .72rem; letter-spacing: .12em; }
.film-frame.is-playing .play-button { opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.92); }
.film-frame.is-playing .film-caption { opacity: 0; pointer-events: none; transform: translateY(10px); }
.film-timeline { position: absolute; left: 24px; right: 124px; bottom: 18px; z-index: 4; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.film-frame.is-playing .film-timeline { opacity: 1; pointer-events: auto; transform: none; }
.film-frame.is-scrubbing .film-timeline { opacity: 1; pointer-events: auto; transform: none; }
.film-timeline span { min-width: 3.1em; color: rgba(255,255,255,.86); font-size: .67rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; text-shadow: 0 1px 8px #000; }
.duration-time { text-align: right; }
.timeline-slider { width: 100%; height: 22px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.timeline-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: rgba(255,255,255,.45); }
.timeline-slider::-webkit-slider-thumb { width: 15px; height: 15px; margin-top: -6px; appearance: none; -webkit-appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(0,0,0,.2); }
.timeline-slider::-moz-range-track { height: 3px; border-radius: 99px; background: rgba(255,255,255,.45); }
.timeline-slider::-moz-range-progress { height: 3px; border-radius: 99px; background: var(--red-bright); }
.timeline-slider::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.motion-grid .play-button { width: clamp(82px, 7vw, 112px); height: clamp(82px, 7vw, 112px); }
.motion-grid .film-caption { left: clamp(18px, 2vw, 28px); bottom: 66px; max-width: calc(100% - 40px); }
.motion-grid .film-caption h3 { font-size: clamp(1.7rem, 2.7vw, 3.25rem); }
.motion-grid .film-caption p { max-width: 92%; }

.about { position: relative; display: grid; grid-template-columns: clamp(280px, 20.8vw, 520px) minmax(0, 36rem); justify-content: center; gap: clamp(40px, 2.8vw, 72px); min-height: 0; align-items: center; padding: clamp(54px, 5vw, 76px) 5vw; overflow: hidden; background: #f4f4f1; }
.about-portrait { width: 100%; max-width: none; margin: 0; justify-self: start; overflow: hidden; background: #777; aspect-ratio: 3 / 4.15; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: contrast(1.02); }
.about-copy { position: relative; z-index: 1; max-width: 36rem; padding-top: 0; text-align: left; }
.about-label { margin: 0 0 clamp(26px, 3vh, 38px); color: #656560; font-size: .75rem; font-weight: 650; letter-spacing: .2em; }
.about-label span { color: var(--red); }
.about-copy h2 { margin: 0 0 clamp(30px, 4vh, 44px); color: #171717; font-family: var(--serif); letter-spacing: -.045em; }
.about-copy h2 span, .about-copy h2 strong { display: block; white-space: nowrap; }
.about-copy h2 span { font-size: clamp(2rem, 2.5vw, 3rem); font-weight: 400; line-height: 1.12; }
.about-copy h2 strong { margin-top: .2em; font-size: clamp(2.75rem, 3.65vw, 4.2rem); font-weight: 700; line-height: .98; }
.about-body { max-width: 36rem; padding-top: 24px; border-top: 1px solid rgba(0,0,0,.18); }
.about-body p { margin: 0; color: #666662; font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.9; }
.about-body p + p { margin-top: 18px; }
.about-body .about-lead { color: #222; font-size: clamp(1.12rem, 1.45vw, 1.35rem); font-weight: 550; line-height: 1.6; }
.skills { min-height: auto; display: flex; flex-direction: column; justify-content: flex-start; background: linear-gradient(180deg, #f7f7f4, #ededeb); }
.skills .section-heading { width: 100%; align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.skills .section-heading h2 { font-size: clamp(2.8rem, 5.4vw, 5.8rem); }
.skills .section-heading p { max-width: 35rem; margin-top: 38px; margin-bottom: 0; color: #585854; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.9; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 24px); }
.skill-card { min-height: 218px; padding: clamp(24px, 2.4vw, 34px); border: 1px solid rgba(0,0,0,.16); border-radius: 10px; background: rgba(255,255,255,.42); transition: transform .28s ease, border-color .28s ease, background .28s ease; }
.skill-card:hover { transform: translateY(-4px); border-color: rgba(114,27,30,.48); background: rgba(255,255,255,.7); }
.skill-card h3 { margin: 0 0 24px; color: #1b1b1a; font: 600 clamp(1.2rem, 1.55vw, 1.55rem)/1.35 var(--serif); }
.skill-card h3::after { content: ""; display: block; width: 34px; height: 2px; margin-top: 16px; background: var(--red); }
.skill-card p { margin: 0; color: #656560; font-size: clamp(.9rem, 1vw, 1rem); line-height: 1.85; }

.contact { position: relative; padding-top: clamp(54px, 5vw, 72px); padding-bottom: 100px; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(114,27,30,.09), transparent 33rem), #f8f8f5; border-top: 1px solid rgba(0,0,0,.14); }
.contact h2 { margin: 28px auto 48px; font: 400 clamp(3rem, 7vw, 7.5rem)/.98 var(--serif); letter-spacing: -.05em; }
.contact h2 span { color: var(--red); }
.contact-button { display: inline-flex; align-items: center; justify-content: space-between; width: min(310px, 80vw); padding: 18px 22px; border: 1px solid #1a1a1a; background: transparent; color: #1a1a1a; font: inherit; font-size: .78rem; letter-spacing: .18em; cursor: pointer; transition: .3s ease; }
.contact-button b { font-size: 1rem; }
.contact-button:hover, .contact-button:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

footer { min-height: 120px; padding: 30px clamp(24px, 5vw, 84px); display: flex; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid rgba(0,0,0,.12); color: #656562; background: #e9e9e6; }
footer p, footer a { font-size: .65rem; letter-spacing: .12em; }
footer > div { display: flex; gap: 24px; }
footer > div a:hover { color: var(--gold); }

.art-dialog { width: min(1180px, calc(100vw - 40px)); max-height: calc(100svh - 40px); padding: 0; border: 1px solid var(--line); background: #090909; color: var(--paper); grid-template-columns: 1.4fr .6fr; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.art-dialog[open] { display: grid; animation: dialog-in .35s ease both; }
.art-dialog::backdrop { background: rgba(3,2,2,.9); backdrop-filter: blur(9px); }
.dialog-media { min-height: min(76vh, 760px); overflow: hidden; background: #160d0d; }
.dialog-media img { height: 100%; object-fit: cover; filter: grayscale(.7) saturate(.42) contrast(1.15) brightness(.82); }
.dialog-copy { padding: clamp(34px, 5vw, 68px) clamp(26px, 4vw, 55px); display: flex; flex-direction: column; justify-content: center; }
.dialog-index { color: var(--gold); font-size: .68rem; letter-spacing: .2em; }
.dialog-copy h2 { margin: 18px 0 10px; font: 400 clamp(2.2rem, 4vw, 4rem) var(--serif); }
.dialog-type { color: var(--gold-soft); font-size: .7rem; letter-spacing: .14em; }
.dialog-desc { margin-top: 30px; color: var(--muted); }
.dialog-close { position: absolute; top: 14px; right: 16px; z-index: 4; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }

.invite-dialog { width: min(590px, calc(100vw - 40px)); padding: clamp(30px, 5vw, 58px); border: 1px solid rgba(0,0,0,.2); background: #f6f6f2; color: #161616; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.invite-dialog::backdrop { background: rgba(10,10,10,.55); backdrop-filter: blur(6px); }
.invite-dialog[open] { animation: dialog-in .3s ease both; }
.invite-dialog h2 { margin: 14px 0 10px; font: 400 clamp(2.5rem, 7vw, 4.5rem)/.96 var(--serif); letter-spacing: -.05em; }
.invite-dialog > p { max-width: 31rem; margin: 0; color: #666661; }
.invite-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border: 1px solid rgba(0,0,0,.24); border-radius: 50%; background: transparent; color: #222; font-size: 1.45rem; cursor: pointer; }
.inquiry-options { display: grid; gap: 10px; margin: 34px 0 18px; }
.inquiry-option { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 15px 17px; border: 1px solid rgba(0,0,0,.2); background: transparent; color: #1a1a1a; text-align: left; font: 1.22rem var(--serif); cursor: pointer; transition: background .22s ease, border-color .22s ease, color .22s ease; }
.inquiry-option small { max-width: 64%; color: #777773; font: .75rem/1.35 var(--sans); letter-spacing: .08em; text-align: right; overflow-wrap: anywhere; }
.inquiry-option:hover, .inquiry-option:focus-visible, .inquiry-option.is-selected { border-color: var(--red); background: var(--red); color: #fff; }
.inquiry-option.is-selected small, .inquiry-option:hover small, .inquiry-option:focus-visible small { color: rgba(255,255,255,.7); }
.inquiry-submit { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 16px 0 5px; border: 0; border-bottom: 1px solid #1a1a1a; color: #1a1a1a; font-size: .77rem; letter-spacing: .14em; }
.inquiry-submit[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.inquiry-submit b { color: var(--red); font-size: 1rem; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .site-header { height: 78px; }
  nav { gap: 18px; }
  nav a { gap: 5px; font-size: .66rem; }
  .hero { padding-top: 98px; }
  .work-grid { gap: 70px 24px; }
  .work-card--wide { width: 100%; }
  .work-card--landscape { padding-top: 9vh; }
  .about { grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); justify-content: stretch; min-height: auto; gap: clamp(32px, 5vw, 52px); padding: 60px clamp(32px, 7vw, 64px); }
  .about-portrait { max-width: 220px; }
  .about-copy { padding-top: 0; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { height: 112px; padding: 14px 20px 12px; display: grid; grid-template-columns: 1fr; align-content: space-between; gap: 11px; }
  .brand { font-size: .82rem; }
  .brand-mark { width: 26px; height: 26px; }
  nav { width: 100%; justify-content: space-between; gap: 8px; }
  nav a { gap: 4px; font-size: .58rem; letter-spacing: .07em; }
  nav a span { font-size: .58rem; }
  .hero { min-height: 100vh; min-height: 100svh; padding: 132px 20px 34px; }
  #top, #works, #motion, #about, #skills { scroll-margin-top: 112px; }
  .hero-overline { width: 78%; margin-bottom: 10px; font-size: .94rem; }
  .hero-name { width: 62%; margin-bottom: 27px; font-size: .8rem; letter-spacing: .18em; }
  .hero h1 { width: 100%; font-size: clamp(1.05rem, 5.8vw, 1.62rem); line-height: 1; letter-spacing: -.045em; }
  .hero-translation { width: 92%; margin-top: 20px; font-size: 1.14rem; line-height: 1.35; }
  .hero-description { width: 76%; margin-top: 14px; font-size: .92rem; line-height: 1.55; letter-spacing: .05em; }
  .hero-actions { flex-direction: column; width: min(100%, 320px); margin: 38px auto 0; }
  .hero-action { width: 100%; }
  .section-shell { padding-inline: 20px; }
  .section-heading { display: block; margin-bottom: 42px; }
  .section-heading p { margin-top: 20px; }
  .work-grid { display: block; }
  .work-card, .work-card--wide, .work-card--portrait { width: 100%; margin: 0 0 70px; padding: 0; }
  .poster-grid { gap: 6px; }
  .work-image, .work-card--portrait .work-image, .work-card--landscape .work-image { height: 120vw; max-height: 660px; }
  .work-card--wide .work-image, .work-card--landscape .work-image { height: 82vw; }
  .work-meta { display: block; }
  .work-meta p { margin-top: 8px; }
  .motion-grid { grid-template-columns: 1fr; gap: 28px; }
  .film-card--featured { grid-column: auto; width: 100%; margin-bottom: 0; }
  .film-card--featured .play-button { width: 82px; height: 82px; }
  .film-card--featured .film-caption h3 { font-size: clamp(1.35rem, 7vw, 2rem); }
  .film-frame { min-height: 0; aspect-ratio: 16 / 11; background: #000; }
  .film-frame video { top: 0; bottom: auto; height: calc(100% - 38px); object-fit: contain; }
  .film-shade { bottom: 38px; }
  .play-button { top: calc((100% - 38px) / 2); width: 82px; height: 82px; }
  .play-label { font-size: .5rem; }
  .film-caption { left: 14px; bottom: 50px; }
  .film-caption h3 { font-size: clamp(1.35rem, 7vw, 2rem); }
  .film-caption p { font-size: .61rem; }
  .film-topline { display: none; }
  .film-controls { top: 10px; right: 10px; bottom: 0; left: 10px; }
  .film-control { min-width: 40px; min-height: 40px; padding: 8px 10px; }
  .film-control .control-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .film-frame.is-playing video { object-fit: contain; }
  .film-timeline { left: 10px; right: 66px; bottom: 6px; gap: 8px; }
  .film-timeline span { font-size: .61rem; }
  .about { grid-template-columns: minmax(118px, .42fr) minmax(0, .58fr); align-items: center; gap: 18px; padding: 70px 16px; }
  .about-portrait { width: 100%; max-width: 140px; aspect-ratio: 3 / 4.15; align-self: center; margin-top: 0; }
  .about-copy { padding-top: 0; }
  .about-label { margin-bottom: 20px; font-size: .62rem; letter-spacing: .13em; }
  .about-copy h2 { margin-bottom: 26px; letter-spacing: -.055em; }
  .about-copy h2 span { font-size: clamp(1.4rem, 6vw, 1.7rem); }
  .about-copy h2 strong { margin-top: .16em; font-size: clamp(1.4rem, 6.3vw, 1.8rem); }
  .about-body { padding-top: 18px; }
  .about-body p { font-size: .9rem; line-height: 1.72; }
  .about-body p + p { margin-top: 13px; }
  .about-body .about-lead { font-size: .9rem; line-height: 1.55; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 0; }
  .skills .section-heading h2 { font-size: clamp(2.1rem, 10.5vw, 3.2rem); }
  .skills .section-heading p { margin-top: 20px; }
  footer { flex-direction: column; align-items: flex-start; }
  .art-dialog[open] { display: block; overflow: auto; }
  .dialog-media { min-height: 54vh; height: 54vh; }
  .dialog-copy { min-height: 38vh; }
}

@media (max-width: 520px) {
  .about { grid-template-columns: 1fr; gap: 34px; padding: 52px 20px 60px; }
  .about-portrait { width: min(72vw, 250px); max-width: none; justify-self: center; }
  .about-copy { width: 100%; max-width: 32rem; justify-self: center; }
  .about-label { margin-bottom: 22px; }
  .about-copy h2 { margin-bottom: 30px; }
  .about-copy h2 span { font-size: clamp(1.55rem, 7vw, 2rem); }
  .about-copy h2 strong { font-size: clamp(2rem, 10vw, 2.75rem); }
  .about-body p { font-size: 1rem; line-height: 1.82; }
  .about-body .about-lead { font-size: 1.08rem; }
}
