:root {
  --nav-height: 64;
  --nav-height-lg: 108;
  --page-lg-width: 1680;
  --page-width: 375;
}

/**
 TODO: change `--page-lg-width` usage to `--page-width` and then remove
 variable after deprecated.
*/
@media only screen and (min-width: 768px) {
  :root {
    --page-width: var(--page-lg-width);
  }
}

/* TODO: move to defaults and globals files */
* {
  border: 0;
  margin: 0;
}

html {
  background-color: var(--color-light);
  color: var(--color-dark);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body,
button,
input,
select,
textarea {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
}

html {
  /* Same as `.t3` */
  font-size: calc(14 * 100vw / var(--page-width));
  letter-spacing: 0;
  line-height: 1.25;
}

@media only screen and (min-width: 768px) {
  html {
    font-size: calc(18 * 100vw / var(--page-lg-width));
    line-height: 1.4;
  }
}

h1,
h2 {
  font-weight: normal;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin-bottom: calc(14 * 100vw / var(--page-width));
}

@media only screen and (min-width: 768px) {
  h1,
  h2,
  h3,
  h4,
  p,
  ul {
    margin-bottom: calc(16 * 100vw / var(--page-lg-width));
  }
}

.lowercase {
  text-transform: lowercase;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.no-underline {
  text-decoration-line: none;
}

.break-word {
  word-break: break-word;
}

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

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

@media only screen and (min-width: 768px) {
  .lg\:text-left {
    text-align: left;
  }
}

/* Flex */
.self-start {
  align-self: flex-start;
}

.self-end {
  align-self: flex-end;
}

.self-center {
  align-self: center;
}

/* Visibility */
.invisible {
  display: none;
  visibility: hidden;
}

@media only screen and (min-width: 768px) {
  /* Overwrites conflicts with rules such as image parallax */
  .lg\:invisible {
    display: none !important;
    visibility: hidden;
  }
}

@media only screen and (min-width: 768px) {
  .lg\:visible {
    display: block;
    visibility: visible;
  }
}

/*
 * Text
 */

.label {
  font-size: calc(14 * 100vw / var(--page-width));
  letter-spacing: calc(1.2 * 100vw / var(--page-width));
  line-height: 1;
  text-transform: uppercase;
}

@media only screen and (min-width: 768px) {
  .label {
    font-size: calc(18 * 100vw / var(--page-width));
    letter-spacing: calc(1.8 * 100vw / var(--page-width));
  }
}

/* Image Protection */
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* PAGES */
#main {
  min-height: 100vh;
  /* Set position and index in order to overlap sticky footer. */
  position: relative;
  z-index: 1;
}

/* Copy CTA */

[data-email] {
  background-color: transparent;
  cursor: pointer;
  display: block;
  padding: 0;
}

footer [data-email] {
  display: inline-block;
  font-size: inherit;
}

/* Global Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.active {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
#lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}
#lightbox-close:hover {
  opacity: 1;
}

/* Enable pointer events on zoomable images */
.artist-portrait-img,
.cs-hero-bg,
.cs-gallery-item img {
  pointer-events: auto !important;
  cursor: zoom-in !important;
}

/* ==========================================================================
   FINE ART & CONTENT PROTECTION SUITE
   Anti-Theft, Anti-Screenshot, Watermarking & Selection Shielding
   ========================================================================== */

/* Prevent text, touch-callout & element selection across site */
body, img, picture, a, p, h1, h2, h3, h4, h5, span, div {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important; /* Disables iOS / Android long-press "Save Image" popup */
  -webkit-tap-highlight-color: transparent !important;
}

/* Allow selection inside forms / search inputs */
input, textarea {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
}

/* Prevent image dragging */
img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

/* Screen Capture / Focus Loss Protective Shield */
body.screen-shield-active img,
body.screen-shield-active picture,
body.screen-shield-active video,
body.screen-shield-active canvas,
body.screen-shield-active .case-study-asset,
body.screen-shield-active .details-main-image,
body.screen-shield-active #lightbox,
body.screen-shield-active .gallery-card,
body.screen-shield-active .work-card,
body.screen-shield-active .bio-hero-portrait-frame,
body.screen-shield-active .visualizer-stage {
  filter: blur(40px) brightness(0.2) !important;
  opacity: 0.05 !important;
  transition: filter 0.12s ease, opacity 0.12s ease !important;
}

/* Anti-Print Protection */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Ensure containers support absolute watermark */
.card-img-wrap,
.gallery-card,
.case-study-image-container,
.case-study-image-container-1,
.cs-gallery-item,
.introduction-image,
.bio-hero-portrait-frame {
  position: relative !important;
}

.artwork-watermark {
  position: absolute !important;
  bottom: 10px !important;
  right: 12px !important;
  color: rgba(255, 255, 255, 0.42) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(8px, 1.6vw, 10.5px) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 6 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.5) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  backdrop-filter: blur(2px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  line-height: 1.2 !important;
}

/* Lightbox Watermark */
#lightbox .lightbox-watermark {
  position: absolute !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: rgba(255, 255, 255, 0.38) !important;
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif !important;
  font-size: clamp(10px, 2vw, 13px) !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 10000 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
  white-space: nowrap !important;
  background: rgba(0, 0, 0, 0.4) !important;
  padding: 6px 16px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px) !important;
}
