/* ---------- RESET / GLOBAL ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #111111;
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
}

/* ---------- HEADER / NAV ---------- */

.site-header {
  text-align: center;
}

.site-title-block {
  margin-bottom: 10px;
}

.site-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
.site-logo {
  display: inline-block;
}

.site-logo img {
  height: 42px; /* adjust if needed */
  width: auto;
  display: block;
}

.site-logo:hover {
  opacity: 0.85;
}


}
/* Force lighter site title */
.site-title {
  font-weight: 600 !important;
}

.site-subtitle {
  margin: 0px 0 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.40em;
  opacity: 0.7;
}

.site-nav {
  display: inline-flex;
  gap: 90px;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 10px;
}

.nav-link {
  text-decoration: none;
  color: #333333;
  position: relative;
  padding-bottom: 3px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #111111;
  transition: width 0.18s ease-out;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #111111;
}

.nav-link.active::after {
  width: 100%;
}

/* ---------- MAIN CONTENT WIDTH ---------- */

.content {
  max-width: 1280px;
  margin: 40px auto 0;
}

/* ---------- SHOWREEL (HOME / WORK PAGE) ---------- */

.showreel-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.showreel-frame video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2.39 / 1; /* cinematic */
  background-color: #000;
  border-radius: 4px;
  cursor: url("assets/icons/reel-cursor.png") 40 40, pointer; /* 80px cursor */
}

/* ---------- PROJECT GRID (HOME / WORK PAGE) ---------- */

.projects {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px; /* vertical gap between rows */
}

/* each row is its own grid of 3 images */
.project-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px; /* horizontal gap between stills */
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

/* stills */
.project-still img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 2.39 / 1;

}
/* Master shot / hero image on project pages */
.project-master {
  max-width: 1000px;           /* tweak if you want wider/narrower */
  margin: 0 auto 40px auto;   /* center + space below */
}

.project-master-image {
  width: 100%;
  aspect-ratio: 2.39 / 1;
  object-fit: cover;
  display: block;
}

/* optional: make it feel clickable without changing style too much */
.master-thumb {
  display: block;
}
.master-thumb:hover .project-master-image {
  opacity: 0.95;
}


/* overlay covers entire row of three images */
.project-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.project-overlay-inner {
  text-align: center;
}

.project-title {
  margin: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.project-meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* hover */
.project-row:hover .project-overlay {
  opacity: 1;
}

/* ---------- CONTACT PAGE LAYOUT ---------- */

/* whole contact page content sits centered & a bit narrower */
.contact-layout {
  max-width: 1000px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* TOP ROW: About (left) + Portrait (right) */
.contact-main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Left column: About + Contact text */
.about-block {
  flex: 0 0 48%;
}

/* headings inside contact page (About, Contact, Trusted by) */
.contact-heading {
  margin: 0 0 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.7;
}

/* Contact block under About text */
.contact-details {
  margin-top: 28px;
}

/* Right column: portrait – bigger, 3:4, aligned with text block */
.contact-portrait {
  flex: 0 0 39%;
  margin-top: 26px; /* nudges image down so top lines up closer to your name */
}

.contact-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;    /* portrait 3:4 */
  object-fit: cover;      /* fills the frame nicely */
  border-radius: 4px;
}

/* CONTACT PAGE LINKS STYLE (email + website) */
.contact-details a {
  color: #111;            /* same colour as your body text */
  text-decoration: none;  /* remove underline */
  opacity: 0.8;           /* match your vibe */
  transition: opacity 0.18s ease;
}

.contact-details a:hover {
  opacity: 1;             /* subtle hover */
}

/* BOTTOM: centered Trusted by */
.contact-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Trusted by block */
.trusted-by {
  max-width: 900px;
  width: 100%;
}

/* Trusted by “logo” chips */
.trusted-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: nowrap;    /* keep on one line on desktop */
  justify-content: center;
  gap: 8px 10px;
}

.trusted-list li {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #dadada;
  background-color: #fafafa;
  white-space: nowrap;
}

/* ---------- PROJECT DETAIL PAGES (3-still rows) ---------- */

.project-page {
  max-width: 1000px;
  margin: 40px auto 0;
}

.project-header {
  margin-bottom: 20px;
}

.project-page-title {
  margin: 0 0 4px;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-page-meta {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* container for all rows of stills */
.project-stills-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;          /* gap between rows */
  margin-top: 24px;
}

/* each row of 3 stills */
.project-stills-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;          /* gap between stills in a row */
}

/* individual stills inside rows */
.project-stills-row img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
 aspect-ratio: 2.39 / 1; /* same as home grid */
  border-radius: 0;      /* <-- square corners */
}

/* ---------- LIGHTBOX (for enlarged stills) ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  color: #ffffff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

/* ---------- FOOTER ---------- */

.site-footer {
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.8rem;
  text-align: center;
  color: #777777;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .content {
    margin-top: 32px;
  }

  .project-title {
    font-size: 0.95rem;
  }

  /* Contact: stack image above text on smaller screens */
  .contact-main {
    flex-direction: column-reverse;
  }

  .trusted-list {
    flex-wrap: wrap;   /* allow wrapping on narrow screens */
  }
}

@media (max-width: 700px) {
  .project-row {
    grid-template-columns: 1fr;
  }

  .project-stills-row {
    grid-template-columns: 1fr; /* stack stills on small screens */
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.3rem;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.75rem;
  }
}
/* clickable stills show zoom cursor */
.clickable-still {
  cursor: pointer;  /* normal clean pointer (hand) */
}

}
.project-page-director {
  margin-top: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
/* BACK TO WORK LINK */
.back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: #111;          /* NORMAL text colour */
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 1;
}

/* LIGHTBOX CORE (CSS-only swap system) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
}

.lightbox-inner {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  margin: 5vh auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* arrow buttons */
.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  color: white;
  text-decoration: none;
  font-size: 2.4rem;
  opacity: 0.9;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev {
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close {
  top: -2rem;
  right: -2rem;
}
/* --- WORK PAGE GRID BEHAVIOUR (OVERRIDE) --- */

/* Project rows = 3 per row on desktop */
.projects .project-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

/* Make sure the thumbnails behave */
.projects .project-row .project-still img {
  width: 100%;
  aspect-ratio: 2.39 / 1;
  object-fit: cover;
  display: block;
}

/* On phones: still a grid, not a single column */
@media (max-width: 768px) {
  .projects .project-row {
    display: grid; /* override any display:block */
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* 2 across on mobile */
    gap: 10px;
  }
}
/* --- PROJECT PAGE STILLS GRID --- */
.project-stills-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .project-stills-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ===== FORCE WORK PAGE GRID (DESKTOP + MOBILE) ===== */

/* Container of all rows */
section.projects {
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
}

/* Each project row is a 3-column grid */
section.projects > a.project-row {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 15px !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* The stills inside the row */
section.projects > a.project-row .project-still img {
  width: 100% !important;
  aspect-ratio: 2.39 / 1 !important;
  object-fit: cover !important;
  display: block !important;
}

/* On phones: KEEP IT 3 ACROSS – do NOT stack */
@media (max-width: 768px) {
  section.projects > a.project-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}
/* UNIFY SPACING BETWEEN PROJECT ROWS */
.projects {
  gap: 15px !important; /* same spacing vertically as horizontally */
}

/* Thumbnail spacing */
.project-row {
  gap: 10px !important; /* optional tiny tighten */
}

/* Mobile: even tighter vertical/horizontal spacing */
@media (max-width: 768px) {
  .projects {
    gap: 10px !important;
  }
  .project-row {
    gap: 6px !important;
  }
}
/* ===== FORCE TIGHT, EQUAL GAPS ON WORK PAGE (desktop + mobile) ===== */

section.projects {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;          /* vertical gap between rows */
  margin-top: 20px !important;   /* keep some breathing room after showreel */
}

section.projects > a.project-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;          /* horizontal gap inside a row */
  margin: 0 !important;          /* kill any row margin */
  padding: 0 !important;         /* kill any row padding */
}

/* kill any margins that might be added by wrappers */
section.projects > a.project-row .project-still {
  margin: 0 !important;
  padding: 0 !important;
}

/* make images clean */
section.projects > a.project-row .project-still img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 2.39 / 1 !important;
  object-fit: cover !important;
}

/* Mobile: match vertical + horizontal gaps */
@media (max-width: 768px) {
  section.projects {
    gap: 6px !important;
  }

  section.projects > a.project-row {
    gap: 6px !important;
  }
}
/* PROJECT PAGES: MOBILE FIX — keep stills consistent (1 per row) */
@media (max-width: 768px) {
  .project-stills-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* Swap thumbnails (project pages) */
.swap-thumb {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.swap-thumb.is-active {
  outline: 1px solid #111;
  outline-offset: 2px;
}
/* ============================= */
/* GLOBAL JS LIGHTBOX (CLEAN)    */
/* ============================= */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Image */
.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

/* Controls */
.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: fixed;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  opacity: 0.85;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  opacity: 1;
}

/* Left / Right */
.lightbox-prev {
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

/* Close */
.lightbox-close {
  top: 24px;
  right: 32px;
  font-size: 1.8rem;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}
.site-title img {
  height: 38px;
  width: auto;
  display: block;
}
.site-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-title img {
  height: 40px;
  width: auto;
  display: block;
}
.lightbox,
.lightbox-overlay,
.modal,
.fullscreen {
  position: fixed !important;
  inset: 0;
  z-index: 9999 !important;
  background: #000;
}
/* Make name/logo clickable without changing layout */
.site-title-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.site-title-link img {
  display: block;
}

.site-title-link:hover {
  opacity: 0.85;
}
/* SHOWREEL – VIMEO FIX */
.showreel-frame {
  max-width: 1300px;
  margin: 0 auto 30px;
}

.showreel-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
/* HOME PAGE: keep 3 stills per row on mobile */
@media (max-width: 768px) {
  /* This targets ONLY the home grid rows (project links on index) */
  .project-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .project-row img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
/* === Showreel custom cursor (Vimeo iframe too) === */
.showreel-frame,
.showreel-frame iframe {
  cursor: url("assets/icons/reel-cursor.png") 16 16, auto;
}

.showreel-frame:hover,
.showreel-frame:hover iframe {
  cursor: url("assets/icons/reel-cursor.png") 16 16, pointer;
}
.showreel-frame {
  position: relative;
}

.showreel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: url("assets/icons/reel-cursor.png") 16 16, pointer;
}
body { outline: 8px solid red !important; }
/* ===== FINAL MOBILE FIX: HOME GRID ===== */
@media (max-width: 768px) {
  body .projects > a.project-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body .projects > a.project-row .project-still img {
    width: 100% !important;
    aspect-ratio: 2.39 / 1 !important;
    object-fit: cover !important;
    display: block !important;
  }
}
/* ===== SHOWREEL CURSOR FIX (VIMEO SAFE) ===== */
.showreel-frame {
  position: relative;
}

.showreel-cursor-layer {
  position: absolute;
  inset: 0;
  cursor: url("assets/icons/reel-cursor.png") 16 16, pointer;
  z-index: 5;
}
/* ===== MOBILE TYPOGRAPHY FIX (PROJECT TITLES) ===== */
@media (max-width: 768px) {

  /* Home page project overlay titles */
  .project-title {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .project-meta {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  /* Project pages (Gatekeeper, Hard Travelling, etc.) */
  .project-page-title {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }

  .project-page-meta,
  .project-page-director {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }
}
