/* ============================================================
   cedarwolf.com · light theme
   White background, dark type, edge-to-edge media.
   All text: Century Gothic (Jost is the free web fallback).
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --gray: #8a8a8a;
  --line: rgba(0, 0, 0, 0.12);

  --font: "Century Gothic", CenturyGothic, "Jost", AppleGothic, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;  /* keeps page width steady when the scrollbar appears */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header ----------
   mix-blend-mode: difference keeps the header legible everywhere:
   dark text over the white page, light text over the hero video. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.site-nav a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  margin-left: 30px;
  opacity: 0.75;
}
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
.site-nav a.active { opacity: 1; border-bottom: 1px solid #fff; padding-bottom: 3px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000 center / cover no-repeat;
}

.hero-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100vw, 177.78svh);
  height: max(100svh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
}

.hero-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }

.hero-center { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }

.hero-center h1 {
  font-weight: 400;
  font-size: clamp(2.2rem, 6.4vw, 4.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.12;
  color: #fff;
}

.hero-tagline {
  font-size: clamp(0.7rem, 1.4vw, 0.88rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 14px;
}

.hero-anchors {
  margin-top: 42px;
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.hero-anchors a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.hero-anchors a:hover, .hero-anchors a:focus-visible { border-bottom-color: #fff; }

/* ---------- generic page ---------- */
.page { padding: 120px var(--gutter) clamp(64px, 10vh, 110px); min-height: 60vh; }

.page-title {
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(28px, 5vh, 52px);
}

.back-link {
  display: inline-block;
  margin-top: 44px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }

/* ---------- mosaic: justified rows, no gaps ---------- */
.section { padding: 0; }

.mosaic {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  line-height: 0;
}

.mosaic .tile {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: #f0f0f0;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
}

.mosaic .tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;  /* image always fills its tile exactly */
  transition: transform 1s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.mosaic .tile:hover img,
.mosaic .tile:focus-visible img { transform: scale(1.04); }

.mosaic .tile:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; z-index: 2; }

.tile-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.3s;
}

.mosaic .tile:hover .tile-text,
.mosaic .tile:focus-visible .tile-text { opacity: 1; }

.tile-eyebrow {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.tile-title {
  font-weight: 400;
  font-size: clamp(0.8rem, 1.6vw, 1.05rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

/* ---------- video grid: flush thumbnails, hover titles ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

@media (max-width: 980px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

.vcard {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: #f0f0f0;
}

.vcard-media { aspect-ratio: 16 / 9; overflow: hidden; }

.vcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.vcard:hover .vcard-media img,
.vcard:focus-visible .vcard-media img { transform: scale(1.05); }

.vcard:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; z-index: 2; }

.vcard-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.vcard:hover .vcard-text,
.vcard:focus-visible .vcard-text { opacity: 1; }

.vcard-eyebrow {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.vcard-title {
  font-weight: 400;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

/* ---------- video project page ---------- */
.project { max-width: 1100px; margin: 0 auto; }

.project-eyebrow, .project-meta {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
}

.project-eyebrow { margin-bottom: 12px; }
.project .page-title { margin-bottom: 8px; }
.project-meta { margin-bottom: clamp(26px, 4vh, 44px); }

.project-video { position: relative; aspect-ratio: 16 / 9; background: #f0f0f0; margin-bottom: clamp(32px, 6vh, 56px); }
.project-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.project-body {
  max-width: 700px;
  margin: 0 auto clamp(36px, 6vh, 60px);
  color: #3c3c3c;
  font-size: 0.98rem;
}
.project-body p + p { margin-top: 1.2em; }

.project-stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 700px) { .project-stills { grid-template-columns: 1fr; } }
.project-stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f0f0f0; }

/* ---------- photography gallery covers: flush ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }

.gcard { position: relative; display: block; overflow: hidden; text-decoration: none; background: #f0f0f0; }
.gcard-media { aspect-ratio: 4 / 3; overflow: hidden; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.2,0.6,0.2,1); }
.gcard:hover .gcard-media img, .gcard:focus-visible .gcard-media img { transform: scale(1.05); }
.gcard:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; z-index: 2; }

.gcard-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.32);
  transition: background 0.3s;
}
.gcard:hover .gcard-text { background: rgba(0, 0, 0, 0.5); }

.gcard-title {
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
}

.gcard-count {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- about section (home page) ---------- */
.about {
  padding: clamp(72px, 12vh, 140px) var(--gutter) 0;
  text-align: center;
}

.about h2 {
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 34px;
}

.about-copy {
  max-width: 720px;
  margin: 0 auto clamp(44px, 7vh, 72px);
  text-align: left;
  color: #3c3c3c;
  font-size: 0.98rem;
}
.about-copy p + p { margin-top: 1.2em; }

.about-photo { width: 100%; }
.about-photo img { width: 100%; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px var(--gutter) 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.foot-copy { font-size: 0.72rem; color: var(--gray); }

.foot-social {
  color: var(--ink);
  display: inline-flex;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.foot-social:hover, .foot-social:focus-visible { opacity: 1; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}

.lightbox.open { display: flex; }

.lb-stage {
  width: 100%;
  max-width: 1500px;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }

.lb-caption {
  margin-top: 18px;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
}

.lb-caption strong { color: var(--ink); font-weight: 400; margin-right: 14px; }

.lb-close, .lb-arrow {
  position: absolute;
  z-index: 2;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.lb-close:hover, .lb-arrow:hover,
.lb-close:focus-visible, .lb-arrow:focus-visible { border-color: var(--ink); }

.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mosaic .tile img, .vcard-media img, .gcard-media img { transition: none; }
}

/* ============================================================
   Hover previews
   ============================================================ */

/* video cards: title always visible on a bottom gradient;
   a muted 10s highlight loop plays underneath on hover */
.vcard-text {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 60%);
  opacity: 1;
  z-index: 3;
  pointer-events: none;
}

.vcard-title { text-align: left; font-size: clamp(0.8rem, 1.5vw, 0.98rem); }

.vcard-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  background: #000;
  overflow: hidden;
}

.vcard.previewing .vcard-preview { opacity: 1; }

/* oversize the player slightly so YouTube UI edges never show */
.vcard-preview iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 102%;
  height: 102%;
  transform: translate(-50%, -50%);
  border: 0;
}

/* gallery covers: crossfading slideshow on hover */
.gcard-media { position: relative; }

.gcard-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.gcard-media img.back { opacity: 0; }


/* ============================================================
   Gallery page navigation + project video galleries
   ============================================================ */

.gallery-head { padding-bottom: 26px; min-height: 0; }
.gallery-head .page-title { margin-bottom: 18px; }
.gallery-foot { padding-top: 8px; min-height: 0; }

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
}

.gallery-nav a {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 4px 2px;
  transition: color 0.2s, border-color 0.2s;
}

.gallery-nav a:hover { color: var(--ink); }
.gallery-nav a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* project page: grid of additional videos */
.project-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 34px) clamp(10px, 1.6vw, 20px);
}

@media (max-width: 700px) { .project-videos { grid-template-columns: 1fr; } }

.pvid-frame { position: relative; aspect-ratio: 16 / 9; background: #f0f0f0; }
.pvid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pvid-title {
  margin-top: 8px;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}
