:root {
  --bg: #0f0f10;
  --bg-light: #fafaf8;
  --ink: #1a1a1a;
  --paper: #f4f3ef;
  --muted: #8a8a85;
  --accent: #c9a876;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-light);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

/* Homepage video banner — sits directly below the header, above the hero text */
.hero-video {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  background: #000;
}

.splash-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center 25%;
}

@media (max-width: 720px) {
  .hero-video { height: 48vh; min-height: 260px; }
}

.sound-toggle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: background 0.2s;
}

.sound-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
}

.sound-toggle .icon-unmuted {
  display: none;
}

.sound-toggle[aria-pressed="true"] .icon-muted {
  display: none;
}

.sound-toggle[aria-pressed="true"] .icon-unmuted {
  display: block;
}

/* Homepage News section */
.news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px 72px;
}

.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.news-header h2 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.news-item {
  display: flex;
  flex-direction: column;
}

.news-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--paper);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-date {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 8px;
}

.news-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.news-text {
  font-size: 14px;
  line-height: 1.7;
  color: #3a3a38;
  margin: 0;
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .news { padding: 24px 24px 56px; }
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  z-index: 10;
  color: #fff;
}

.site-header.light {
  position: relative;
  z-index: 20;
  color: var(--ink);
  border-bottom: 1px solid #e3e2dc;
}

.logo {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.site-header nav {
  display: flex;
  align-items: center;
}

.site-header nav a {
  margin-left: 28px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.site-header nav a:hover,
.site-header nav a.active {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

/* Temporarily disabled nav link (e.g. Shop before Gumroad is ready) */
.site-header nav a.nav-disabled {
  color: #b3b3b0;
  opacity: 1;
  pointer-events: none;
  cursor: default;
}

.site-header nav a.nav-disabled:hover {
  border-bottom: none;
}

/* Instagram icon link */
.ig-link {
  display: inline-flex;
  align-items: center;
  border-bottom: none !important;
}

.site-header nav .ig-link {
  margin-left: 28px;
}

.ig-link svg {
  width: 18px;
  height: 18px;
}

/* Work dropdown */
.nav-item {
  position: relative;
  margin-left: 28px;
  display: flex;
  align-items: center;
}

.nav-item > a {
  margin-left: 0;
}

.nav-item .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  background: var(--bg-light);
  border: 1px solid #e3e2dc;
  min-width: 140px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  margin: 0 !important;
  padding: 9px 16px;
  color: var(--ink) !important;
  font-size: 12px;
  border-bottom: none !important;
}

.dropdown a:hover {
  background: #efeee8;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 20px;
  }

  .site-header nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
    margin-top: 20px;
    gap: 4px;
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    margin-left: 0;
    padding: 10px 0;
    width: 100%;
  }

  .nav-item {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header nav .ig-link {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .nav-item .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: none;
    background: none;
    padding: 0 0 0 16px;
    margin-top: 0;
  }

  .nav-item.open .dropdown {
    display: block;
  }

  .dropdown a {
    color: inherit !important;
    padding: 8px 0;
  }

  .site-header.light nav {
    border-top: 1px solid #e3e2dc;
    padding-top: 12px;
  }

}

/* Home / hero — sits below the video banner, on the plain page background */
.hero-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 24px 24px;
  text-align: center;
}

.hero-content h1 {
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-content .tagline {
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-content .intro {
  font-size: 15px;
  line-height: 1.7;
  color: #3a3a38;
  margin-bottom: 32px;
}

.cta {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.cta:hover {
  background: var(--ink);
  color: #fff;
}

/* Work landing */
.category-page {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-page h1 {
  font-size: 20px;
  letter-spacing: 3px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 48px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-col {
  display: flex;
  flex-direction: column;
}

.category-text {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #3a3a38;
  text-align: left;
}

.category-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
}

.category-tile {
  background: #e8e7e1;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile img:not([src]) {
  visibility: hidden;
}

.gallery-empty {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 60px 20px;
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

.category-tile span {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 2;
}

@media (max-width: 900px) {
  .categories { grid-template-columns: 1fr; }
}

/* About / Contact */
.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.country-list {
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 32px;
}

.about-thanks-wrap {
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid #e3e2dc;
}

.about-thanks {
  text-align: center;
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
  color: #3a3a38;
  max-width: 680px;
  margin: 0 auto;
}

.about-body {
  text-align: center;
  margin-bottom: 56px;
}

.about-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  background: var(--paper);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body h1 {
  font-size: 20px;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 24px;
}

.about-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #3a3a38;
  margin-bottom: 24px !important;
}

.about-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #3a3a38;
  max-width: 680px;
  margin: 0 auto 20px;
}

.about-body .cta {
  display: inline-block;
  margin-top: 12px;
  border-color: var(--ink);
  color: var(--ink);
}

.about-body .cta:hover {
  background: var(--ink);
  color: #fff;
}

.contact-line {
  text-align: center;
}

.contact-line a {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.contact-line a:hover {
  opacity: 0.6;
}

@media (max-width: 560px) {
  .about-page { padding: 24px 16px 48px; }
}

/* Gallery */
.gallery-page {
  padding: 40px;
  width: 100%;
}

.gallery-page h1 {
  font-size: 18px;
  letter-spacing: 3px;
  font-weight: 500;
  text-align: center;
  margin: 8px 0 8px;
}

.breadcrumb {
  display: block;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 36px;
}

.breadcrumb:hover { color: var(--ink); }

.gallery-search-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 32px;
}

.gallery-search-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-search {
  width: 100%;
  max-width: 220px;
  padding: 8px 4px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e3e2dc;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}

.gallery-search::placeholder {
  color: var(--muted);
}

.gallery-search:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.gallery-search::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-hidden {
  display: none !important;
}

/* Justified gallery: JS computes an exact pixel width/height per photo per
   row (see script.js) so every row fills the container width exactly, with
   no cropping — each photo keeps its true aspect ratio, just scaled. */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.tile-image {
  position: relative;
  display: block;
  overflow: hidden;
}

.tile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.tile-image img.is-loaded {
  opacity: 1;
}

.gallery-item:hover .tile-image img {
  transform: scale(1.04);
}

.tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.gallery-item:hover .tile-caption,
.gallery-item:focus-visible .tile-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 560px) {
  .site-header { padding: 20px; }
  .gallery-page { padding: 20px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  flex-direction: column;
  touch-action: pan-y;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  cursor: pointer;
}

.lightbox-caption {
  color: #ccc;
  font-size: 13px;
  margin-top: 16px;
  letter-spacing: 0.5px;
}

.lightbox-buy {
  display: none;
  margin-top: 18px;
  padding: 10px 26px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.lightbox-buy:hover {
  background: #fff;
  color: var(--ink);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
}

.lightbox-close { top: 20px; right: 30px; font-size: 28px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Footer */
footer {
  text-align: center;
  padding: 28px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

footer p {
  margin: 0 0 12px;
}

