/**
 * ============================
 * Base / Content
 * ============================
 */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "calmetta", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #fff;
  color: #000;
}

a {
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:active {
  opacity: 0.5;
}

.page a.active {
  opacity: 1;
}

b,
strong {
  font-weight: 700;
}

i,
em {
  font-family: "ivypresto-text", serif;
  font-weight: 300;
  font-style: italic;
}

sub,
sup {
  position: relative;
  vertical-align: baseline;
}

sub {
  top: 0.3em;
}

sup {
  top: -0.4em;
}

s {
  text-decoration: line-through;
}

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

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

hr {
  display: block;
  height: 1px;
  margin: 0 0 1.2rem;
  border: 0;
  background: #000;
}

.content img {
  margin-bottom: 0;
}

.gallery_image_caption {
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  font-family: "Favorit", Icons, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.3;
  text-align: center;
  color: rgba(155, 153, 153, 1);
}

/**
 * ============================
 * Loading Animation
 * ============================
 */

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

/**
 * ============================
 * Editor Styles
 * ============================
 */

[data-predefined-style="true"] bodycopy {
  font-family: "calmetta", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  color: #000;
}

[data-predefined-style="true"] bodycopy a {
  color: rgb(32, 0, 255);
  padding-bottom: 0;
  text-decoration: underline;
}

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

[data-predefined-style="true"] h1 {
  font-family: "calmetta", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  color: #000;
}

[data-predefined-style="true"] h1 a {
  color: #00c0ff;
  border-bottom: 0;
}

[data-predefined-style="true"] h2 {
  font-family: "calmetta", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  font-style: normal;
  line-height: 2.1rem;
  color: #000;
}

[data-predefined-style="true"] h2 a {
  color: #00c0ff;
  font-family: "field-gothic-xxcondensed", sans-serif;
  font-size: 6rem;
  font-weight: 800;
  font-style: normal;
}

[data-predefined-style="true"] small {
  font-size: 1rem;
  line-height: 1.3;
  color: #000;
	font-family: "Neue Haas Grotesk", Icons /*!null*/;
	font-style: normal;
	font-weight: 400;
}

[data-predefined-style="true"] small a {
  color: #00c0ff;
  border-bottom-width: 0;
  text-decoration: none;
}

/**
 * ============================
 * Cargo Presets
 * ============================
 */

[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 {
  width: 100%;
  height: auto;
  margin-left: auto /*!content_center*/;
  margin-right: auto /*!content_center*/;
  text-align: left /*!text_left*/;
}

[data-css-preset] body {
  background-color: #fff /*!body_bgcolor*/;
}

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

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

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

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

/**
 * ============================
 * Thumbnails
 * ============================
 */

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

[data-css-preset] .thumbnails {
  background-color: rgba(0, 0, 0, 0) /*!thumbnails_bgcolor*/;
}

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

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

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

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

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

.thumbnails .thumb_image {
  position: relative;
  overflow: hidden;
  outline: 0 solid rgba(0, 0, 0, 0.12);
  outline-offset: -1px;

  /* Uniform crop so every card is the same shape and rows line up.
     Change 3 / 2 to 4 / 3 for a slightly taller crop if you prefer. */
  aspect-ratio: 3 / 2;
}

.thumbnails .thumb_image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fill the uniform box, cropping overflow */
  object-position: center;
  transition: transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.thumbnails .thumb_image:hover img {
  transform: scale(1.015);
}

.thumbnails .title {
  margin-top: 0.9rem;
  margin-bottom: 0.3rem;
  font-family: "calmetta", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000;
}

.thumbnails .title a {
  color: inherit;
  text-decoration: none;
}

.thumbnails .tags {
  margin-top: 0.6rem;
  margin-bottom: 1.1rem;
  font-family: "calmetta", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.48);
}

.thumbnails .tags a {
  color: inherit;
  border-bottom: 0;
  text-decoration: none;
}

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

/**
 * ============================
 * Site Menu
 * ============================
 * Cargo shows/hides #site_menu_panel_container. We style THAT as the
 * overlay and never impose our own hidden default, so Cargo's toggle
 * keeps working and the menu can never get trapped closed.
 */

/* The panel Cargo actually opens/closes — make it the white overlay */
#site_menu_panel_container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

#site_menu {
  line-height: 2;
  width: auto;
}

#site_menu ul {
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

#site_menu ul li {
  padding: 0.55rem 0;
}

#site_menu ul li a {
  font-family: "calmetta", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

#site_menu ul li a:hover {
  opacity: 0.45;
}

/* Hamburger button (top-right) — matched to the black/white system */
[data-css-preset] #site_menu_button {
  position: fixed;
  top: 11px;
  right: 8px;
  z-index: 1000;
  padding: 10px 15px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

[data-css-preset] #site_menu_button:hover {
  opacity: 0.7;
}

/* Close button — was bright red; now neutral, above the panel */
#menu_close {
  position: fixed;
  top: 11px;
  right: 8px;
  z-index: 1001;
  display: block;
  padding: 10px 15px;
  border: none;
  background: none;
  color: #000;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#menu_close:hover {
  opacity: 0.45;
}

/* Legacy top-left toggle — restyled to match; safe to delete if unused */
#menu_toggle {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 10px 15px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}

/**
 * ============================
 * Quick View
 * ============================
 */

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

[data-css-preset] .quick-view {
  padding-top: 13.4rem /*!quick_view_padding*/;
  padding-bottom: 13.4rem /*!quick_view_padding*/;
  padding-left: 13.4rem /*!quick_view_padding*/;
  padding-right: 13.4rem /*!quick_view_padding*/;
}

/**
 * ============================
 * Vimeo Borders
 * ============================
 */

iframe[src*="vimeo.com"],
iframe[data-vimeo],
.vimeo,
.video iframe,
.embed iframe {
  border: 1px solid #000;
  box-sizing: border-box;
}

/**
 * ============================
 * Homepage Hero
 * ============================
 */

.hero-title {
  max-width: 58rem;
  margin: 0;
  font-family: "calmetta", sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #000;

  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 0.15s;
}

.hero-subtitle {
  margin-top: 1.25rem;
  margin-bottom: 5rem;
  font-family: "calmetta", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);

  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.8s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/**
 * ============================
 * Responsive
 * ============================
 */

@media (max-width: 700px) {
  [data-css-preset] .content_padding {
    padding-top: 4rem /*!main_margin*/;
    padding-bottom: 3rem /*!main_margin*/;
    padding-left: 1.5rem /*!main_margin*/;
    padding-right: 1.5rem /*!main_margin*/;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.12;
  }

  .hero-subtitle {
    margin-bottom: 3rem;
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.13em;
  }

  .thumbnails .title {
    font-size: 1.3rem;
  }

  .thumbnails .tags {
    font-size: 0.9rem;
  }

  /* Slightly smaller nav links on small screens */
  #site_menu ul li a {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-title,
  .hero-subtitle {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .thumbnails .thumb_image img {
    transition: none;
  }
}

/* ============================
   Footer
============================ */

.portfolio-footer {
  margin-top: 1rem;
  margin-bottom: 4rem;
}

.portfolio-footer h2 {
  font-size: 2.2rem;
  font-weight: 500;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: #e8e8e8;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  padding: 4rem 0;
}

.footer-left {
  max-width: 40rem;
}

.footer-left h3 {
  margin: 0 0 .8rem;
  font-family: "calmetta", sans-serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.footer-left p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, .55);
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}

.footer-right a {
  color: #000;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity .25s ease;
}

.footer-right a:hover {
  opacity: .45;
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-right {
    text-align: left;
  }
}