/**
 * Content
 */

/* Page background fallback (behind video) */
body {
  background: radial-gradient(circle at center, #383A40, #05090E);
  background-attachment: fixed;
}

/* Fullscreen background video */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* Darken video for better text contrast */
#bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.85)
  );
}

/* Page background */
/* (old gradient removed, video is now the main backdrop) */

a:active {
  opacity: 0.7;
}

.page a.active {
  opacity: 0.4;
}

/* Nav alignment with H1 (font itself set in Cargo panel) */
#site_nav a {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-decoration: none;
}

/* Mobile responsive typography tweaks */
@media (max-width: 600px) {

  /* titles (H1/H2) are controlled only by Cargo now */

  #site_nav a {
    font-size: 0.65rem !important;
    letter-spacing: 0.15em !important;
  }

  body.mobile #site_menu_button {
    margin: -6px;
    font-size: 34px;
  }

  body.mobile #shop_button:not(.text) {
    margin: -6px;
    font-size: 38px;
  }

  body.mobile .quick-view {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  body.mobile #site_menu {
    width: 100%;
  }

  body.mobile #site_menu .close {
    display: block;
    font-size: 50px;
    line-height: 1em;
  }

  body.mobile .audio-player {
    max-width: 100%;
  }
}

/* Basic elements */

img {
  border: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0 0 0 1em;
}

blockquote {
  margin: 0;
  padding: 0 0 0 2em;
}

hr {
  background: rgba(127, 127, 127, 0.2);
  border: 0;
  height: 1px;
  display: block;
}

.content img {
  float: none;
  margin-bottom: 0.5em;
}

.gallery_image_caption {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  line-height: 1.3;
}

/**
 * Loading Animation
 */

.loading[data-loading] {
  position: fixed;
  bottom: 8px;
  left: 8px;
}

/**
 * Editor styles
 * (fonts, sizes, colors for Bodycopy / H1 / H2 / Small
 *  are set in Cargo’s Text Styles panel)
 */

[data-predefined-style="true"] bodycopy {
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  line-height: 1.4;
  font-family: "Archivo Narrow", Icons;
}

[data-predefined-style="true"] bodycopy a {
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

[data-predefined-style="true"] bodycopy a:hover {
}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
  border-bottom: 0;
  padding-bottom: 0;
}

/**
 * Breakpoints + Layout
 */

[data-css-preset] .page {
  background-color: initial /*!page_bgcolor*/;
}

.mobile .page,
[data-css-preset].mobile .page {
  position: relative;
  min-height: 10px;
  max-width: 100%;
  width: 100%;
  background-color: transparent /*!page_bgcolor*/;
}

[data-css-preset] .container {
  margin-left: 0 /*!content_left*/;
  margin-right: auto /*!content_left*/;
  text-align: left /*!text_left*/;
}

[data-css-preset] body {
  background-color: rgb(37, 37, 37) /*!body_bgcolor*/;
}

[data-css-preset] .container_width {
  width: 100% /*!content_left*/;
}

[data-css-preset] .content_padding {
  padding-top: 5rem /*!main_margin*/;
  padding-bottom: 5rem /*!main_margin*/;
  padding-left: 5rem /*!main_margin*/;
  padding-right: 5rem /*!main_margin*/;
}

[data-css-preset] text-limit {
  display: inline-block /*!text_width*/;
  max-width: 65rem /*!text_width*/;
}

/**
 * Thumbnails
 */

div[thumbnails] {
  justify-content: flex-start;
}

[data-css-preset] .thumbnails {
  background-color: transparent /*!thumbnails_bgcolor*/;
}

[data-css-preset] .thumbnails_width {
  width: 100% /*!thumbnails_width*/;
}

[data-css-preset] [thumbnails-pad] {
  padding: 2.5rem /*!thumbnails_padding*/;
}

[data-css-preset] [thumbnails-gutter] {
  margin: -5rem /*!thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-pad] {
  padding: 0.8rem /*!responsive_thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
  margin: -1.6rem /*!responsive_thumbnails_padding*/;
}

.thumbnails .thumb_image {
  outline: 1px solid rgba(0, 0, 0, 0.12);
  outline-offset: -1px;
}

.thumbnails .title {
  margin-top: 2rem;
  margin-bottom: 0.3rem;
  font-size: 1.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  line-height: 1.3;
}

.thumbnails .has_title .tags {
  margin-top: 0;
}

/* ============================================
   VIDEO THUMBNAILS
   ============================================ */

.thumbnails .thumb_image {
  position: relative;
  overflow: hidden;
}

.thumbnails .thumb_image[aspect-ratio="16x9"] {
  padding-bottom: 56.25%;
  height: 0;
}

.thumbnails .thumb_image[aspect-ratio="4x3"] {
  padding-bottom: 75%;
  height: 0;
}

.thumbnails .thumb_image[aspect-ratio="1x1"] {
  padding-bottom: 100%;
  height: 0;
}

.thumbnails .thumb_image img,
.thumbnails .thumb_image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.thumbnails .tags a {
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.thumbnails .has_title .tags {
  margin-top: 0;
}

/**
 * Site Menu Button
 */

[data-css-preset] #site_menu_button {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
  font-size: 28px /*!site_menu_button*/;
  padding: 6px;
  background: rgba(33, 32, 46, 0);
  position: fixed;
  top: 3rem /*!site_menu_button*/;
  right: 3rem /*!site_menu_button*/;
}

#site_menu_button.custom_icon {
  width: 40px;
  height: auto;
}

#site_menu_button.active {
  display: none;
}

/**
 * Site Menu
 */

#site_menu {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  background: rgba(20, 20, 20, 0.95);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  padding: 20px 30px 90px 30px;
  max-width: 400px;
  min-width: 300px;
  text-align: left;
  display: flex;
  justify-content: flex-start;
}

#site_menu .page-link a {
  color: rgba(255, 255, 255, 0.75);
}

#site_menu .set-link > a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: bold;
}

#site_menu a:active {
  opacity: 0.7;
}

#site_menu a.active {
  color: rgba(255, 0, 0, 0.75);
  opacity: 1;
}

#site_menu .close {
  display: none;
  color: rgba(255, 255, 255, 0.4);
  line-height: 0.85em;
  font-size: 45px;
}

#site_menu .break {
  height: 28px;
}

#site_menu .indent {
  margin-left: 28px;
}

/*
 * Shop Button
 */

[data-css-preset] #shop_button {
  color: rgba(255, 255, 255, 1);
  background: transparent;
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  position: fixed;
  padding: 6px;
  top: 1rem /*!shop_button*/;
  right: 1rem /*!shop_button*/;
}

#shop_button.text {
  font-size: 1.4rem;
  line-height: 1.3;
  font-family: "Space Mono", Icons;
  font-style: normal;
  font-weight: 400;
  padding: 0;
  line-height: 1.2;
}

#shop_button.custom_icon {
  width: 40px;
  height: auto;
}

/*
 * Shop Product Widget
 */

.shop_product {
  width: 100%;
  max-width: 22rem;
  position: relative;
  display: block;
}

.shop_product .price {
  font-family: "Space Mono", Icons;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 1rem;
  font-style: normal;
  font-weight: 400;
}

.shop_product .dropdown {
  font-family: "Space Mono", Icons;
  font-size: 1.4rem;
  color: rgba(0, 0, 0, 0.9);
  display: inline-block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #ffffff url(https://static.cargo.site/assets/images/select-line-arrows.svg) no-repeat right;
  margin-bottom: 1rem;
  line-height: 1.2;
  padding: 0.7rem 2rem 0.7rem 1rem;
  font-style: normal;
  font-weight: 400;
}

.shop_product .button {
  font-family: "Space Mono", Icons;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 1);
  flex: 0 0 50%;
  text-align: left;
  display: inline-block;
  line-height: 1;
  padding: 0.8rem 1rem 0.9rem;
  font-style: normal;
  font-weight: 400;
  border-bottom: none;
}

/*
 * Image Zoom
 */

.content img.image-zoom:active {
  opacity: 0.7;
}

/**
 * Quick View
 */

[data-css-preset] .quick-view {
  padding-top: 2.5rem /*!quick_view_padding*/;
  padding-bottom: 2.5rem /*!quick_view_padding*/;
  padding-left: 2.5rem /*!quick_view_padding*/;
  padding-right: 2.5rem /*!quick_view_padding*/;
  height: 100% /*!quick_view_height*/;
  width: 100% /*!quick_view_width*/;
}

[data-css-preset] .quick-view-background {
  background: rgba(0, 0, 0, 0.85) /*!quick_view_bgcolor*/;
}

.quick-view-caption {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  transition: 100ms opacity ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 3.5rem 0;
  text-align: center;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
}

.quick-view-caption span {
  padding: 0.5rem 1rem;
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

/**
 * Quick View Navigation
 */

.quick-view-navigation .left-arrow {
  left: 10px;
}

.quick-view-navigation .right-arrow {
  right: 10px;
}

.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow {
  height: 36px;
  width: 36px;
}

.quick-view-navigation .left-arrow .inner-color,
.quick-view-navigation .right-arrow .inner-color {
  stroke: #fff;
  stroke-width: 1.5px;
}

.quick-view-navigation .left-arrow .outer-color,
.quick-view-navigation .right-arrow .outer-color {
  stroke: #000;
  stroke-width: 2.5px;
  opacity: 0.6;
}

.quick-view-navigation .close-button {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
}

.quick-view-navigation .close-button .inner-color {
  stroke: #fff;
  stroke-width: 1.5px;
}

.quick-view-navigation .close-button .outer-color {
  stroke: #000;
  stroke-width: 2.5px;
  opacity: 0.6;
}

/**
 * Image Gallery Navigation Arrows
 */

.image-gallery-navigation .left-arrow,
.image-gallery-navigation .right-arrow {
  height: 36px;
  width: 36px;
}

.image-gallery-navigation .left-arrow .inner-color,
.image-gallery-navigation .right-arrow .inner-color {
  stroke: #fff;
  stroke-width: 1.5px;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color {
  stroke: #000;
  stroke-width: 2.5px;
  opacity: 0.6;
}

/**
 * Wallpaper Backdrop Navigation Arrows
 */

.wallpaper-navigation .left-arrow,
.wallpaper-navigation .right-arrow {
  width: 36px;
  height: 36px;
}

.wallpaper-navigation .left-arrow .inner-color,
.wallpaper-navigation .right-arrow .inner-color {
  stroke: #fff;
  stroke-width: 1.5px;
}

.wallpaper-navigation .left-arrow .outer-color,
.wallpaper-navigation .right-arrow .outer-color {
  stroke: #000;
  stroke-width: 2.5px;
  opacity: 0.6;
}

/**
 * Feed
 */

.feed .content_container .page {
  border-top: 0 dashed rgba(0, 0, 0, 0.2);
}

.feed .content_container .page_container:first-child .page {
  border-top: 0;
}

/*
 * Audio Player
 */

.audio-player {
  max-width: 36rem;
  height: 3.3rem;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.4);
  font-size: 1.2rem;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
  font-style: normal;
  font-weight: 400;
  text-align: left;
  margin: 1px 1px 1em 1px;
}

.audio-player .separator {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.14);
}

.audio-player .button {
  background: transparent;
  cursor: pointer;
  fill: rgba(255, 255, 255, 0.85);
}

.audio-player .icon {
  fill: rgba(255, 255, 255, 0.75);
  padding: 30%;
  width: 100%;
  margin: auto;
}

.audio-player .buffer {
  background: rgba(255, 255, 255, 0.05);
}

.audio-player .progress {
  background: rgba(255, 255, 255, 0.09);
}

.audio-player .progress-indicator {
  border: 1px solid rgba(255, 255, 255, 0.7);
  width: 1px;
  height: 100%;
  right: 0;
  position: absolute;
  cursor: ew-resize;
}

.audio-player .note-icon {
  height: 100%;
  width: 3.8rem;
  padding: 1rem;
  fill: rgba(255, 255, 255, 0.6);
}

.audio-player .current-time {
  padding-left: 1rem;
}

.audio-player .total-time {
  padding-right: 1rem;
}

/* Project index titles (thumbnails) */
.thumbnails .title {
  font-family: "Archivo Black", sans-serif;
  font-weight: 600;      /* was 700 */
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Big project-page title */
.content h1,
.content h1 a {
  font-family: "Archivo Black", sans-serif;
  font-weight: 600;      /* was 700 */
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Genre / category line under project titles */
.thumbnails .tags {
  font-family: "Archivo Narrow", sans-serif;  /* or Space Mono if you prefer */
  font-weight: 400;
  font-size: 1.2rem;       /* smaller than title */
  line-height: 1.2;
  letter-spacing: 0.08em;  /* a bit wider */
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   PERFORMANCE & ACCESSIBILITY OPTIMIZATIONS
   ============================================ */

/* 1. Font-display swap – prevents invisible text during font load */
@font-face {
  font-display: swap;
}

/* 2. Improve body text contrast for accessibility */
body, p, li, span, div {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3. Ensure sufficient text contrast on dark backgrounds */
.body-copy p,
.body-copy li,
.body-copy span,
.content p,
.content li {
  color: #d8d8d8;
}

/* 4. Lazy-load images with smooth fade-in */
img {
  content-visibility: auto;
}

/* 5. Improve tap targets on mobile for better usability */
@media (max-width: 600px) {
  a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* 6. Reduce layout shift by reserving image space */
img {
  height: auto;
  max-width: 100%;
}

/* 7. Smooth image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}


/* Hide image captions sitewide (used as alt text only) */
.caption,
figure figcaption,
.gallery_image_caption {
  display: none;
}
iframe {
  border-radius: 22px;
  overflow: hidden;
}
