@import url("https://fonts.cdnfonts.com/css/thegoodmonolith");
@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");

/* Lock scroll when the full-page gallery is active */
html.stl-gig-lock,
body.stl-gig-lock {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000;
}

/* Root takeover layer */
.stl-gig {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  color: #fff;
  overflow: hidden;
  z-index: 1;
  font-family: "PP Neue Montreal", sans-serif;
  -webkit-font-smoothing: antialiased;

  --spacing-base: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --color-text: #ffffff;
  --transition-medium: 0.3s ease;
  --font-size-base: 14px;
  --border-radius: 0px;
  --vignette-size: 0px;
  --hover-scale: 1.05;
  --page-vignette-size: 0px;
  --page-vignette-color: rgba(0, 0, 0, 0.9);
  --page-vignette-strong-size: 0px;
  --page-vignette-strong-color: rgba(0, 0, 0, 0.95);
  --page-vignette-extreme-size: 0px;
  --page-vignette-extreme-color: rgba(0, 0, 0, 1);
}

.stl-gig *,
.stl-gig *::before,
.stl-gig *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

/* Animated film-grain noise */
.stl-gig.stl-gig--noise::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: transparent url("https://assets.iceable.com/img/noise-transparent.png") repeat 0 0;
  background-size: 300px 300px;
  animation: stl-noise-animation 0.3s steps(5) infinite;
  opacity: 0.9;
  will-change: transform;
  z-index: 100;
  pointer-events: none;
}

@keyframes stl-noise-animation {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(-4%, 2%); }
  30%  { transform: translate(2%, -4%); }
  40%  { transform: translate(-2%, 5%); }
  50%  { transform: translate(-4%, 2%); }
  60%  { transform: translate(3%, 0); }
  70%  { transform: translate(0, 3%); }
  80%  { transform: translate(-3%, 0); }
  90%  { transform: translate(2%, 2%); }
  100% { transform: translate(1%, 0); }
}

/* Links */
.stl-gig a {
  position: relative;
  cursor: pointer;
  color: var(--color-text);
  display: inline-block;
  z-index: 1;
  text-decoration: none;
  font-size: var(--font-size-base);
  opacity: 1;
  transition: color var(--transition-medium);
  font-weight: 700;
}
.stl-gig a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-text);
  z-index: -1;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stl-gig a:hover::after { width: 100%; }
.stl-gig a:hover {
  color: #000;
  mix-blend-mode: difference;
  opacity: 1;
}

.stl-gig p {
  display: block;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01rem;
}
.stl-gig ul { list-style: none; }
.stl-gig h3 {
  font-size: 14px;
  margin-bottom: var(--spacing-base);
  font-weight: 600;
}

/* Header & Footer */
.stl-gig .header,
.stl-gig .footer {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 10000;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--spacing-base);
}
.stl-gig .header { top: 0; }
.stl-gig .footer { bottom: 0; }

.stl-gig .nav-section      { grid-column: 1 / span 3; }
.stl-gig .values-section   { grid-column: 5 / span 2; }
.stl-gig .location-section { grid-column: 7 / span 2; }
.stl-gig .contact-section  { grid-column: 9 / span 2; }
.stl-gig .social-section   { grid-column: 11 / span 2; text-align: right; }

.stl-gig .coordinates-section { grid-column: 1 / span 3; font-family: "TheGoodMonolith", monospace; }
.stl-gig .links-section {
  grid-column: 5 / span 4;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-base);
}
.stl-gig .info-section { grid-column: 9 / span 4; text-align: right; }
.stl-gig .footer p { font-family: "TheGoodMonolith", monospace; }

.stl-gig .key-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid var(--color-text);
  border-radius: 3px;
  font-size: 12px;
  margin: 0 3px;
  min-width: 20px;
  height: 20px;
}

/* Logo */
.stl-gig .logo-container {
  margin-bottom: var(--spacing-md);
  display: block;
  width: 3rem;
  height: 1.5rem;
  position: relative;
}
.stl-gig .logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stl-gig .logo-circles { position: relative; width: 100%; height: 100%; }
.stl-gig .circle {
  position: absolute;
  border-radius: 50%;
  transition: transform var(--transition-medium);
  width: 1.4rem;
  height: 1.4rem;
  background-color: var(--color-text);
  top: 50%;
}
.stl-gig .circle-1 { left: 0; transform: translate(0, -50%); }
.stl-gig .circle-2 { left: 0.8rem; transform: translate(0, -50%); mix-blend-mode: exclusion; }
.stl-gig .logo-container:hover .circle-1 { transform: translate(-0.5rem, -50%); }
.stl-gig .logo-container:hover .circle-2 { transform: translate(0.5rem, -50%); }

/* Draggable canvas */
.stl-gig .container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
}
.stl-gig .canvas { position: absolute; will-change: transform; }

.stl-gig .item {
  position: absolute;
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
  border-radius: var(--border-radius, 0px);
}
.stl-gig .item-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.stl-gig .item-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 var(--vignette-size, 0px) rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.stl-gig .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.3s ease;
}
.stl-gig .item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  transition: transform 0.3s ease;
  background: #000;
}
.stl-gig .item:hover img,
.stl-gig .item:hover video { transform: scale(var(--hover-scale, 1.05)); }

/* Cinematic color grade (toggleable) */
.stl-gig.stl-gig--cine .item img,
.stl-gig.stl-gig--cine .item video,
body.stl-gig-cine .expanded-item img,
body.stl-gig-cine .expanded-item video {
  filter: contrast(1.08) saturate(1.14) brightness(1.02);
}

.stl-gig .item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  z-index: 2;
}
.stl-gig .item-name {
  font-family: "PP Neue Montreal", sans-serif;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
  height: 16px;
}
.stl-gig .item-name .word { position: relative; display: inline-block; will-change: transform; }
.stl-gig .item-number {
  font-family: "TheGoodMonolith", monospace;
  color: #888;
  font-size: 10px;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  height: 14px;
}
.stl-gig .item-number .char { position: relative; display: inline-block; will-change: transform; }

/* Expanded view title */
.stl-gig .project-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 10002;
}
.stl-gig .project-title p {
  position: relative;
  height: 42px;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
}
.stl-gig .project-title p .word {
  position: relative;
  display: inline-block;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 36px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transform: translateY(0%);
  will-change: transform;
}

/* Expanded item + overlay (fixed to the viewport) */
.expanded-item {
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--border-radius, 0px);
}
.expanded-item img,
.expanded-item video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.stl-gig .overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
}
.stl-gig .overlay.active { pointer-events: auto; }

/* Page vignette */
.stl-gig .page-vignette-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}
.stl-gig .page-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 var(--page-vignette-size, 0px) var(--page-vignette-color, rgba(0,0,0,0.9));
}
.stl-gig .page-vignette-strong {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 var(--page-vignette-strong-size, 0px) var(--page-vignette-strong-color, rgba(0,0,0,0.95));
}
.stl-gig .page-vignette-extreme {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 var(--page-vignette-extreme-size, 0px) var(--page-vignette-extreme-color, rgba(0,0,0,1));
}

/* Caption clone (lives on <body> during expand animation) */
.caption-clone {
  position: fixed;
  z-index: 10002;
  padding: 10px;
  font-family: "PP Neue Montreal", sans-serif;
}
.caption-clone .item-name {
  color: #fff; font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: -0.03em; margin-bottom: 2px; overflow: hidden; height: 16px;
}
.caption-clone .item-number {
  font-family: "TheGoodMonolith", monospace; color: #888; font-size: 10px; overflow: hidden; height: 14px;
}
.caption-clone .word { display: inline-block; }

/* Tweakpane panel sits above everything when enabled */
.tp-dfwv { z-index: 10010 !important; }

/* Tablet / phone tweaks */
@media (max-width: 900px) {
  .stl-gig .values-section,
  .stl-gig .location-section,
  .stl-gig .contact-section { display: none; }
  .stl-gig .social-section { grid-column: 9 / span 4; }
  .stl-gig .coordinates-section { grid-column: 1 / span 6; }
  .stl-gig .links-section { display: none; }
  .stl-gig .info-section { grid-column: 7 / span 6; }
  .stl-gig .project-title p .word { font-size: 24px; }
}
