:root {
  --bg: #111;
  --fg: #fff;
  --muted: #999;
  --field: #373737;
  --gap: 4px;
  --side: 4%;
  --display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; color: var(--fg); font-family: var(--display); font-size: 18px; letter-spacing: .02em; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bg { position: fixed; inset: 0; z-index: -1; background: #111 url(img/bg.jpg) top left / cover no-repeat; }

/* Header */
.site-header { position: relative; display: flex; align-items: center; justify-content: center; height: 160px; padding: 0 var(--side); }
.logo { font-size: 35px; line-height: 1; text-transform: uppercase; }
.site-nav { position: absolute; left: var(--side); top: 50%; transform: translateY(-50%); display: flex; gap: 20px; }
.site-nav a { font-size: 19px; text-transform: uppercase; color: var(--fg); transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--muted); }
.menu-toggle { display: none; }

/* Work grid */
.covers { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); padding: 0 var(--side); }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cover-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; font-size: 24px; line-height: 28px; text-transform: uppercase; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s; }
.cover:hover .cover-title, .cover:focus-visible .cover-title { opacity: 1; }
.cover:hover img { transform: scale(1.03); }

/* Project pages */
.page-header { text-align: center; padding: 0 var(--side) 40px; }
.page-header h1 { margin: 0; font-weight: 400; font-size: 30px; text-transform: uppercase; }
.modules { padding: 0 var(--side); max-width: 1440px; margin: 0 auto; }
.m-img { margin: 0 auto var(--gap); }
.m-img img { margin: 0 auto; cursor: zoom-in; }
.m-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: var(--gap); background: #000; }
.m-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m-row { display: flex; gap: var(--gap); align-items: flex-start; margin-bottom: var(--gap); }
.m-row .col { min-width: 0; }
.m-row .m-img { margin-bottom: 0; }
.pager { display: flex; justify-content: space-between; gap: 1rem; padding: 60px var(--side) 0; max-width: 1440px; margin: 0 auto; text-transform: uppercase; font-size: 19px; }
.pager a:hover { color: var(--muted); }

/* Contact */
.contact { padding: 0 var(--side); }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; }
.contact-form label { font-size: 16px; margin: 18px 0 6px; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--field); border: 1px solid var(--field); padding: 12px 14px; border-radius: 0; }
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid var(--fg); }
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: flex-start; margin-top: 24px; font: inherit; font-size: 18px; color: #111; background: #fff; border: 0; padding: 12px 32px; cursor: pointer; transition: opacity .2s; }
.contact-form button:hover { opacity: .8; }
.hp { position: absolute; left: -9999px; }
.contact-alt { text-align: center; color: var(--muted); margin-top: 40px; }
.contact-alt a { color: var(--fg); }

/* Footer */
.site-footer { text-align: center; color: var(--muted); padding: 60px var(--side) 100px; font-size: 18px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--muted); border-bottom: 1px solid currentColor; }
.site-footer a:hover { color: var(--fg); }

.to-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-family: system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.lb-close { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

@media (max-width: 932px) {
  .site-header { height: 110px; justify-content: space-between; }
  .logo { font-size: 28px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; transform: none; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0; background: rgba(17,17,17,.97); z-index: 10; display: none; }
  .site-nav.open { display: flex; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; cursor: pointer; }
  .menu-toggle span { width: 24px; height: 2px; background: #fff; }
}
@media (max-width: 600px) {
  :root { --side: 16px; }
  .covers { grid-template-columns: 1fr; }
  .cover-title { opacity: 1; background: linear-gradient(transparent 50%, rgba(0,0,0,.75)); align-items: flex-end; }
  .m-row { flex-direction: column; }
  .m-row .col { flex: none !important; width: 100%; }
  .pager { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
