:root {
  color-scheme: dark;
  --bg: #101818;
  --panel: #151e1e;
  --surface: #1b2726;
  --hover: #233230;
  --ink: #f0efe6;
  --muted: #a5b2ab;
  --line: #34433e;
  --accent: #d3eaa8;
  --accent-ink: #25301c;
  --danger: #ffb2a8;
  --page-gutter: clamp(1.3rem, 5vw, 6rem);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root[data-theme=light] {
  color-scheme: light;
  --bg: #efeee6;
  --panel: #faf9f2;
  --surface: #e9ede2;
  --hover: #dfe6d6;
  --ink: #172523;
  --muted: #52645b;
  --line: #cbd2c7;
  --accent: #446232;
  --accent-ink: #fafcf4;
  --danger: #9e3123;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: none; vertical-align: middle; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon-btn {
  width: 40px; height: 40px; padding: 0; display: inline-grid; flex: none; place-items: center;
  color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 9px;
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover:not(:disabled), .subtle:hover { background: var(--hover); }
.primary, .subtle {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 41px; padding: .55rem .9rem; border: 1px solid transparent; border-radius: 8px;
  font-weight: 650; font-size: .9rem; white-space: nowrap;
}
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover:not(:disabled) { filter: brightness(.94); }
.subtle { border-color: var(--line); background: var(--panel); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; font-weight: 650; }
.text-link:hover { color: var(--accent); }
.scroll-tools {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(19px, env(safe-area-inset-bottom)); z-index: 6;
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 5px 22px #0003;
  background: var(--panel);
}
.scroll-tools .icon-btn { border: 0; height: 36px; width: 36px; }
.scroll-tools .icon-btn + .icon-btn { border-top: 1px solid var(--line); }
.empty { color: var(--muted); padding: 4rem 2rem; text-align: center; }
.detail-empty { min-height: 56vh; display: grid; place-content: center; justify-items: center; gap: 1.25rem; }
.eyebrow { color: var(--accent); font-size: .77rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.045em; }
.wordmark span { color: var(--accent); }
.wordmark-period { margin-left: -.32rem; }
.wordmark-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; margin-right: .1rem; }
.film-definitions { position: absolute; pointer-events: none; }
.intro-running { overflow: hidden; }
.intro {
  --intro-tone: color-mix(in srgb, var(--intro-ink, #f5f6e8) 80%, var(--intro-bg, #131d1c));
  color: var(--intro-tone); position: fixed; inset: 0; z-index: 30; display: grid; align-items: center;
  overflow: hidden; isolation: isolate; background: var(--intro-bg, #131d1c); padding: 0 var(--page-gutter);
  animation: intro-fallback .55s 4.7s both;
}
.intro canvas, .intro-mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.intro-mask {
  background: radial-gradient(ellipse at 34% 45%, color-mix(in srgb, var(--intro-accent, #d3eaa8) 10%, transparent) 0%, transparent 53%),
    radial-gradient(ellipse at 50% 46%, transparent 39%, #060b0ace 100%),
    repeating-linear-gradient(0deg, transparent 0 3px, #050c0d12 4px 5px);
}
.intro-content { width: min(100%, 960px); justify-self: start; transform: translateY(-4vh); }
.intro-brand {
  color: var(--intro-ink, #f5f6e8); font-size: clamp(2.35rem, 8.5vw, 8.1rem); font-weight: 760; letter-spacing: -.09em; line-height: .93;
  text-shadow: 0 0 42px color-mix(in srgb, var(--intro-accent, #d3eaa8) 24%, transparent); overflow-wrap: anywhere; animation: intro-word .95s cubic-bezier(.18,.72,.22,1) both;
}
.intro-brand span { color: var(--intro-accent, #d3eaa8); }
.intro-meter {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; max-width: 260px; margin-top: 1.45rem;
  font-size: .75rem; font-weight: 650; color: var(--intro-tone); font-variant-numeric: tabular-nums;
  animation: intro-word .75s .12s both;
}
.intro-meter span { position: relative; height: 1px; background: #d7e7c63b; }
.intro-meter span::before { content: ''; display: block; width: var(--loaded, 0%); height: 100%; background: var(--intro-accent, #d3eaa8); box-shadow: 0 0 6px var(--intro-accent, #d3eaa8); }
.intro button {
  position: absolute; bottom: max(1.5rem, env(safe-area-inset-bottom)); right: var(--page-gutter);
  background: color-mix(in srgb, var(--intro-bg, #131d1c) 70%, transparent); border: 1px solid var(--intro-tone); border-radius: 7px; padding: .55rem .75rem; color: var(--intro-ink, #f5f6e8); font-size: .83rem;
}
.intro.intro-exit { pointer-events: none; animation: intro-open .7s cubic-bezier(.64,.02,.27,1) both; }
.intro-exit .intro-content { animation: intro-title-out .49s cubic-bezier(.42,.01,.76,.47) both; }
@keyframes intro-word {
  from { opacity: 0; filter: blur(9px); transform: translateY(24px) scale(.985); clip-path: inset(0 100% 0 0); }
  to { opacity: 1; filter: blur(0); transform: none; clip-path: inset(0 -8% -16% 0); }
}
@keyframes intro-open {
  0% { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  45% { opacity: .92; }
  100% { opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 16%); }
}
@keyframes intro-title-out { to { opacity: 0; translate: -3vw -4vh; filter: blur(10px); } }
@keyframes intro-fallback { 0% { visibility: visible; } 100% { opacity: 0; visibility: hidden; pointer-events: none; } }
.motion-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.motion-still {
  position: absolute; transform-origin: 0 0; border-radius: 6px; overflow: hidden; background: var(--surface);
  box-shadow: 0 12px 45px #07111045; will-change: transform, clip-path, opacity;
}
.motion-still img { width: 100%; height: 100%; }
.motion-work { position: absolute; overflow: hidden; border-radius: 8px; background: #0a1010; }
.motion-work img { position: absolute; max-width: none; }
.motion-understudy { visibility: hidden; }

.site-header {
  padding: 0 var(--page-gutter); height: 75px; width: 100%; display: grid; align-items: center;
  grid-template-columns: 1fr auto 1fr; gap: 1rem; border-bottom: 1px solid var(--line);
  background: var(--bg); position: relative; z-index: 2;
}
.site-header > a { justify-self: start; }
.site-header > button { justify-self: end; }
.site-header nav { display: flex; align-items: stretch; gap: clamp(1rem, 3.4vw, 3rem); height: 100%; }
.site-header nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.site-header nav a[aria-current]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); }

.screening {
  min-height: calc(100svh - 75px); display: grid; align-items: center; position: relative; isolation: isolate; overflow: clip;
  padding: clamp(2rem, 6vh, 4.5rem) 0 clamp(1.5rem, 4vh, 4rem);
}
.ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-image {
  position: absolute; inset: -3rem; background-size: cover; background-position: 50% 48%;
  filter: blur(30px) saturate(.78); opacity: 0; transform: scale(1.07);
  transition: opacity .73s cubic-bezier(.25,.66,.3,1), transform 1.65s cubic-bezier(.25,.62,.3,1);
}
.ambient-image.is-visible { opacity: .52; transform: scale(1); }
.ambient::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(150px circle at var(--light-x, -160px) var(--light-y, -160px), #dfefae18 0, transparent 95%),
    radial-gradient(ellipse at 50% 50%, transparent 0, transparent 20%, color-mix(in srgb, var(--bg) 77%, transparent) 98%),
    linear-gradient(180deg, var(--bg) 0%, transparent 32%, transparent 58%, var(--bg) 100%);
}
:root[data-theme=light] .ambient-image.is-visible { opacity: .27; }
.screen-content { width: 100%; position: relative; }
.screen-head { padding: 0 var(--page-gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: clamp(.5rem, 2.2vh, 2rem); }
.screen-head h1 { margin-top: .65rem; font-size: clamp(3rem, 6.3vw, 7.1rem); line-height: .87; letter-spacing: -.085em; font-weight: 760; white-space: pre-line; overflow-wrap: anywhere; }
.screen-head h1 span, .portfolio-about h2 span { color: var(--accent); }
.screen-controls { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; flex-wrap: wrap; }
.filter-pills, .view-switch {
  display: flex; align-items: center; gap: .2rem; background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line); padding: .22rem; border-radius: 9px; max-width: 100%;
}
.filter-pills { flex-wrap: wrap; }
.filter-pills button, .view-switch .icon-btn { border: 0; border-radius: 5px; min-height: 33px; height: auto; color: var(--muted); }
.view-switch .icon-btn { width: 36px; }
.view-switch svg { width: 17px; }
.filter-pills button { padding: .34rem .7rem; background: transparent; font-size: .85rem; white-space: nowrap; font-weight: 600; }
.filter-pills button:hover, .view-switch .icon-btn:hover { color: var(--ink); }
.filter-pills button[aria-pressed=true], .view-switch .icon-btn[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }
.film-strip {
  --card-width: min(43vw, 650px);
  --card-gap: clamp(1rem, 2.7vw, 3rem);
  position: relative; width: 100%; height: clamp(255px, 35vw, 410px);
  perspective: 1200px; touch-action: pan-y; user-select: none;
  outline-offset: -4px;
}
.film-strip::before, .film-strip::after {
  position: absolute; content: ''; height: 1px; inset: 12% var(--page-gutter) auto; background: var(--line); opacity: .6; pointer-events: none;
}
.film-strip::after { inset: auto var(--page-gutter) 12%; }
.frame {
  --offset: 0; --distance: 0; --angle: 0deg;
  position: absolute; left: 50%; top: 50%; width: var(--card-width); aspect-ratio: 1.83;
  transform: translate3d(calc(-50% + var(--offset) * (var(--card-width) + var(--card-gap)) + var(--drag, 0px)), -50%, calc(-59px * var(--distance))) rotateY(var(--angle)) scale(calc(1 - min(.18, .065 * var(--distance))));
  transition: transform .68s cubic-bezier(.17,.8,.24,1), opacity .5s, filter .5s;
  cursor: grab; opacity: clamp(0, calc(.94 - .41 * var(--distance)), .53); filter: saturate(.72); -webkit-user-drag: none;
}
.frame:active, .film-strip:active { cursor: grabbing; }
.frame.is-active { cursor: pointer; opacity: 1; filter: none; z-index: 2; }
.frame:hover { opacity: 1; }
.frame-picture {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 6px; background: var(--surface);
  box-shadow: 0 15px 65px #02090964;
}
.frame-picture img, .frame-picture video, .tile-image img { width: 100%; height: 100%; object-fit: cover; }
.frame[data-edge=left] .frame-picture { clip-path: url(#film-edge-left); }
.frame[data-edge=right] .frame-picture { clip-path: url(#film-edge-right); }
.frame[data-edge] .frame-picture::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--edge-direction, 90deg), #bfe3b530, transparent 10%, transparent 89%, #101b1a30);
}
.frame[data-edge=right] .frame-picture { --edge-direction: 270deg; }
.frame-picture video { position: absolute; inset: 0; opacity: 0; transition: opacity .55s; }
.frame.is-active:hover video, .frame.is-active:focus-visible video { opacity: 1; }
.frame-corner { display: none; position: absolute; inset: -8px; pointer-events: none; }
.frame.is-active .frame-corner {
  display: block;
  background: linear-gradient(var(--accent),var(--accent)) 0 0 / 16px 1px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 100% 0 / 16px 1px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 100% 0 / 1px 16px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 0 100% / 16px 1px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 0 100% / 1px 16px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 100% 100% / 16px 1px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 100% 100% / 1px 16px no-repeat;
}
.play-mark { position: absolute; bottom: 12px; right: 12px; width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #111b1b9e; border: 1px solid #ffffff67; }
.play-mark svg { margin-left: 2px; fill: currentColor; }
.missing-cover { position: absolute; inset: 0; background: linear-gradient(145deg, var(--surface), var(--panel)); }
.gallery-meta {
  width: 100%; padding: 0 var(--page-gutter); min-height: 64px; display: grid; align-items: center;
  grid-template-columns: 1fr minmax(0, 2.4fr) 1fr; color: var(--muted); font-size: .9rem; gap: .75rem;
}
.film-position { display: flex; align-items: center; gap: .6rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress { width: min(85px, 6vw); height: 2px; background: var(--line); }
.progress i { height: 100%; display: block; background: var(--accent); transition: width .35s; }
.current-title { display: grid; gap: .35rem; justify-items: center; text-align: center; }
.current-title a { color: var(--ink); font-size: clamp(1.3rem, 2.9vw, 2.65rem); font-weight: 720; letter-spacing: -.055em; line-height: 1; overflow-wrap: anywhere; }
.current-title > * { animation: frame-in .4s cubic-bezier(.23,.66,.3,1) both; }
.current-title > span { animation-delay: .06s; }
.current-title a:hover { color: var(--accent); }
.frame-nav { display: flex; gap: .45rem; justify-content: flex-end; }
.frame-nav .icon-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--panel); }
.frame-nav .icon-btn:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.grid-mode { align-items: start; }
.grid-mode .screen-head { margin-bottom: clamp(2rem, 6vh, 4rem); }
.grid-mode .ambient-image.is-visible { opacity: .25; }
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem 1.3rem; padding: 0 var(--page-gutter); }
.grid-card { min-width: 0; }
.tile-image { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-radius: 7px; background: var(--surface); }
.tile-image img { transition: transform .58s cubic-bezier(.18,.62,.31,1); }
.grid-card:hover img { transform: scale(1.07); }
.tile-info { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); justify-content: space-between; }
.tile-info h2 { font-size: clamp(1rem, 1.8vw, 1.65rem); margin-bottom: .2rem; overflow-wrap: anywhere; }
.tile-info span { color: var(--muted); font-size: .86rem; }
.portfolio-about { padding: 2rem var(--page-gutter); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.portfolio-about { padding-block: clamp(2.5rem, 8vw, 7rem); background: var(--panel); }
.portfolio-about h2 { font-size: clamp(2.15rem, 5vw, 5rem); letter-spacing: -.065em; }
.portfolio-about p + p, .portfolio-about h2 + p { color: var(--muted); line-height: 1.65; margin-top: .6rem; }
.site-footer {
  padding: clamp(2.6rem, 6.1vw, 6rem) max(var(--page-gutter), 62px) 0 var(--page-gutter);
  border-top: 1px solid var(--line); color: var(--ink);
  background: radial-gradient(ellipse at 98% 1%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 43%), var(--bg);
}
.footer-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: end; }
.footer-intro h2 {
  font-size: clamp(2.1rem, 5.6vw, 5.3rem); line-height: 1.04; font-weight: 710; letter-spacing: -.075em;
  white-space: pre-line; overflow-wrap: anywhere;
}
.footer-intro p { margin-top: .85rem; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.footer-actions { display: grid; justify-items: end; gap: 1.25rem; }
.footer-cta { display: inline-flex; align-items: center; gap: 1rem; color: var(--accent); font-size: clamp(.98rem, 1.5vw, 1.2rem); font-weight: 680; }
.footer-cta > span {
  display: grid; place-items: center; width: clamp(43px, 5vw, 63px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--accent); transition: background .2s ease, color .2s ease, transform .24s;
}
.footer-cta:hover > span { background: var(--accent); color: var(--accent-ink); transform: rotate(9deg); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.15rem; color: var(--muted); }
.footer-links a { font-size: .92rem; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.18rem 0; margin-top: clamp(1.75rem, 4.6vw, 3.8rem); border-top: 1px solid var(--line); }
.footer-bottom > span { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.footer-bottom .wordmark-mark { width: 31px; height: 31px; }

@property --scene-edge { syntax: '<percentage>'; inherits: false; initial-value: 112%; }
.chapter-rack {
  position: fixed; z-index: 12; inset: 75px 0 0; overflow: hidden; pointer-events: none; background: var(--bg);
  mask-image: linear-gradient(90deg, #000 calc(var(--scene-edge) - 10%), transparent calc(var(--scene-edge) + 12%));
}
.chapter-rack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; transform-origin: 51% 47%; }
.about-page, .contacts-page { --grain-ink: var(--palette-grain, #7f9b8d); --editorial-accent: var(--palette-editorial, #cce3a3); background: var(--panel); }
:root[data-theme=light] :is(.about-page, .contacts-page) { --grain-ink: var(--palette-grain, #53715e); --editorial-accent: var(--palette-editorial, #34553e); }
.about-page { position: relative; display: grid; grid-template-columns: 47% minmax(0, 1fr); isolation: isolate; }
.public:has(.about-page) .site-header { position: sticky; top: 0; }
.about-visual { grid-column: 1; grid-row: 1; position: sticky; top: 75px; height: calc(100svh - 75px); align-self: start; width: 128%; overflow: hidden; pointer-events: none; }
.about-grain, .about-color { position: absolute; inset: 0; background-image: var(--artwork); background-size: cover; background-position: 50% 43%; }
.about-grain { z-index: 0; }
.about-grain:not(.has-grain) { filter: grayscale(1) contrast(1.45); opacity: .42; }
.about-grain.has-grain { background-image: none; }
.about-grain canvas { display: block; width: 100%; height: 100%; }
.about-grain { mask-image: linear-gradient(90deg, #000 34%, #000b 69%, transparent 100%); }
.about-color { z-index: 1; clip-path: inset(0 32% 0 0); animation: split-open 1.08s cubic-bezier(.25,.56,.22,1) both; }
.about-after-rack .about-color { animation: none; }
.about-color::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #09101155, transparent 45%); }
.about-split { z-index: 2; position: absolute; left: 68%; height: 100%; width: 1px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
@keyframes split-open { from { clip-path: inset(0 1% 0 0); filter: blur(8px); } to { clip-path: inset(0 32% 0 0); filter: none; } }
.about-content { grid-column: 2; grid-row: 1; z-index: 1; padding: 0 var(--page-gutter) clamp(4rem, 7vw, 8rem) clamp(1.5rem, 6vw, 7rem); }
.about-hero { min-height: calc(100svh - 75px); display: grid; align-content: end; gap: 1.25rem; padding: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 7vw, 7rem); }
.about-hero h1, .contacts-heading h1 { color: var(--editorial-accent); letter-spacing: -.075em; white-space: pre-line; overflow-wrap: anywhere; font-weight: 770; line-height: .98; }
.about-hero h1 { font-size: clamp(3.5rem, 7vw, 8.25rem); animation: type-in 1.1s .16s both cubic-bezier(.19,.61,.22,1); }
.about-hero > :not(h1), .contacts-heading { animation: frame-in .7s .27s both; }
.about-after-rack .about-hero h1 { animation-delay: .35s; animation-duration: .8s; }
.about-after-rack .about-hero > :not(h1) { animation-delay: .49s; }
@keyframes type-in { from { opacity: 0; translate: 0 32px; filter: blur(17px); clip-path: inset(0 0 70% 0); } to { opacity: 1; translate: 0; filter: none; clip-path: inset(0 -5% -10% 0); } }
.about-lead { color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.19rem); line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; max-width: 35rem; }
.about-hero .text-link { margin-top: .7rem; }
.about-process, .about-end { padding: 2rem 0 0; border-top: 1px solid var(--line); scroll-margin-top: 86px; }
.about-process > h2 { font-size: 1.05rem; letter-spacing: .06em; color: var(--muted); margin-bottom: clamp(1.1rem, 4vw, 3.3rem); }
.process-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.4rem 0 clamp(2rem, 5.65vw, 5rem); }
.process-icon { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--editorial-accent); }
.process-row h3 { margin: 0 0 .45rem; font-size: clamp(1.6rem, 3vw, 2.7rem); letter-spacing: -.065em; }
.process-row p { color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.about-end h2 { color: var(--editorial-accent); font-size: clamp(2.1rem, 4.4vw, 4.4rem); letter-spacing: -.07em; line-height: 1.04; overflow-wrap: anywhere; }
.about-end > div { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1.4rem; }
.reveal-ready { opacity: 0; translate: 0 26px; transition: opacity .65s, translate .7s cubic-bezier(.21,.72,.28,1); }
.reveal-visible, .reveal-ready:focus-within { opacity: 1; translate: 0; }
.contacts-page { padding: clamp(2.75rem, 5.6vw, 5rem) var(--page-gutter) clamp(3.7rem, 7vw, 7rem); min-height: 85svh; }
.contacts-inner { width: min(100%, 880px); margin-inline: auto; }
.contacts-heading h1 { font-size: clamp(2.9rem, 7.5vw, 7.6rem); margin-top: .48rem; }
.contacts-heading > p:last-child { margin-top: .96rem; color: var(--muted); line-height: 1.6; }
.contacts-status { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); margin-top: 1.55rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.contacts-status time { display: flex; align-items: center; gap: .5rem; }
.contacts-status time::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--editorial-accent); box-shadow: 0 0 13px var(--editorial-accent); }
.contact-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.35rem; padding: .9rem 0 0; }
.contact-links a { display: inline-flex; align-items: center; gap: .2em; font-size: clamp(1.3rem, 3vw, 2.4rem); font-weight: 730; color: var(--editorial-accent); letter-spacing: -.05em; }
.contact-links a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 1rem; margin-top: clamp(1.8rem, 4vw, 3.6rem); animation: frame-in .65s .19s both; }
.contact-fields { display: grid; grid-template-columns: 1fr 1.65fr; gap: 1.2rem; }
.contact-fields .field input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding-inline: 0; }
.contact-message { border: 1px solid var(--line); padding: 1rem; display: grid; gap: .65rem; background: color-mix(in srgb, var(--surface) 52%, var(--panel)); }
.contact-message textarea { background: transparent; border: 0; width: 100%; padding: .5rem 0; }
.recorder-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.recorder-actions button, #record-remove { min-height: 34px; }
#record-remove { justify-self: start; }
#record-preview :is(video, audio) { width: min(100%, 525px); display: block; }
#record-preview video { max-height: 48svh; background: #0a1010; }
.contact-consent { display: flex; align-items: flex-start; gap: .55rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.contact-consent input { accent-color: var(--accent); margin-top: .23rem; }
.contact-feedback { font-size: .94rem; color: var(--muted); }
.contact-feedback[data-type=error] { color: var(--danger); }
.contact-feedback[data-type=ok] { color: var(--accent); }
.contact-submit { min-height: 48px; justify-content: space-between; width: 100%; }
.detail-caption h1 { font-size: clamp(2.3rem, 6vw, 7rem); letter-spacing: -.075em; line-height: .95; }
.work-detail { width: 100%; padding: clamp(2rem, 4vw, 5rem) var(--page-gutter); }
.work-detail > .text-link { margin-bottom: 1.4rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.75rem); align-items: start; }
.detail-side { min-width: 0; display: grid; align-content: start; gap: 1.1rem; border-top: 1px solid var(--line); padding-top: 1.2rem; animation: detail-text .62s .21s both; }
.detail-caption { display: grid; gap: .6rem; }
.detail-caption h1 { margin-top: .6rem; overflow-wrap: anywhere; }
.detail-caption h1 { font-size: clamp(2.25rem, 4.5vw, 5.5rem); }
.detail-caption > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.detail-player { position: relative; aspect-ratio: 16 / 9; max-height: 74svh; background: #0a1010; overflow: hidden; border-radius: 8px; }
.detail-player video, .detail-player iframe, .detail-player img { width: 100%; height: 100%; border: 0; object-fit: contain; }
.detail-player.has-video > :is(video, iframe) { position: absolute; inset: 0; opacity: 0; }
.detail-player.is-playing > :is(video, iframe) { opacity: 1; }
.detail-poster { position: absolute; inset: 0; transition: opacity .26s ease-out; background: #0a1010; }
.detail-poster img { object-fit: cover; }
.detail-player.is-playing .detail-poster { opacity: 0; pointer-events: none; }
.detail-play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%;
  color: #fff; border: 0; background: transparent;
}
.detail-play:focus-visible { outline: 2px solid var(--accent); outline-offset: -5px; }
.detail-play span {
  width: clamp(44px, 6.5vw, 74px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: #0a1010a6; border: 1px solid #ffffff8a; transition: background .2s, color .2s;
}
.detail-play svg { margin-left: 2px; fill: currentColor; }
.detail-play:hover span { background: var(--accent); color: var(--accent-ink); }
.detail-play[aria-disabled=true] { cursor: progress; }
.detail-media-status { position: absolute; bottom: .7rem; left: .7rem; right: .7rem; width: fit-content; background: #0a1010d9; color: #fff; padding: .45rem .65rem; border-radius: 6px; pointer-events: none; }
.detail-poster .missing-cover { background: #0a1010; }
.source-link { font-size: .9rem; color: var(--muted); }
.detail-description { color: var(--muted); font-size: 1.05rem; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.next-work { width: 100%; border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1rem; justify-content: flex-end; }
@keyframes detail-text { from { opacity: 0; translate: 17px 0; clip-path: inset(0 0 0 10%); } to { opacity: 1; translate: 0; clip-path: inset(0 -8px 0 -8px); } }
@keyframes frame-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

.admin { --side-width: 227px; }
.admin-shell { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); min-height: 100vh; width: 100%; transition: grid-template-columns .2s; }
.admin-shell.side-collapsed { --side-width: 70px; }
.sidebar {
  background: var(--panel); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100dvh;
  min-width: 0; overflow: hidden; display: flex; flex-direction: column; padding: 1.3rem .8rem .9rem; z-index: 5;
}
.side-brand { display: flex; align-items: center; gap: .65rem; min-height: 42px; margin-bottom: 2rem; padding: 0 .16rem; white-space: nowrap; font-weight: 750; }
.side-brand small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; margin-top: .14rem; }
.side-brand-icon, .login-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); flex: none; }
.sidebar-scroll { min-height: 0; flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-color: transparent transparent; scrollbar-width: thin; }
.sidebar-scroll:is(:hover,:focus-within) { scrollbar-color: var(--muted) transparent; }
.side-group + .side-group { margin-top: 1.5rem; }
.side-group p { margin: 0 0 .45rem .55rem; color: var(--muted); font-size: .76rem; font-weight: 650; white-space: nowrap; }
.side-group a, .side-group button {
  display: flex; align-items: center; gap: .7rem; min-height: 42px; width: 100%; padding: .5rem .62rem; white-space: nowrap;
  border-radius: 7px; font-size: .9rem; font-weight: 650; color: var(--muted); background: transparent; border: 1px solid transparent;
}
.side-group a:hover, .side-group button:hover, .side-group a[aria-current] { color: var(--ink); background: var(--surface); border-color: var(--line); }
.side-group a[aria-current] svg { color: var(--accent); }
.side-bottom { border-top: 1px solid var(--line); padding-top: .65rem; }
.side-collapsed .side-text { display: none; }
.side-collapsed .sidebar-scroll .side-group + .side-group { margin-top: .4rem; }
#sidebar-backdrop { display: none; }
.admin-main { min-width: 0; width: 100%; }
.admin-top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(.9rem, 2.7vw, 2.6rem); border-bottom: 1px solid var(--line); background: var(--panel); }
.admin-top > div { display: flex; align-items: center; gap: .8rem; }
.admin-top .icon-btn { width: 35px; height: 35px; }
.admin-top .icon-btn svg { width: 17px; }
.admin-top span { font-size: .9rem; font-weight: 650; }
.crumb { color: var(--muted); padding: 0 .22rem; }
.admin-avatar { background: var(--surface); color: var(--accent); border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
#admin-body { padding: clamp(1.4rem, 3.1vw, 3rem) clamp(.9rem, 2.7vw, 2.6rem) 7rem; width: 100%; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.admin-heading h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.055em; }
.admin-heading p, .panel-heading p, .login-card > p { color: var(--muted); line-height: 1.55; margin-top: .45rem; }
.admin-tabs { display: flex; gap: .35rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.admin-tabs { overflow-x: auto; }
.admin-tabs button { border: 0; border-bottom: 2px solid transparent; padding: .65rem .85rem; display: flex; align-items: center; gap: .45rem; background: none; color: var(--muted); white-space: nowrap; font-size: .92rem; font-weight: 650; }
.admin-tabs button[aria-pressed=true] { color: var(--accent); border-color: var(--accent); }
.admin-tabs button span { background: var(--surface); padding: .13rem .45rem; border-radius: 20px; font-size: .75rem; }
.admin-panel { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.table-filters { display: flex; flex-wrap: wrap; gap: .65rem; padding: 1rem; align-items: center; }
.field { display: grid; gap: .5rem; font-size: .9rem; font-weight: 630; min-width: 0; }
.field small { color: var(--muted); font-size: .82rem; font-weight: 450; line-height: 1.5; }
input:not([type=checkbox]), select, textarea {
  min-height: 41px; padding: .55rem .7rem; min-width: 0; border: 1px solid var(--line);
  border-radius: 7px; color: var(--ink); background: var(--bg); font-size: .92rem; font-weight: 450;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
select { padding-right: .85rem; }
textarea { line-height: 1.55; resize: vertical; }
.search-input { display: flex; align-items: center; flex: 1 1 250px; color: var(--muted); border: 1px solid var(--line); background: var(--bg); border-radius: 7px; padding-left: .7rem; }
.search-input input { border: 0; width: 100%; min-height: 39px; background: none; }
.search-input:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-input input:focus { outline: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th, td { text-align: left; padding: .76rem 1rem; border-block: 1px solid var(--line); }
th { background: var(--surface); color: var(--muted); font-size: .83rem; white-space: nowrap; }
th button, .title-button { font-weight: 700; color: inherit; background: none; border: 0; padding: 0; text-align: left; }
th button { display: inline-flex; align-items: center; gap: .4rem; }
th[aria-sort] button, .title-button:hover { color: var(--accent); }
td { font-size: .92rem; height: 67px; }
tbody tr:hover { background: color-mix(in srgb, var(--surface) 50%, transparent); }
.project-title { display: flex; align-items: center; gap: .65rem; min-width: 150px; }
.project-title small { display: block; font-size: .73rem; margin-top: .2rem; color: var(--muted); }
.table-thumb { width: 58px; height: 38px; flex: none; border-radius: 5px; overflow: hidden; display: grid; place-items: center; color: var(--muted); background: var(--surface); }
.table-thumb img { width: 100%; height: 100%; object-fit: cover; }
.status { display: inline-block; padding: .23rem .55rem; background: var(--surface); border-radius: 20px; color: var(--muted); white-space: nowrap; font-size: .78rem; font-weight: 670; }
.status.published { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); color: var(--accent); }
.row-actions { display: flex; gap: .38rem; }
.row-actions .icon-btn { width: 34px; height: 34px; }
.table-empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.inquiry-excerpt { overflow-wrap: anywhere; }
.inquiry-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.inquiry-player { width: 100%; max-height: 55dvh; }
.pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: .9rem 1rem; gap: .8rem; font-size: .85rem; color: var(--muted); }
.page-controls, .page-options, #jump-page { display: flex; align-items: center; gap: .35rem; }
.page-controls button { min-width: 33px; min-height: 33px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); display: grid; place-items: center; }
.page-controls button[aria-current=page] { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.page-controls button:hover:not(:disabled):not([aria-current]) { background: var(--hover); }
.page-options input { width: 63px; }
.page-options :is(input,select,button) { min-height: 34px; padding: .3rem .55rem; font-size: .85rem; }
.settings-form, .dialog-form { display: grid; gap: 1.15rem; padding: 1.4rem; }
.settings-form > .primary { width: fit-content; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.three-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.image-editor { display: grid; grid-template-columns: clamp(76px, 14vw, 150px) minmax(0, 1fr); gap: 1rem; align-items: center; }
.image-editor-preview { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.image-editor-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-editor-file { margin-top: .55rem; }
.image-editor-file input { width: 100%; }
.palette-toolbar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .7rem; }
.palette-toolbar .admin-tabs { margin-bottom: 0; }
.palette-preview {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding: 1.35rem;
  border-radius: 10px; background: var(--swatch-bg); color: var(--swatch-ink); border: 1px solid var(--swatch-line);
}
.palette-preview > div { display: grid; align-content: center; gap: .48rem; }
.palette-preview p { font-size: .76rem; letter-spacing: .12em; color: var(--swatch-accent); }
.palette-preview strong { display: block; font-size: clamp(1.55rem, 3.2vw, 2.85rem); letter-spacing: -.06em; overflow-wrap: anywhere; }
.palette-preview > div:first-child span { color: var(--swatch-muted); }
.palette-preview .palette-preview-details { background: var(--swatch-panel); color: var(--swatch-editorial); padding: .9rem; border: 1px solid var(--swatch-line); border-radius: 7px; min-width: min(180px, 100%); }
.palette-preview-details i { min-height: 30px; background: radial-gradient(circle, var(--swatch-grain) 1.1px, transparent 1.6px) 0 0 / 5px 5px, var(--swatch-surface); }
.palette-preview-details span { text-align: center; padding: .35rem .67rem; border-radius: 5px; font-size: .82rem; font-weight: 680; background: var(--swatch-accent); color: var(--swatch-accent-ink); }
.palette-group { min-width: 0; margin: 0; padding: .85rem; border: 1px solid var(--line); border-radius: 8px; }
.palette-group legend { padding: 0 .35rem; color: var(--muted); font-size: .83rem; }
.palette-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); gap: .95rem; }
.palette-control { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: .55rem; align-items: end; }
.palette-control input[type=color] { width: 100%; min-height: 41px; padding: .22rem; cursor: pointer; }
.panel-heading { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: 1.2rem; }
.footer-editor-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.footer-link-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.4rem; margin: .25rem 0 1rem; }
.footer-link-editor { display: grid; gap: .85rem; }
.favicon-settings { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .75rem; min-width: 0; }
.favicon-settings img { width: 41px; height: 41px; border-radius: 8px; border: 1px solid var(--line); }
.favicon-settings .field { flex: 1 1 200px; }
.favicon-settings input[type=file] { width: 100%; }
.form-error { color: var(--danger); font-size: .9rem; line-height: 1.5; }
.password-control { display: flex; position: relative; }
.password-control input { width: 100%; padding-right: 3rem; }
.password-control .icon-btn { position: absolute; right: 2px; top: 1px; border: 0; }
dialog { color: var(--ink); background: var(--panel); padding: 0; border: 1px solid var(--line); border-radius: 12px; width: min(calc(100% - 2rem), 620px); max-height: calc(100dvh - 2rem); }
dialog::backdrop { background: #0a100ed0; }
.dialog-heading { border-bottom: 1px solid var(--line); padding: .8rem 1.4rem; display: flex; justify-content: space-between; align-items: center; }
.dialog-heading h2 { font-size: 1.3rem; }
.dialog-form p { line-height: 1.55; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.checkbox { display: flex; align-items: center; gap: .45rem; }
.checkbox input { accent-color: var(--accent); }
.toast { position: fixed; max-width: min(85vw, 450px); bottom: 25px; right: 68px; z-index: 9; color: var(--ink); background: var(--surface); padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 28px #0004; }
.login-wrap { display: grid; grid-template-rows: auto 1fr; min-height: 100dvh; background: radial-gradient(ellipse at 52% 32%, var(--surface), var(--bg) 66%); padding: 1.3rem clamp(1.15rem,5vw,4rem) 3rem; }
.login-header { display: flex; justify-content: space-between; align-items: center; }
.login-card { align-self: center; justify-self: center; width: min(430px, 100%); padding: clamp(1.25rem,5vw,2.5rem); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 80px #0b141437; }
.login-card h1 { margin-top: 1rem; font-size: clamp(1.65rem,4vw,2rem); letter-spacing: -.05em; }
.login-card form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.login-card .text-link { font-size: .9rem; color: var(--muted); }

@media (max-width: 1020px) {
  .film-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .film-strip { --card-width: 51vw; }
}
@media (max-width: 760px) {
  .site-header { height: 64px; gap: .65rem; }
  .site-header nav { gap: .9rem; }
  .screening { min-height: calc(100svh - 64px); }
  .screen-head { align-items: flex-start; flex-direction: column; gap: 1.35rem; }
  .screen-head h1 { font-size: clamp(3rem, 9.8vw, 5rem); }
  .screen-controls { justify-content: flex-start; }
  .film-strip { --card-width: 72vw; height: clamp(230px, 52vw, 365px); }
  .chapter-rack { top: 64px; }
  .about-page { display: block; }
  .about-visual { position: relative; top: 0; width: 100%; height: clamp(240px, 55vw, 410px); }
  .about-content { padding: 0 var(--page-gutter) 3rem; }
  .about-hero { min-height: auto; padding: 2.4rem 0 3.6rem; }
  .about-hero h1 { font-size: clamp(2.9rem, 9vw, 5.1rem); }
  .about-grain { mask-image: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-actions { justify-items: start; }
  .footer-links { justify-content: flex-start; }
  .admin-shell, .admin-shell.side-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 227px; transform: translateX(-102%); transition: transform .2s; }
  .side-open .sidebar { transform: translateX(0); }
  .side-open #sidebar-backdrop { display: block; position: fixed; inset: 0; border: 0; background: #08141398; z-index: 4; }
  .side-collapsed .side-text { display: block; }
  .side-collapsed .sidebar-scroll .side-group + .side-group { margin-top: 1.5rem; }
  .admin-top, #admin-body { padding-inline: .9rem; }
  .admin-heading { align-items: flex-start; }
  .admin-heading p { font-size: .9rem; }
  .three-fields { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --page-gutter: 1rem; }
  .site-header { gap: .45rem; }
  .site-header .wordmark { font-size: 1.02rem; gap: .34rem; }
  .wordmark-mark { display: none; }
  .site-header nav { gap: .62rem; }
  .site-header nav a { font-size: .79rem; }
  .site-header .icon-btn { width: 32px; height: 32px; }
  .gallery-meta { grid-template-columns: auto 1fr auto; gap: .45rem; }
  .film-position { font-size: .74rem; }
  .progress { display: none; }
  .current-title > span { font-size: .75rem; }
  .frame-nav { gap: .3rem; }
  .frame-nav .icon-btn { width: 32px; height: 32px; }
  .frame-nav svg { width: 16px; }
  .film-grid { grid-template-columns: 1fr; }
  .portfolio-about { align-items: flex-start; flex-direction: column; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .two-fields { grid-template-columns: 1fr; }
  .contact-fields { grid-template-columns: 1fr; gap: .9rem; }
  .image-editor { grid-template-columns: 1fr; }
  .image-editor-preview { width: min(180px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro { display: none; }
}
