@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #1a1919;
  --fg: #ffffff;
  --muted: #8a8888;
  --pad: clamp(16px, 2.2vw, 28px);
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--fg); background: var(--bg); font-family: var(--font); font-weight: 500;
  font-size: 16px; line-height: 1.6; letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: var(--pad); background: var(--bg); font-size: 14px; }
.brand strong { font-weight: 600; }
.brand span { color: var(--muted); margin-left: .5em; }
.site-header nav { display: flex; gap: 1.4em; }
.site-header nav a { opacity: .75; transition: opacity .2s; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Work index */
.work { display: grid; }
.tile { position: relative; display: block; overflow: hidden; background: #111; }
.tile img, .tile-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.tile:hover img, .tile:hover .tile-video { transform: scale(1.02); opacity: .9; }
.caption { position: absolute; left: var(--pad); bottom: var(--pad); font-size: 15px;
  text-shadow: 0 1px 12px rgba(0,0,0,.55); }

/* Text pages */
.center-text { min-height: 60vh; display: grid; place-items: start center; text-align: center; padding: 6vh var(--pad); }
.lead { max-width: 15em; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.5; margin: 0; }
.contact p { font-size: clamp(18px, 2vw, 22px); line-height: 1.6; margin: 0; }
.contact a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact a:hover { border-color: currentColor; }

/* Project */
.project-intro { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 10vh var(--pad); }
.project-intro h1 { font-weight: 500; font-size: clamp(20px, 2.4vw, 24px); max-width: 14em; margin: 0 0 1.4em; line-height: 1.5; }
.project-intro p { max-width: 30em; font-size: 15px; line-height: 1.75; margin: 0; }
.gallery img { width: 100%; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.next { min-height: 50vh; display: grid; place-items: end center; padding: 8vh var(--pad); font-size: 15px; }
.next a { opacity: .85; } .next a:hover { opacity: 1; }

/* Footer */
.site-footer { display: flex; justify-content: space-between; padding: var(--pad); font-size: 13px; color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .brand span { display: block; margin: 0; }
  .caption { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .tile img, .tile-video { transition: none; } }
