/* ==========================================================================
   Stuart Philkill — site styles
   Plain CSS, no build step. Edit freely.
   ========================================================================== */

/* ---- Fonts (self-hosted, open licence) -------------------------------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---- Theme ------------------------------------------------------------- */
:root {
  --bg: #1c1c1c;
  --text: #d9d9d9;
  --muted: #9a9a9a;
  --nav: #6b6b6b;
  --white: #fff;
  --max: 1100px;
  --gutter: clamp(20px, 5vw, 40px);
  --body-font: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --logo-font: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--white); color: #111; padding: 8px 14px; font-size: 14px;
}
.skip-link:focus { top: 12px; color: #111; }

/* ---- Layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ---- Header ------------------------------------------------------------ */
.site-header { padding-top: 36px; }

.site-header .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: block; color: var(--white); line-height: 1.1; }
.logo:hover { color: var(--white); }
.logo-name {
  display: block;
  font-family: var(--logo-font);
  font-size: 32px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
}
.logo-tag {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 2px;
  display: flex;
  gap: 25px;
}
.site-nav a {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--nav);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: #c8c8c8; }
.site-nav a[aria-current="page"] { color: var(--white); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* ---- Main content spacing ---------------------------------------------- */
.content { padding-top: 100px; padding-bottom: 40px; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { padding: 100px 0 60px; }
.site-footer .wrap { text-align: right; font-size: 16px; line-height: 1.75; }
.site-footer a { color: #e8e8e8; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin: 0; }

/* ==========================================================================
   Home (full-screen slideshow cover)
   ========================================================================== */
.home { background: #111; color: var(--white); overflow: hidden; }

.cover {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  display: grid;
  place-items: center;
  text-align: center;
}

.slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.slides li {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.slides li.is-active { opacity: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; }

.cover::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(34, 34, 34, 0.32);
  pointer-events: none;
}

.cover-inner { position: relative; z-index: 2; padding: 0 24px; }

.cover h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.15);
}

.cover .tagline {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.05em;
}

.cover-links {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.cover-links a {
  display: inline-block;
  padding: 12px 20px 11px;
  border: 2px solid var(--white);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}
.cover-links a:hover { background: var(--white); color: #222; }

/* ==========================================================================
   Reel
   ========================================================================== */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ==========================================================================
   Cinematography grid
   ========================================================================== */
.video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 18px;
}

.video-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}
.video-thumb::after {
  /* play triangle */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  border-style: solid;
  border-width: 16px 0 16px 30px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.03); opacity: 0.85; }
.video-card:hover .video-thumb::after { transform: translate(-40%, -50%) scale(1.12); }

.video-title {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Photography grid
   ========================================================================== */
.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.photo-cell {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.photo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transition: opacity 0.25s ease;
}
.photo-cell:hover img { opacity: 0.85; }

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 344px) 1fr;
  gap: 34px;
  align-items: start;
}
.about img { width: 100%; height: auto; }
.about p { margin: 0 0 1em; }
.about .text { padding-top: 4px; }

/* ==========================================================================
   Equipment
   ========================================================================== */
.equipment p { margin: 0 0 1.4em; }
.equipment h2 {
  margin: 1.6em 0 0.8em;
  font-size: 16px;
  font-weight: 400;
  color: #e6e6e6;
}
.equipment h2.strong { font-weight: 500; }
.equipment h3 {
  margin: 1em 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #b5b5b5;
}
.equipment h3 span { font-weight: 300; letter-spacing: 0.04em; }
.equipment ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #a6a6a6;
}
.equipment ul.large { font-size: 18px; line-height: 1.5; }
.equipment ul.small { font-size: 15px; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog { max-width: 560px; }
.blog h1 {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #b5b5b5;
}
.blog p { margin: 0; line-height: 1.7; }

/* ---- 404 ---------------------------------------------------------------- */
.not-found h1 { font-weight: 300; font-size: 28px; color: #e6e6e6; margin: 0 0 12px; }
.not-found a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Lightbox (photos + videos)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  background: rgba(14, 14, 14, 0.97);
  color: var(--white);
}
.lightbox.is-open { display: block; }

.lightbox-stage {
  position: absolute;
  inset: 56px 70px;
  display: grid;
  place-items: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}
.lightbox-video {
  position: relative;
  width: min(100%, calc((100vh - 112px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
}
.lightbox-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lightbox-caption {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  text-align: center;
  font-size: 14px;
  color: #bbb;
  letter-spacing: 0.03em;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: #ddd;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.lb-btn:hover { opacity: 1; color: #fff; }
.lb-btn svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox[data-mode="video"] .lb-prev,
.lightbox[data-mode="video"] .lb-next { display: none; }

body.lb-open { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { padding-top: 24px; }
  .site-header .wrap { flex-wrap: wrap; align-items: center; }
  .logo-name { font-size: 28px; }
  .menu-toggle { display: block; }
  .site-nav { width: 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 14px 0 0; }
  .site-nav a { display: block; padding: 9px 0; font-size: 17px; border-top: 1px solid #2c2c2c; }
  .content { padding-top: 48px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about img { max-width: 420px; }
  .site-footer { padding: 70px 0 44px; }
  .site-footer .wrap { text-align: left; }
  .lightbox-stage { inset: 56px 8px 48px; }
  .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; }
}

@media (max-width: 560px) {
  .cover .tagline { font-size: 14px; letter-spacing: 0.02em; }
  .video-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cover-links a { padding: 11px 16px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
