/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Colours and type ---------- */
:root {
  --paper: #EEEEEA;
  --ink: #111111;
  --muted: #5c5c58;
  --rule: #c9c9c3;
  --placeholder: #d8d7d1;
  --light: #F2F0EA;
  --light-muted: #cfcbc2;
  --mint: #B3EBA8;
  --mint-pale: #D6EDD1;
  --sage: #4f6b4a;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #6b6b66; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

img { display: block; max-width: 100%; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--pad); top: -40px;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; z-index: 100;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 24px var(--pad);
  text-transform: uppercase;
  font-weight: 500;
}
.site-header nav { display: flex; gap: 28px; }
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-header .location {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Big titles ---------- */
.title {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 90px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.035em;
}

/* ---------- Homepage hero ---------- */
.hero {
  position: relative;
  height: min(820px, 100svh);
  min-height: 560px;
  color: var(--light);
  background: #0c0b09 url("../media/bokeh-poster.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  /* even dark tint so the text always reads over the footage */
  content: "";
  position: absolute; inset: 0;
  background: rgba(8, 8, 6, 0.32);
}
.hero-inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero a { color: var(--light); }
.hero a:hover { color: var(--mint); }
.hero .site-header .location { color: var(--light-muted); }

.hero-copy {
  padding: 0 var(--pad) 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 32px;
  align-items: end;
}
.hero-text { grid-column: 1 / span 9; display: flex; flex-direction: column; gap: 14px; }
.hero-services {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--mint-pale);
}
.hero-contact {
  grid-column: 10 / span 3;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
  color: #e4e1d9;
}
.hero-contact .jump { margin-top: 14px; }

/* ---------- Work list ---------- */
.work { padding: 72px var(--pad) 40px; }

.work-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) 40px;
  column-gap: 20px;
  align-items: center;
}
.work-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list button.work-row {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.work-list button.work-row:hover { color: #6b6b66; }
.work-list .n, .work-list .type { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.work-list .t { font-weight: 500; }
.work-list .c { color: #4a4a46; }
.work-list .r { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
/* roles sit in fixed slots so CAMERA, EDIT and SOUND each line up in their own column */
.work-list .r { display: grid; grid-template-columns: 6ch 1ch 4ch 1ch 5ch; column-gap: 1ch; }
.work-list .go { text-align: right; }

/* type filter dropdown (in the list header) */
.col-filter { position: relative; }
.filter-toggle {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { color: var(--ink); }
.filter-toggle .chev {
  display: inline-block;
  font-size: 14px; line-height: 1;
  transition: transform .2s ease;
}
.filter-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.filter-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  z-index: 10;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 6px 0;
  display: flex; flex-direction: column;
}
.filter-menu[hidden] { display: none; }
.filter-menu button {
  background: none; border: 0;
  padding: 7px 14px;
  font: inherit; color: var(--muted); text-transform: uppercase; text-align: left;
  cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px;
}
.filter-menu button:hover, .filter-menu button:focus-visible { color: var(--ink); background: #e4e4df; outline: none; }
.filter-menu button[aria-checked="true"] { color: var(--ink); }
.filter-menu .count { opacity: .6; }
.work-list li[hidden] { display: none; }

/* still that follows the cursor over the list */
.hover-still {
  position: fixed;
  top: 0; left: 0;
  width: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 20;
  background: #1d1d1b;
}
.hover-still.on { opacity: 1; }

/* ---------- Video player overlay ---------- */
.player {
  position: fixed; inset: 0;
  z-index: 50;
  background: #0b0b0a;
  display: none;
  flex-direction: column;
  color: var(--light);
}
.player.open { display: flex; }
.player-bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 24px var(--pad);
  text-transform: uppercase; font-weight: 500;
}
.player-bar .meta { font-family: var(--mono); font-size: 11px; color: var(--light-muted); }
.player-close {
  background: none; border: 0; padding: 8px 0;
  color: var(--light); font: inherit; text-transform: uppercase; font-weight: 500;
  cursor: pointer;
}
.player-close:hover { color: var(--mint); }
.player-stage {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--pad) var(--pad);
  min-height: 0;
}
.player-frame {
  width: min(100%, calc((100svh - 140px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-frame iframe, .player-frame video {
  width: 100%; height: 100%; border: 0; display: block; background: #000;
}

/* ---------- Page intro (Photo / About) ---------- */
.page-intro {
  padding: 96px var(--pad) 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
}

/* ---------- Photo grid ---------- */
.photo-grid {
  list-style: none;
  margin: 0 var(--pad);
  padding: 24px 0 0;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 20px;
}
.photo-grid button {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%;
  padding: 0; border: 0; background: none;
  cursor: zoom-in;
  text-align: left;
}
.photo-grid img {
  /* every photo sits in the same 3:2 frame; upright photos are shown whole, centred */
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.photo-grid .cap {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  min-height: 14px;
  opacity: 0;
  transition: opacity .2s ease;
}
.photo-grid button:hover .cap,
.photo-grid button:focus-visible .cap { opacity: 1; }

/* ---------- Photo lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(14, 14, 12, 0.96);
  display: none;
  flex-direction: column;
  color: var(--light);
}
.lightbox.open { display: flex; }
.lightbox .player-bar a, .lightbox button { color: var(--light); }
.lightbox .mono, .player .mono { color: var(--light-muted); }
.lightbox-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--pad);
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-nav {
  display: flex; justify-content: space-between;
  padding: 20px var(--pad) 28px;
}
.lightbox-nav button, .lightbox .player-close {
  background: none; border: 0; padding: 8px 0;
  font: inherit; text-transform: uppercase; font-weight: 500;
  cursor: pointer;
}
.lightbox-nav button:hover, .lightbox .player-close:hover { color: var(--mint); }

/* ---------- About ---------- */
.about-main {
  margin: 0 var(--pad);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 40px;
}
.portrait {
  grid-column: 1 / span 4;
  aspect-ratio: 4 / 5;
  background: var(--placeholder);
  object-fit: cover;
  width: 100%;
  height: auto;
}
.portrait-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: #6b6b66; text-transform: uppercase;
}
.bio { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 28px; }
.bio .lead {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.bio p:not(.lead) {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #33332f;
  max-width: 620px;
}

.cred { position: relative; color: var(--sage); cursor: default; }
.cred .tip {
  position: absolute; left: 0; bottom: calc(100% + 8px);
  white-space: nowrap;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px; line-height: 1.5; text-transform: uppercase;
  padding: 8px 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.cred:hover .tip, .cred:focus .tip { opacity: 1; }

.about-details {
  margin: 96px var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 56px;
}
.about-details .services { grid-column: 1 / span 4; }
.about-details .contact { grid-column: 6 / span 7; }
.label { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.services ul { margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.services li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.contact-body { padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.contact-email { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-social { display: flex; gap: 28px; text-transform: uppercase; font-weight: 500; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 96px var(--pad) 32px;
  text-transform: uppercase;
  font-weight: 500;
}
.site-footer .social { display: flex; gap: 28px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .hero-text, .hero-contact { grid-column: 1 / -1; }
  .work-row { grid-template-columns: 40px minmax(0, 1fr) 28px; }
  .work-row .c, .work-list .r, .work-list .type, .work-head .spacer { display: none; }
  .work-head { grid-template-columns: 40px minmax(0, 1fr) auto auto; column-gap: 16px; }
  .filter-menu { left: auto; right: 0; }
  .work-list .t::after {
    /* show client under the title on phones */
    content: attr(data-client);
    display: block;
    margin-top: 2px;
    font-family: var(--mono); font-size: 11px; font-weight: 400;
    color: var(--muted); text-transform: uppercase;
  }
  .hover-still { display: none; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .photo-grid .cap { display: none; }
  .portrait, .bio, .about-details .services, .about-details .contact { grid-column: 1 / -1; }
  .portrait { max-width: 420px; }
  .page-intro { padding-top: 56px; }
}
@media (max-width: 520px) {
  .site-header .location { display: none; }
  .site-header nav { gap: 20px; }
  .photo-grid { grid-template-columns: 1fr; }
}

/* ---------- Respect reduced-motion settings ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero video { display: none; }
  * { transition: none !important; }
}
