@font-face {
  font-family: "Manrope Variable";
  src: url("manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Variable";
  src: url("manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --ink: #050507;
  --surface: #0b0c10;
  --text: #f4f2ec;
  --muted: #a9abb2;
  --accent: #88c7df;
  --line: #ffffff29;
  --sans: "Manrope Variable", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: var(--text); font: 1rem/1.55 var(--sans); }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.frame { width: min(100% - 7rem, 86rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: var(--text); color: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { position: relative; z-index: 1; border-bottom: 1px solid var(--line); background: var(--ink); }
.header-inner { min-height: 4.375rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 2rem; }
.wordmark { justify-self: start; font-size: .875rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; overflow-wrap: anywhere; }
.header nav { display: flex; gap: clamp(1.5rem, 3vw, 2.875rem); align-items: center; }
.header nav a { display: grid; align-items: center; min-height: 2.75rem; position: relative; color: #ffffffd1; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.header nav a:hover, .header nav a[aria-current] { color: var(--text); }
.header nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 .4rem; height: 1px; background: var(--accent); }
.socials { justify-self: end; display: flex; gap: .125rem; list-style: none; padding: 0; margin: 0; }
.socials a { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: #ffffffa8; }
.socials a[aria-disabled] { color: var(--muted); }
.socials a[href]:hover { color: var(--accent); }
.socials svg { width: 1.125rem; height: 1.125rem; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(30rem, 68svh, 50rem); background: var(--surface); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url("piano.jpg") right 52% / cover no-repeat; }
.hero::after { background: linear-gradient(90deg, #050507ef 0%, #050507c9 28%, #05050733 60%, transparent 86%), linear-gradient(0deg, var(--ink) 0%, transparent 22%); }
.hero-inner { padding-block: clamp(3.75rem, 8vw, 6.5rem); }
.hero-logo {
  position: relative;
  width: min(100%, 48rem);
  aspect-ratio: 1695 / 247;
  overflow: hidden;
  mix-blend-mode: screen;
}
/* Frame the approved artwork tightly while preserving the original composition. */
.hero-logo img { position: absolute; width: 128.14%; height: auto; top: -95.95%; left: -14.75%; }
.kicker { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.15rem; color: var(--accent); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; font: 520 clamp(2.125rem, 4.4vw, 4rem)/1 var(--sans); letter-spacing: -.045em; }
h1 em { font-style: normal; }
h2 { font-size: clamp(1.875rem, 3.15vw, 3rem); line-height: 1.04; }
.lede { max-width: 36ch; margin: 1.25rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.72; }
.actions { margin-top: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.75rem; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); font-size: .6875rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; text-decoration: underline; text-decoration-color: #ffffff75; text-underline-offset: .6em; }
.text-link:hover, .text-link:focus-visible { color: var(--accent); text-decoration-color: var(--accent); }
.text-link.quiet { color: var(--muted); text-decoration: none; }
.text-link.quiet:hover, .text-link.quiet:focus-visible { color: var(--text); }
.reel { margin-top: .5rem; }
.home-work { border-top: 1px solid var(--line); padding-block: 3.3rem 4rem; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

.interior { padding-block: clamp(4rem, 10vh, 7rem); }
.interior h1 { font-size: clamp(2.625rem, 5vw, 5rem); line-height: .96; }
.period { color: var(--accent); }
.credits-area { margin-top: 2.35rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.credit-group + .credit-group { margin-top: clamp(3rem, 5vw, 5rem); }
.credit-group h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.contact-form { width: min(100%, 38rem); margin-top: 2rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.contact-form label { display: grid; gap: .35rem; margin-bottom: 1.1rem; color: var(--text); font-size: .875rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid #ffffff40;
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: 1rem/1.5 var(--sans);
}
.contact-form textarea { resize: vertical; }
.contact-form :is(input, textarea):focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: 1.5rem; }
.contact-actions button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.contact-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.contact-actions button:disabled { color: var(--muted); cursor: wait; }
.contact-actions a { overflow-wrap: anywhere; }
.contact-status { margin: .35rem 0 0; color: var(--accent); font-size: .9375rem; }
.contact-status:empty { margin: 0; }
.contact-status[data-error] { color: #ffb9af; }
.contact main { background: radial-gradient(ellipse at 100% 15%, var(--surface), transparent 60%); }
.empty { color: var(--muted); }
.work-list { padding: 0; margin: 1.25rem 0 0; list-style: none; }
.artwork-grid { display: grid; max-width: 68rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 1rem; align-items: start; }
.work-card { display: block; position: relative; }
.work-artwork { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: var(--surface); }
.work-artwork img { display: block; width: 100%; height: 100%; object-fit: contain; }
.poster-brand { display: grid; place-items: center; background: var(--text); }
.poster-brand img { width: 88%; height: auto; }
.poster-adapted img { object-fit: cover; }
.poster-adapted[data-artwork="witness"] img { object-position: 55% center; }
.poster-adapted[data-artwork="region"] img { object-position: 39% center; }
.poster-title {
  position: absolute;
  inset: auto 0 0;
  padding: 3.25rem 2.5rem .85rem .85rem;
  background: linear-gradient(transparent, #08090df5 76%);
  color: var(--text);
  font-size: clamp(1.0625rem, 3vw, 2.2rem);
  font-weight: 650;
  line-height: 1.06;
}
.work-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.work-card:is(.has-video, .has-film-details) .work-artwork::after {
  content: "";
  position: absolute;
  inset: auto .65rem .65rem auto;
  width: 2.25rem;
  height: 2.25rem;
  background: #050507d9;
  border-radius: 50%;
}
.work-card.has-film-details .work-artwork::after {
  content: "+";
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.25rem;
}
.has-video .work-artwork::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 1.37rem 1.35rem auto;
  border-block: .4rem solid transparent;
  border-left: .6rem solid var(--text);
}
.work-open:focus-visible, button.reel:focus-visible, .project-dialog button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.work-card:is([href], .has-video, .has-film-details):is(:hover, :focus-within) h3 { color: var(--accent); }
.work-caption { padding: .7rem 0 0; }
.work-caption h3 { margin: 0; font-size: 1.0625rem; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; }
.work-caption p { margin: .28rem 0 0; color: var(--muted); font-size: .8125rem; }
button.reel, .project-dialog button { border: 0; padding: 0; color: inherit; background: transparent; font-family: inherit; cursor: pointer; }
.project-dialog {
  width: min(49rem, calc(100% - 2rem));
  min-width: min(15rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(.85rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.project-dialog:is(.video-dialog, .showing-video) {
  width: min(64rem, calc(100% - 2rem), calc(160dvh - 6rem));
  padding: .8rem;
}
.project-dialog::backdrop { background: #050507df; }
body:has(.project-dialog[open]) { overflow: hidden; }
.project-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: .6rem; }
.project-dialog-header h2 { font-size: clamp(1.35rem, 3.1vw, 2.4rem); line-height: 1.02; }
.project-dialog:is(.video-dialog, .showing-video) h2 { font-size: clamp(1rem, 2.4vw, 1.375rem); letter-spacing: normal; }
.project-dialog-header button { min-height: 2.75rem; padding-inline: .35rem; font-size: .875rem; }
.project-dialog button:hover { color: var(--accent); }
.film-info { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(1rem, 4vw, 2.3rem); }
.film-copy { padding-top: .15rem; }
.film-facts { margin: 0; color: var(--accent); font-size: .8125rem; }
.film-director { margin: .45rem 0 0; color: var(--muted); font-size: .875rem; }
.film-synopsis { margin: .85rem 0 .4rem; font-size: 1rem; line-height: 1.65; }
.film-back { margin-top: .35rem; }
.video-screen { display: grid; place-items: center; aspect-ratio: 16 / 9; min-height: 200px; background: #000; }
.video-screen iframe { width: 100%; height: 100%; min-height: 200px; border: 0; }

@media (prefers-reduced-motion: no-preference) {
  .work-artwork img { transition: transform .3s ease-out; }
  .work-card:is([href], .has-video, .has-film-details):is(:hover, :focus-within) img { transform: scale(1.025); }
  .project-dialog[open] { animation: dialog-entry .22s ease-out both; }
  @keyframes dialog-entry {
    from { opacity: 0; transform: translateY(.65rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.footer { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; min-height: 5rem; border-top: 1px solid var(--line); }
.footer p { color: var(--muted); font-size: .875rem; }

@media (min-width: 64rem) {
  .artwork-grid { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .frame { width: calc(100% - 3rem); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .75rem; padding-top: .75rem; }
  .header nav { grid-row: 2; grid-column: 1 / -1; }
  .header nav a { min-height: 2.75rem; }
  .hero { min-height: 30rem; }
  .hero::before { background-position: 67% center; }
  .hero::after { background: linear-gradient(90deg, #050507d9, #05050748), linear-gradient(0deg, var(--ink), transparent 28%); }
  .artwork-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 32rem) {
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .artwork-grid { gap: 1.5rem .75rem; }
  .work-heading { flex-wrap: wrap; align-items: start; gap: .25rem 1rem; }
  .film-info { grid-template-columns: minmax(0, 29%) minmax(0, 1fr); gap: .8rem; }
  .film-synopsis { font-size: .9375rem; }
  .film-info .poster-title { display: none; }
}

@media (max-width: 24rem) {
  .frame { width: calc(100% - 2rem); }
  .kicker { letter-spacing: .11em; }
  .wordmark { letter-spacing: .11em; }
}
