:root {
  --ink: #111; --soft: #6b6b6b; --line: #e6e6e6; --bg: #fff; --head: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* header: slim, white, fixed */
.top { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--head); display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 14px; height: 28px; }
.brand span { font-weight: 600; font-size: 13px; letter-spacing: .32em; }
.top nav { display: flex; gap: 28px; }
.top nav a { text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); transition: color .15s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
main { padding-top: var(--head); min-height: calc(100vh - 60px); }

/* gapless grid: CSS columns as the no-JS fallback, JS turns it into shortest-column masonry in reading order */
.grid { columns: 3; column-gap: 0; line-height: 0; }
.grid.js { columns: auto; display: flex; align-items: flex-start; }
.grid .col { flex: 1 1 0; min-width: 0; }
.tile { position: relative; display: block; overflow: hidden; break-inside: avoid; background: #f2f2f2; cursor: zoom-in; }
.tile.p { aspect-ratio: 2 / 3; }
.tile.l { aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .6s ease, opacity .4s; }
.tile .cap { position: absolute; inset: auto 0 0; padding: 40px 18px 14px; line-height: 1.3; font-size: 13px; letter-spacing: .04em; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .25s; }
.tile:hover img { transform: scale(1.02); }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
@media (max-width: 1099px) { .grid { columns: 2; } }
@media (max-width: 639px) { .grid { columns: 1; } }
@media (hover: none) { .tile:hover img { transform: none; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.98); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lb .lb-cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 13px; letter-spacing: .04em; color: var(--soft); }
.lb button { position: absolute; border: 0; background: none; cursor: pointer; color: var(--ink); font: 300 34px/1 Inter, sans-serif; padding: 14px 18px; opacity: .55; }
.lb button:hover { opacity: 1; }
.lb .lb-x { top: 8px; right: 12px; font-size: 30px; }
.lb .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) {
  .lb img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* film */
.films { max-width: 1280px; margin: 0 auto; padding: 48px 28px 24px; }
.film { margin: 0 0 56px; }
.film video { width: 100%; background: #000; aspect-ratio: 16/9; object-fit: contain; }
.film figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 14px; font-size: 14px; }
.film figcaption span { color: var(--soft); }
.more { color: var(--soft); font-size: 14px; }

/* about + contact */
.split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: calc(100vh - var(--head) - 60px); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text { padding: 72px 64px; max-width: 620px; align-self: center; }
.split > .split-text:only-child { grid-column: 1 / -1; justify-self: center; text-align: center; }
h1 { margin: 0 0 24px; font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.split-text p { margin: 0 0 18px; font-size: 16px; }
.link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.details { list-style: none; margin: 28px 0 36px; padding: 0; border-top: 1px solid var(--line); }
.details li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.details span { color: var(--soft); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.details a { text-decoration: none; overflow-wrap: anywhere; text-align: right; }
.details a:hover { text-decoration: underline; }
.contact { display: grid; gap: 14px; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.contact em { font-style: normal; text-transform: none; letter-spacing: 0; }
.contact input, .contact textarea { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff;
  border: 0; border-bottom: 1px solid #cfcfcf; border-radius: 0; padding: 8px 0; outline: none; resize: vertical; }
.contact input:focus, .contact textarea:focus { border-bottom-color: var(--ink); }
.contact .hp { position: absolute; left: -9999px; }
.contact button { justify-self: start; margin-top: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 13px/1 Inter, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; padding: 15px 26px; cursor: pointer; transition: background .15s, color .15s; }
.contact button:hover { background: #fff; color: var(--ink); }
.contact button:disabled { opacity: .5; cursor: default; }
.status { margin: 0; font-size: 14px; min-height: 1.4em; }
.status.err { color: #b42318; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 20px 28px; font-size: 12px; letter-spacing: .06em; color: var(--soft); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.work .foot { border-top: 0; }

@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-img img { height: auto; max-height: 70vh; }
  .split-text { padding: 40px 16px 24px; max-width: none; }
}
@media (max-width: 639px) {
  :root { --head: 56px; }
  .top { padding: 0 16px; }
  .brand { gap: 9px; }
  .brand span { font-size: 11px; letter-spacing: .24em; }
  .top nav { gap: 12px; }
  .top nav a { font-size: 11px; letter-spacing: .04em; }
  .films { padding: 24px 16px 8px; }
  .contact .row { grid-template-columns: 1fr; }
  .foot { padding: 18px 16px; flex-direction: column; gap: 4px; }
}
@media (max-width: 345px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
