/* Photographer Daniel Wood — site styles */
:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --paper: #ffffff;
  --gap: 14px;
  --side: clamp(16px, 4vw, 48px);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--font); letter-spacing: .01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px var(--side) 28px; position: relative; z-index: 20; }
.logo img { height: 50px; width: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px clamp(24px, 3.4vw, 56px); }
.site-nav a, .folder-toggle { text-decoration: none; font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; border-bottom: 1px solid transparent; }
.site-nav a:hover, .folder-toggle:hover, .site-nav a[aria-current="page"], .folder.is-current > .folder-toggle { border-bottom-color: currentColor; }
.site-nav .ig { display: inline-flex; border: 0; }
.folder { position: relative; }
.folder-menu { list-style: none; margin: 0; padding: 12px 18px; position: absolute; top: 100%; left: -18px; min-width: 250px; background: var(--paper); border: 1px solid var(--line); display: none; }
.folder-menu li { padding: 3px 0; }
.folder:hover .folder-menu, .folder.open .folder-menu { display: block; }
.menu-toggle { display: none; font: inherit; font-size: 14px; background: none; border: 1px solid var(--ink); padding: 6px 14px; cursor: pointer; }

/* Gallery: masonry columns */
main { padding: 0 var(--side); min-height: 50vh; }
.gallery { columns: 3; column-gap: var(--gap); }
.tile { display: block; margin-bottom: var(--gap); break-inside: avoid; cursor: zoom-in; background: #f3f3f3; }
.tile img { width: 100%; height: auto; transition: opacity .2s; }
.tile:hover img { opacity: .88; }

/* Project + text pages */
.project-intro { max-width: 640px; margin: 8px 0 32px; }
.project-intro h1 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.project-intro p { margin: 0; }
.video-block { margin: 64px auto 0; }
.video { position: relative; padding-top: 56.25%; }
.video-block:has(.vertical) { width: 37.5%; }
.video.vertical { padding-top: 177.78%; }
.video-caption { margin: 12px 0 0; font-size: 14px; }
.video-caption a { text-decoration: none; }
.video-caption a:hover { text-decoration: underline; }

/* Passage-style centred credits */
.project-intro.centered { max-width: none; text-align: center; margin: 24px 0 64px; }
.project-intro.centered h1 { font-size: 14px; letter-spacing: 0; margin: 0 0 18px; }
.project-intro.centered p { margin: 0 0 18px; font-size: 14px; }

/* Shortest-column masonry (Passage): wide gutters, uncropped photos */
.gallery.masonry { --mgap: 5.9%; columns: 3; column-gap: var(--mgap); }
.gallery.masonry .tile { margin-bottom: 0; background: none; }
.gallery.masonry.is-placed { columns: auto; display: flex; gap: var(--mgap); align-items: flex-start; }
.masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.masonry-col .tile + .tile { margin-top: calc((100vw - 2 * var(--side)) * .059); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.text-page { max-width: 680px; margin: 24px auto 64px; }
.text-page .lead { font-size: 17px; }
.contact h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 400; line-height: 1.5; text-align: center; margin: 48px 0; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* Footer: copyright left, links right */
.site-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding: 72px var(--side) 40px; font-size: 13px; text-transform: uppercase; color: var(--ink); }
.site-footer p { margin: 0; }
.footer-links span { margin: 0 .6em; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { text-decoration: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(255,255,255,.98); z-index: 50; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ink); cursor: pointer; font: 300 40px/1 var(--font); padding: 16px; }
.lb-close { top: 8px; right: 12px; font-size: 34px !important; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 960px) { .gallery { columns: 2; } }
@media (max-width: 760px) { .video-block:has(.vertical) { width: 70%; } }
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding-top: 20px; }
  .logo img { height: 36px; }
  .menu-toggle { display: block; }
  #nav { display: none; width: 100%; }
  #nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; }
  .folder-menu { position: static; border: 0; padding: 6px 0 0 16px; min-width: 0; }
  .folder:hover .folder-menu { display: none; }
  .folder.open .folder-menu { display: block; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; }
}
@media (max-width: 480px) { .gallery { columns: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.video-block + .video-block { margin-top: 32px; }

/* About: text left, photo right, clients list full width below */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 9.5%; align-items: center;
  width: clamp(min(100%, 720px), 60vw, 1160px); margin: clamp(48px, 9vw, 200px) auto 0; line-height: 1.95; }
.about-text p { margin: 0 0 1.95em; }
.about-text p:last-child { margin-bottom: 0; }
.about-clients { grid-column: 1 / -1; margin: clamp(32px, 4vw, 72px) 0 0; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; width: 100%; row-gap: 32px; margin-top: 24px; }
  .about-photo { order: -1; }
  .about-clients { margin-top: 8px; }
}
.folder-toggle { line-height: inherit; vertical-align: baseline; }
.site-nav .ig { align-self: center; }
.site-nav a, .folder-toggle { line-height: 22px; display: inline-block; margin: 0; }

/* Contact: full-height photo section behind the header, big serif details on the left */
.page-contact .site-header { position: absolute; top: 0; left: 0; right: 0; }
.contact-hero { position: relative; margin: 0 calc(-1 * var(--side)); min-height: max(560px, calc(100vh - 120px)); display: flex; align-items: center; overflow: hidden; background: #191919; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-lines { position: relative; padding: 140px 8% 80px; color: #fff; font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 96px); line-height: 1.1; }
.contact-lines p { margin: 0; }
.contact-lines p + p { margin-top: 1.25em; }
.contact-lines a { color: inherit; text-decoration: none; }
.contact-email { border-bottom: max(1px, .02em) solid currentColor; }
.contact-lines a:hover { opacity: .8; }
.page-contact .site-footer { padding-top: 120px; padding-bottom: 120px; }

/* Stacked gallery (CWB): photos full content width, matching the videos */
.gallery.stacked { columns: 1; }
.gallery.stacked .tile { margin-bottom: 32px; background: none; }
.gallery.stacked + .video-block { margin-top: 32px; }

/* CleanNow: videos in a row of three, lined up with the photo columns above */
.video-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.video-row .video-block, .video-row .video-block + .video-block { margin: 0; }
@media (max-width: 960px) { .video-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .video-row { grid-template-columns: 1fr; } }
