/* Light version: --bg #f4f2ee, --ink #141414, --muted #8a8780, --line rgba(20,20,20,.15) */
:root {
  --bg: #000;
  --ink: #f2f0ec;
  --muted: #8c8a86;
  --line: rgba(255, 255, 255, 0.18);
  --gutter: 24px;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 13px/1.55 var(--font);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover, .link:hover { color: var(--muted); }
h1, h2, h3, p { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hidden { display: none; }

/* Small uppercase type used for nav, labels and meta rows */
.site-header, .label, .meta-row, .site-footer, .link, .links, label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11.5px;
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
}
.name { font-weight: 500; letter-spacing: 0.14em; }
.site-header nav { display: flex; gap: 28px; }

/* Sections */
main > section { padding: 0 var(--gutter); }
.label { color: var(--muted); padding: 120px 0 18px; }

/* Shared meta row: number + title on the left, type on the right */
.meta-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 10px;
}
.meta-row i { font-style: normal; color: var(--muted); margin-right: 18px; }
.detail { color: var(--muted); padding-top: 2px; }

/* Hero */
.hero { padding-top: 64px !important; }
.hero-frame { aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); width: 100%; background: #111; overflow: hidden; }
.hero-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Work */
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px var(--gutter);
}
.project { cursor: pointer; }
.still { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s ease; }
.still-title {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 0 10%;
  color: #fff; font-size: clamp(20px, 2.6vw, 34px); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
  opacity: 0; transition: opacity .4s ease;
}
.project:hover .still img { opacity: .55; transform: scale(1.02); }
.project:hover .still-title { opacity: 1; }
.project.is-soon { cursor: default; }

/* Frames */
.frames-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.frames-grid button { aspect-ratio: 16 / 9; overflow: hidden; }
.frames-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.frames-grid button:hover img { opacity: .8; }

/* Info */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding-bottom: 120px; }
.about img { width: 55%; max-width: 320px; margin-bottom: 24px; }
.about p, .contact > p { font-size: 15px; line-height: 1.5; max-width: 40ch; margin-bottom: 28px; }
.social-row { padding-top: 96px !important; }
.links {
  list-style: none; margin: 0; padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.12em;
}
.social-row + .info .label { padding-top: 72px; }
.links a {
  position: relative; display: inline-flex; gap: 6px; padding-bottom: 4px;
}
.links a span { color: var(--muted); font-size: 11px; transition: transform .25s ease; }
.links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); }
.links a:hover span { transform: translate(2px, -2px); }

/* Form: underline-only fields */
form { display: grid; gap: 22px; max-width: 520px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
label { display: grid; gap: 6px; color: var(--muted); }
input, textarea {
  font: 15px var(--font); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 6px 0; border-radius: 0; resize: vertical;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
form .link { justify-self: start; padding-top: 6px; }

/* Footer */
.site-footer {
  display: flex; justify-content: space-between;
  padding: 18px var(--gutter); border-top: 1px solid var(--line);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(0, 0, 0, .94);
  display: grid; place-items: center; padding: 56px var(--gutter);
}
.lightbox[hidden] { display: none; }
.lightbox-close {
  position: absolute; top: 18px; right: var(--gutter);
  color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px;
}
.lightbox-content { width: min(100%, 1400px); }
.lightbox-content img { max-height: calc(100vh - 112px); margin: 0 auto; }
.player { aspect-ratio: 16 / 9; width: 100%; max-height: calc(100vh - 112px); }
.player iframe { width: 100%; height: 100%; border: 0; }

/* Thanks page */
.thanks { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: var(--gutter); }

/* Responsive */
@media (max-width: 800px) {
  :root { --gutter: 16px; }
  .site-header nav { gap: 18px; }
  .work-grid { grid-template-columns: 1fr; gap: 48px; }
  .frames-grid { grid-template-columns: repeat(2, 1fr); }
  .frames-grid button:nth-child(odd):last-child { display: none; }
  .info-grid { grid-template-columns: 1fr; gap: 64px; }
  .row { grid-template-columns: 1fr; gap: 22px; }
  .label { padding-top: 88px; }
  .meta-row span:last-child { color: var(--muted); }
  .social-row { padding-top: 72px !important; }
  .links { justify-content: flex-start; gap: 16px 28px; }
}
@media (hover: none) {
  .still-title { display: none; }
}
