@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
  /* Core Hues */
  --c-yellow: #F9B934;
  --c-red: #AE2226;
  --c-green: #308964;

  /* Structural & Negative Space */
  --c-blue: #BAE8FF;
  --c-black: #3A2218;
  --c-offwhite: #FEFCFC;

  --p-padding: clamp(20px, 4vw, 30px) clamp(30px, 6vw, 60px);
}

@property --r-offset {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--c-blue);
  background-attachment: fixed;
  background-position: center center;
  font-family: 'Anton', sans-serif;
  color: var(--c-black);
  text-transform: uppercase;
  overflow-x: hidden;
  line-height: 1.0;
}

.rings-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -3;
  pointer-events: none;
  background-image: radial-gradient(
    circle at center,
    var(--c-offwhite) 0%,
    transparent 70%
  );
}

/* Base typographic defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6, p, a {
  margin: 0;
  text-transform: uppercase;
  text-decoration: none;
}


/* The physical sticker look for blocks that float */
.brutal-card {
  padding: var(--p-padding);
  border-radius: 0;
  display: inline-block;
}

/* Geometric Clips */
.clip-1 { clip-path: polygon(2% 3%, 98% 0%, 100% 97%, 0% 100%); }
.clip-2 { clip-path: polygon(0% 1%, 100% 2%, 98% 99%, 1% 100%); }
.clip-3 { clip-path: polygon(2% 0%, 98% 1%, 99% 100%, 0% 98%); }
.clip-4 { clip-path: polygon(0% 2%, 99% -1%, 100% 98%, 1% 100%); }

/* Analog Rotations */
.rot-left { transform: rotate(-2deg); }
.rot-right { transform: rotate(1.5deg); }
.rot-heavy-left { transform: rotate(-4deg); }
.rot-heavy-right { transform: rotate(3.5deg); }

.stage-card {
    transition: box-shadow 0.15s ease-out, translate 0.15s ease-out;
    cursor: pointer;
}
.stage-card:hover {
    box-shadow: 0px 0px 0px var(--c-black);
    translate: -10px 10px;
}

/* Ambient Shadows */
/* Using filter: drop-shadow so it tightly hugs clipped paths */
.shadow-heavy { filter: drop-shadow(-12px 12px 0px var(--c-black)); }
.drop-shadow { filter: drop-shadow(-12px 12px 0px var(--c-black)); filter: drop-shadow(-12px 12px 0px rgba(0,0,0,0.8)); }

.shadow-huge { filter: drop-shadow(-25px 25px 0px var(--c-black)); }

.shadow-yellow { filter: drop-shadow(-10px 10px 0px var(--c-yellow)); }

/* Solid box shadows for non-clipped rectangles */
.box-shadow { box-shadow: -10px 10px 0px var(--c-black); }
.box-shadow-yellow { box-shadow: -8px 8px 0px var(--c-yellow); }

/* Tactile Hover Animation for buttons and links */
a.shadow-heavy, button.shadow-heavy, a.shadow-yellow, button.shadow-yellow, a.box-shadow, a.box-shadow-yellow {
    transition: filter 0.15s ease-out, box-shadow 0.15s ease-out, translate 0.15s ease-out;
}

a.shadow-heavy:hover, button.shadow-heavy:hover {
    filter: drop-shadow(0px 0px 0px var(--c-black));
    translate: -12px 12px;
}

a.box-shadow:hover {
    box-shadow: 0px 0px 0px var(--c-black);
    translate: -10px 10px;
}

a.box-shadow-yellow:hover {
    box-shadow: 0px 0px 0px var(--c-yellow);
    translate: -8px 8px;
}

a.shadow-yellow:hover, button.shadow-yellow:hover {
    filter: drop-shadow(0px 0px 0px var(--c-yellow));
    translate: -10px 10px;
}

/* Color overrides for stickers */
.bg-yellow { background-color: var(--c-yellow); color: var(--c-black); }
.bg-red { background-color: var(--c-red); color: var(--c-offwhite); }
.bg-green { background-color: var(--c-green); color: var(--c-offwhite); }
.bg-black { background-color: var(--c-black); color: var(--c-offwhite); }
.bg-offwhite { background-color: var(--c-offwhite); color: var(--c-black); }

/* Sunburst Hero Wrapper */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
}

/* The SVG burst absolute centered */
.sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 150vw;
  max-width: 1500px;
  max-height: 1500px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  /* Make a circular hole in the center via mask for the sunburst. SVG might handle it naturally if defined in vector, but let's ensure it has an absolute layout context */
}

/* Typography Scale */
.text-giant { font-size: clamp(4rem, 10vw, 8rem); line-height: 0.9; }
.text-xl { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.95; }
.text-lg { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1; }
.text-md { font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.1; font-family: 'Anton', sans-serif;}



/* Sections */
.section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) 5%; /* Responsive vertical padding for more/less breathing room based on scale. 5% global horizontal bounding */
  gap: clamp(40px, 8vw, 60px); /* Responsive gap */
}

/* Specialized block layout for line-ups or tickets */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 5vw, 40px);
  width: 100%;
}

.ticket-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.ticket-card a {
  display: inline-block;
  margin-top: 20px;
}

.artist-card {
  border: 4px solid var(--c-black);
  box-shadow: -8px 8px 0px var(--c-black);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.artist-card:hover {
  transform: rotate(3deg) scale(1.02);
  box-shadow: -14px 14px 0px var(--c-black);
  z-index: 10;
  position: relative;
}

/* Scroll Fade Animation */
.scroll-fade {
  opacity: 0.5;
  transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-fade.visible {
  opacity: 1;
}

.hero-logo {
  max-width: 600px;
  width: 90%;
  height: auto;
  margin-bottom: 20px;
}

.breathe-target {
  /* JS will apply transform: scale() here */
  transform-origin: center center;
  will-change: transform;
}

.stacked-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Give breathing room instead of overlap */
}

.overlap-up { position: relative; z-index: 2; }
.overlap-down { position: relative; z-index: 1; }

/* ======== Brutalist Modal ======== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--c-black); /* Remove the blue page background fully behind the modal */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 550px;
  max-height: 98vh;
  overflow-y: auto;
  border: 4px solid var(--c-black);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  width: 40px;
  height: 40px;
  background-color: var(--c-offwhite);
  border: 3px solid var(--c-black);
  color: var(--c-black);
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--c-black);
  transition: translate 0.1s ease, box-shadow 0.1s ease;
  padding: 0;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
  width: 12px;
}
.modal-content::-webkit-scrollbar-track {
  background: var(--c-blue);
  border-left: 3px solid var(--c-black);
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--c-offwhite);
  border: 3px solid var(--c-black);
}

/* Stagger layouts for desktop */
@media (min-width: 1200px) {
  /* Up/down stagger for Live Acts and Reels while keeping their natural height */
  .artist-card, #reels-grid > div { align-self: start; }
  .artist-card:nth-child(even), #reels-grid > div:nth-child(even) { margin-top: 40px; }
}

@media (min-width: 800px) {
  /* Stagger the second stage card slightly lower */
  .stage-card:nth-child(2) { margin-top: 40px; }
}

/* ======== Hero Responsive Layout ======== */
.hero-content-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    text-align: center;
    z-index: 10;
}

.hero-mobile-tags {
    display: none;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-family: 'Anton', sans-serif;
    color: var(--c-black);
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 1px 1px 0px var(--c-offwhite);
}

.hero-date-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: clamp(1.1rem, 2.2vw, 1.8rem);
    color: var(--c-black);
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    text-align: center;
}

/* Base Desktop Order */
.hero-logo-img { order: 1; width: 80%; max-width: 450px; margin-bottom: 20px; z-index: 20; position: relative; }
.hero-date-info { order: 2; margin-bottom: 30px; z-index: 19; position: relative; }
.hero-mobile-tags { order: 3; margin-bottom: 25px; }
.hero-cta-btn { order: 4; margin-bottom: 0px; }

#hero-spin-wrapper {
    position: absolute;
    width: 220vmax;
    height: 220vmax;
    top: 50%; left: 50%;
    z-index: -2;
}

/* Widescreen Desktop Tweaks */
@media (min-width: 1400px) {
    #hero-spin-wrapper {
        width: 200vmax;
        height: 200vmax;
        max-width: 3200px;
        max-height: 3200px;
    }
}

/* Tablet / Medium Desktop Overrides */
@media (max-width: 1180px) {
    .hero-logo-img {
        max-width: 310px !important;
    }
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .ray-label {
        display: none !important;
    }
    
    #hero-spin-wrapper {
        width: 320vmax;
        height: 320vmax;
    }
    
    .hero-date-info {
        order: 1; /* Date info ABOVE logo */
        margin-bottom: 20px;
        font-size: 1.25rem !important; /* Unified text size */
    }
    
    .hero-logo-img {
        order: 2; /* Logo */
        width: 65%; /* Reduce size of jammin logo */
        max-width: 280px;
        margin-bottom: 20px;
    }

    .hero-mobile-tags {
        display: block;
        order: 3;
        margin-bottom: 30px;
        font-size: 1.25rem !important; /* Match info text size exactly */
    }
    
    .hero-cta-btn {
        padding: 12px 35px !important;
        font-size: 1.2rem !important;
    }
}


/* Accessibility Focus States */
:focus-visible {
  outline: 4px solid var(--c-yellow);
  outline-offset: 4px;
}
a:focus-visible, button:focus-visible {
  outline: 4px solid var(--c-black);
  outline-offset: 4px;
}

/* ---------------------------------
   Brutalist Macros & Utilities 
---------------------------------- */

.font-anton { font-family: 'Anton', sans-serif; }
.font-body { font-family: sans-serif; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* Fluid Typography */
.text-clamp-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.text-clamp-hero { font-size: clamp(1.4rem, 4.5vw, 4rem); line-height: 1.45; }
.text-clamp-burst { font-size: clamp(0.9rem, 2.2vw, 1.8rem); line-height: 1; }
.text-body-md { font-size: 1.1rem; line-height: 1.35; font-weight: 500; }
.live-act-copy { font-size: 1rem; opacity: 0.8; margin-top: 5px; color: var(--c-black); text-transform: none; line-height: 1.4; padding: 0 20px; text-align: center; }

/* Spacing & Layout */
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; box-sizing: border-box; }
.max-w-m { max-width: 600px; }
.max-w-xl { max-width: 1100px; }
.max-w-2xl { max-width: 1600px; }

.pt-hero { padding-top: 80px; padding-bottom: 20px; }
.p-clamp { padding: clamp(20px, 5vw, 40px); }
.pb-lg { padding-bottom: 40px; }
.pb-md { padding-bottom: 30px; }
.px-md { padding-left: 30px; padding-right: 30px; }
.mt-md { margin-top: 25px; }
.mt-lg { margin-top: 30px; }
.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 25px; }
.text-offwhite { color: var(--c-offwhite); }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 5vw, 40px);
}

@media (max-width: 1350px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

/* Image Macros */
.card-img { width: 100%; object-fit: cover; display: block; }
.img-3-2 { aspect-ratio: 3/2; }
.img-16-9 { aspect-ratio: 16/9; }

/* Interactive Components */
.brutal-badge {
  display: inline-block;
  background-color: var(--c-yellow);
  border: 2px solid var(--c-black);
  padding: 4px 10px;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--c-black);
  box-shadow: 3px 3px 0 var(--c-black);
  line-height: 1;
}
.badge-lg { 
  border-width: 3px; 
  padding: 6px 14px; 
  font-size: 1.1rem; 
  box-shadow: 4px 4px 0 var(--c-black); 
}

.brutal-btn {
  display: inline-block;
  padding: 15px 50px;
  text-decoration: none;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-sm { padding: 12px 35px; }
.btn-lg { padding: 22px 65px; font-size: 1.8rem; }

/* Subtle Rotations */
.rot-right-subtle { transform: rotate(1deg); }
.rot-left-subtle { transform: rotate(-1deg); }
.rot-right-2 { transform: rotate(2deg); }
.rot-left-2 { transform: rotate(-2deg); }
.hover-underline:hover { text-decoration: underline !important; cursor: pointer; }
