:root {
  --ink: #171714;
  --paper: #f2efe6;
  --paper-dark: #e6e0d2;
  --red: #a62a20;
  --line: rgba(23, 23, 20, .2);
  --serif: Georgia, "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: Inter, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(22px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--paper); background: var(--red); border-radius: 50%; font-family: var(--serif); font-size: 19px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 20px; letter-spacing: .2em; }
.brand small { margin-top: 2px; font-size: 8px; letter-spacing: .14em; }
nav { display: flex; gap: 36px; height: 100%; align-items: center; }
nav a { position: relative; color: #5e5b54; text-decoration: none; font-size: 13px; letter-spacing: .08em; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 1px; background: var(--red); transition: right .2s ease; }
nav a:hover::after, nav a.is-active::after { right: 0; }
nav a.is-active { color: var(--ink); }
.search-toggle { justify-self: end; display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; cursor: pointer; color: var(--ink); font-size: 13px; }
.search-toggle span { width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.search-toggle span::after { content: ""; position: absolute; width: 6px; height: 1.5px; right: -5px; bottom: -2px; background: currentColor; transform: rotate(45deg); }
.search-panel { padding: 24px clamp(22px, 5vw, 80px); border-bottom: 1px solid var(--line); background: var(--paper-dark); }
.search-panel label { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.search-box { display: flex; gap: 20px; }
.search-box input { flex: 1; padding: 10px 0; font: 28px var(--serif); border: 0; border-bottom: 1px solid var(--ink); outline: 0; background: transparent; }
.search-close { border: 0; background: none; cursor: pointer; text-decoration: underline; }

main { overflow: hidden; }
.hero { min-height: 630px; display: grid; grid-template-columns: 48% 52%; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 70px clamp(30px, 7vw, 120px) 70px clamp(22px, 6vw, 96px); }
.eyebrow { margin: 0 0 24px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.hero h1 { margin: 0; font: 500 clamp(42px, 5vw, 76px)/1.2 var(--serif); letter-spacing: -.05em; }
.hero-lead { max-width: 530px; margin: 34px 0; color: #59564f; font: 17px/1.85 var(--serif); }
.primary-link { padding: 12px 0; border-bottom: 1px solid var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .08em; }
.primary-link span { display: inline-block; margin-left: 50px; transition: transform .2s ease; }
.primary-link:hover span { transform: translate(4px, 4px); }

.hero-art { position: relative; min-height: 540px; overflow: hidden; color: #f7e9cd; background: #172d37; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 18% 20%, rgba(242,179,70,.22), transparent 25%), linear-gradient(155deg, transparent 0 54%, #0d2028 54% 100%); }
.hero-art::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .22; 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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E"); }
.moon { position: absolute; width: clamp(110px, 14vw, 200px); aspect-ratio: 1; left: 14%; top: 13%; border-radius: 50%; background: #efb448; box-shadow: 0 0 80px rgba(239,180,72,.18); }
.cinema-sign { position: absolute; left: 10%; right: 7%; bottom: 32%; padding: 24px; color: #e9d9b8; border: 3px solid currentColor; background: #8f2d26; font: 700 clamp(30px, 5vw, 76px)/1 var(--sans); letter-spacing: .19em; text-align: center; transform: perspective(500px) rotateY(-5deg); box-shadow: 16px 18px 0 rgba(0,0,0,.25); }
.cinema-door { position: absolute; left: 26%; bottom: 0; width: 48%; height: 32%; background: repeating-linear-gradient(90deg, #5b2622 0 18%, #a33a2d 18% 20%); border: 7px solid #141918; border-bottom: 0; }
.street-light { position: absolute; right: 8%; bottom: 0; width: 5px; height: 48%; background: #101918; }
.street-light::before { content: ""; position: absolute; right: -5px; top: -18px; width: 75px; height: 5px; background: #101918; }
.street-light::after { content: ""; position: absolute; right: 45px; top: -13px; width: 19px; height: 25px; border-radius: 50% 50% 25% 25%; background: #efb448; box-shadow: 0 0 34px #efb448; }
.hero-art p { position: absolute; right: 8%; top: 10%; margin: 0; font: 13px/1.8 var(--serif); text-align: right; }

.catalog { padding: 100px clamp(22px, 5vw, 80px) 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .journal h2, .about h2 { margin: 0; font: 500 clamp(38px, 4vw, 58px)/1.1 var(--serif); letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: #68645c; font-size: 12px; }
.filters { display: flex; gap: 10px; padding: 26px 0 36px; overflow-x: auto; }
.filters button { flex: none; padding: 8px 15px; border: 1px solid var(--line); border-radius: 30px; color: #5e5b54; background: transparent; cursor: pointer; font-size: 12px; }
.filters button:hover, .filters button.is-selected { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.film-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(22px, 3vw, 46px) clamp(15px, 2vw, 30px); }
.film-card[hidden] { display: none; }
.film-open { width: 100%; padding: 0; border: 0; color: inherit; background: none; cursor: pointer; text-align: left; }
.poster { position: relative; display: block; aspect-ratio: 2/3; overflow: hidden; padding: 13%; color: white; box-shadow: 0 14px 30px rgba(26,22,15,.12); transition: transform .3s ease, box-shadow .3s ease; isolation: isolate; }
.film-open:hover .poster { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(26,22,15,.2); }
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 130 130' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.poster b { font-size: clamp(18px, 2.2vw, 35px); line-height: .98; letter-spacing: -.04em; }
.poster i { position: absolute; left: 13%; bottom: 10%; font-size: 9px; font-style: normal; letter-spacing: .14em; }
.poster-01 { display: flex; align-items: center; background: linear-gradient(90deg, transparent 72%, #8f1716 72%), #132f2b; font-family: var(--serif); }
.poster-01::before { content: ""; position: absolute; width: 65%; aspect-ratio: 1; right: -18%; top: 8%; border: 2px solid #c99844; border-radius: 50%; }
.poster-02 { color: #173229; background: linear-gradient(165deg, transparent 43%, rgba(242,239,214,.72) 43% 56%, transparent 56%), #91b99c; }
.poster-02 b { margin-top: auto; font-family: var(--serif); }
.poster-03 { align-content: end; background: radial-gradient(ellipse at 50% 20%, #171b19 0 22%, transparent 23%), linear-gradient(#d3d0c6 0 52%, #747d7a 52% 100%); color: #151615; }
.poster-03 b { position: absolute; bottom: 14%; letter-spacing: .12em; }
.poster-04 { display: grid; place-items: center; color: #f1d9ab; background: linear-gradient(160deg, transparent 0 45%, rgba(20,20,20,.25) 45%), #741d22; text-align: center; }
.poster-04::before { content: "★"; position: absolute; top: 12%; font-size: 32px; }
.poster-05 { display: flex; align-items: center; color: #8c2449; background: repeating-linear-gradient(0deg, transparent 0 8%, rgba(255,255,255,.16) 8% 9%), #e8aabd; text-align: center; }
.poster-05 b { width: 100%; font-family: var(--serif); }
.poster-06 { display: flex; align-items: end; color: #f1c681; background: radial-gradient(circle at 72% 18%, #df883a 0 9%, transparent 10%), linear-gradient(135deg, transparent 48%, #b84d2e 49% 64%, transparent 65%), #182b38; }
.poster-06 b { font-family: var(--serif); }
.poster-07 { background: linear-gradient(165deg, #e8d8c3 0 58%, #aa2020 58% 73%, #353b38 73%); color: #1c211e; }
.poster-07 b { position: absolute; top: 12%; left: 12%; }
.poster-08 { color: #19443e; background: linear-gradient(rgba(237,226,187,.1), rgba(237,226,187,.65)), repeating-linear-gradient(75deg, transparent 0 14%, rgba(255,255,255,.2) 15%), #8fb5aa; font-family: var(--serif); }
.poster-08 b { position: absolute; right: 12%; top: 12%; text-align: right; }
.poster-09 { display: flex; align-items: end; background: linear-gradient(155deg, transparent 50%, #a74423 51% 70%, #251d20 71%), #d18238; }
.poster-09 b { letter-spacing: .02em; }
.poster-10 { display: grid; place-items: center; color: #133f55; background: radial-gradient(circle at 50% 42%, #e46c42 0 18%, transparent 18.5%), #e2c868; text-align: center; }
.poster-10 b { font-family: var(--serif); }
.film-info { position: relative; display: grid; padding: 17px 0 0 28px; }
.film-info .film-index { position: absolute; left: 0; top: 19px; color: var(--red); font-size: 9px; }
.film-info strong { margin-bottom: 6px; font: 600 16px var(--serif); }
.film-info em { color: #68645c; font-size: 10px; font-style: normal; }
.film-info small { margin-top: 10px; font-size: 9px; letter-spacing: .1em; }
.empty-state { padding: 80px 0; color: #68645c; font: 22px var(--serif); text-align: center; }

.journal { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; padding: 110px clamp(22px, 8vw, 130px); color: #e7dfcf; background: #192e32; }
.journal .eyebrow { color: #e6ad49; }
.journal-body { max-width: 630px; color: #c5c2b8; font: 16px/2 var(--serif); }
.journal-body p { margin: 0 0 22px; }
.dropcap::first-letter { float: left; margin: 12px 10px 0 0; color: #e6ad49; font-size: 70px; line-height: .55; }
.journal-body .signature { margin-top: 42px; color: #e6ad49; font-size: 12px; letter-spacing: .08em; }
.about { max-width: 800px; padding: 110px clamp(22px, 8vw, 130px); }
.about > p:not(.eyebrow) { margin: 30px 0; color: #5a5750; font: 18px/1.9 var(--serif); }
.about > a { font-size: 13px; text-underline-offset: 5px; }

footer { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; padding: 55px clamp(22px, 5vw, 80px); color: #cac4b6; background: #11110f; }
.footer-brand .brand-mark { color: #11110f; background: #d1c7b5; }
footer p { margin: 0; font: 13px/1.7 var(--serif); }
footer small { color: #77736b; }
.footer-meta { color: #77736b; font: 9px/1.8 var(--sans); letter-spacing: .12em; text-align: right; }

.film-dialog { width: min(600px, calc(100% - 32px)); padding: clamp(30px, 6vw, 64px); border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 40px 100px rgba(0,0,0,.38); }
.film-dialog::backdrop { background: rgba(10,16,17,.78); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 20px; top: 16px; border: 0; background: none; cursor: pointer; font: 34px/1 var(--serif); }
.film-dialog h2 { margin: 0; font: 500 clamp(32px, 6vw, 50px)/1.1 var(--serif); }
.dialog-original { margin: 8px 0 32px; color: var(--red); font: italic 15px var(--serif); }
.film-dialog dl { display: grid; grid-template-columns: 1fr 2fr; margin: 0 0 28px; padding: 18px 0; border-block: 1px solid var(--line); }
.film-dialog dl div { display: contents; }
.film-dialog dt { color: #77736b; font-size: 11px; }
.film-dialog dd { margin: 0; font-size: 12px; }
.dialog-copy { margin: 0; color: #4e4b45; font: 16px/1.9 var(--serif); }

@media (max-width: 1050px) {
  .film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 72px; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .brand small { display: none; }
  .hero { display: flex; min-height: 0; flex-direction: column; }
  .hero-copy { min-height: 530px; padding-block: 70px; }
  .hero-art { min-height: 470px; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal { grid-template-columns: 1fr; }
  footer { grid-template-columns: auto 1fr; gap: 20px; }
  .footer-meta { display: none; }
}

@media (max-width: 410px) {
  .catalog { padding-top: 80px; }
  .film-grid { column-gap: 12px; }
  .film-info { padding-left: 0; }
  .film-index { display: none; }
  .film-info strong { font-size: 14px; }
  .hero-art { min-height: 400px; }
}

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