/* =========================================================
   1. THEME TOKENS
   ========================================================= */
:root {
  --background: #140d09;
  --secondary: #1f1510;
  --bodyTextColor: #d4c5b9;
  --bodyTextColorWhite: #fdf6ec;
  --primary: #d49833;
  --primaryLight: #f5c363;
  --heat: #e8823b;
  --heatGlow: rgba(232, 130, 59, 0.25);
  --cream: #fdf6ec;
  --border: #3d281c;

  --fontDisplay: 'Fraunces', serif;
  --fontBody: 'DM Sans', sans-serif;
  --fontMono: 'DM Mono', monospace;
}

/* =========================================================
   2. MAIN GLOBALS & RESETS
   ========================================================= */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--bodyTextColor);
  font-family: var(--fontBody);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

button {
  font-family: inherit; cursor: pointer; border: none; background: none; color: inherit;
}

input, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--fontDisplay);
  color: var(--bodyTextColorWhite);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
}

h1 { font-size: clamp(3rem, 11vw, 7.5rem); font-weight: 600; }
h2 { font-size: clamp(2.25rem, 6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { font-size: clamp(1rem, 1.6vw, 1.125rem); }
em { font-style: italic; color: var(--cream); }

.cs-container { width: 92%; max-width: 80rem; margin: 0 auto; }

.cs-label {
  font-family: var(--fontMono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--heat);
  display: inline-block;
}

/* Tighter vertical rhythm across all sections */
.cs-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0 !important;
  border-bottom: 1px solid var(--border);
}

.cs-button {
  display: inline-block;
  font-family: var(--fontMono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--background);
  background-color: var(--primary);
  padding: 1.1rem 2.5rem;
  border: 1px solid var(--primary);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.cs-button:hover {
  background-color: var(--primaryLight);
  border-color: var(--primaryLight);
  box-shadow: 0 0 28px var(--heatGlow);
}

.cs-button-ghost {
  display: inline-block;
  font-family: var(--fontMono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: transparent;
  padding: 1.1rem 2.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cs-button-ghost:hover { border-color: var(--heat); color: var(--cream); }

.cs-glow {
  color: var(--heat);
  text-shadow: 0 0 24px var(--heatGlow);
  font-style: italic;
}

.cs-grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--heat);
  outline-offset: 3px;
}

/* =========================================================
   3. SECTION SCOPED STYLES
   ========================================================= */
.cs-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.cs-skip {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 2000; background: #2a1206; color: #f4e9d6;
  font-family: var(--fontMono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.7rem 1.2rem; border: 2px dashed var(--heat);
  transition: transform 0.2s ease;
}
.cs-skip:focus { transform: translate(-50%, 0); }

/* ---------- Nav ---------- */
.cs-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4%; background-color: #0c0806; border-bottom: 2px solid #5a1e0c;
}
.cs-nav-logo { display: block; }
.cs-nav-logo img { height: 2.1rem; width: auto; }
.cs-nav-links { display: flex; gap: 2.2rem; align-items: center; }
.cs-nav-links a {
  font-family: var(--fontMono); font-size: 0.8rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream); transition: color 0.2s ease;
}
.cs-nav-links a:hover { color: var(--heat); }

.cs-mobile-close { display: none; }

.cs-nav-toggle {
  display: none; width: 2.5rem; height: 2.25rem; flex-shrink: 0; position: relative; z-index: 1100;
  background: #2a1206; border: 2px solid var(--heat); border-radius: 6px;
}
.cs-nav-toggle span {
  position: absolute; left: 0.45rem; right: 0.45rem; height: 2px;
  background-color: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
.cs-nav-toggle span:nth-child(1) { top: 0.65rem; }
.cs-nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.cs-nav-toggle span:nth-child(3) { bottom: 0.65rem; }
.cs-nav.cs-open .cs-nav-toggle span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.cs-nav.cs-open .cs-nav-toggle span:nth-child(2) { opacity: 0; }
.cs-nav.cs-open .cs-nav-toggle span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.cs-hero {
  position: relative; min-height: auto; display: flex; align-items: center;
  padding: clamp(6rem, 12vh, 8rem) 0 clamp(3.5rem, 8vw, 5rem) 0 !important;
  background-color: #DB7616; background-image: url("img/tex-bg.jpg");
  background-size: cover; background-position: center; overflow: hidden; border-bottom: 3px solid #2a1206;
}

.cs-demon-wrap {
  position: absolute; right: 12%; bottom: 8%; z-index: 0; pointer-events: none;
}
.cs-flamegraphic {
  display: block; width: clamp(320px, 42vw, 550px); height: auto;
  filter: drop-shadow(-4px 4px 0px #1a0a04) contrast(120%);
}

.cs-hero-paper {
  position: absolute; left: 0; right: 0; bottom: -65% !important;
  width: 100%; aspect-ratio: 1015 / 657; height: auto; z-index: 1; pointer-events: none;
}

.cs-hero-inner { position: relative; z-index: 3; width: 100%; padding-left: 5%; padding-right: 5%; }
.cs-hero .cs-label {
  color: #2a1206; font-family: var(--fontMono); font-weight: 700;
  background: rgba(255, 243, 224, 0.85); padding: 0.3rem 0.7rem; display: inline-block;
  border: 2px solid #2a1206; border-radius: 4px; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.15em; margin-bottom: 1rem;
}
.cs-hero h1 {
  margin: 0 0 1.25rem; max-width: 16ch; color: #1a0a04;
  font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 700; line-height: 1.05; font-family: var(--fontDisplay);
}
.cs-hero .cs-glow { color: #A43814; font-style: italic; }
.cs-hero-tagline { max-width: 42ch; color: #2a1206; margin-bottom: 2.25rem; font-weight: 500; font-size: 1.05rem; }

.cs-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-right: auto; margin-left: 0; }
@media (min-width: 48rem) { .cs-hero-cta { justify-content: flex-start; } }

.cs-hero .cs-button {
  background-color: #2a1206; border: 2px solid #2a1206; color: #f4e9d6;
  border-radius: 8px; box-shadow: 3px 3px 0px #A43814;
  font-family: var(--fontMono); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500;
  padding: 0.85rem 1.6rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cs-hero .cs-button:hover { background-color: #A43814; transform: translate(-2px, -2px); box-shadow: 5px 5px 0px #2a1206; }

.cs-button.cs-sparkle-btn {
  background-color: #2c160e !important; border: 3px dashed var(--heat) !important;
  font-weight: 700 !important; box-shadow: 4px 4px 0px #1a0a04 !important;
}
.cs-button.cs-sparkle-btn:hover {
  background-color: var(--heat) !important; border-style: solid !important;
  border-color: #2a1206 !important; transform: translate(-2px, -2px) !important; box-shadow: 6px 6px 0px #1a0a04 !important;
}

.cs-hero .cs-button-ghost {
  color: #2a1206; border: 2px solid #2a1206; border-radius: 8px;
  font-family: var(--fontMono); text-transform: uppercase; background: rgba(255,243,224,0.4);
  padding: 0.85rem 1.6rem; font-weight: 500; transition: background-color 0.15s ease;
}
.cs-hero .cs-button-ghost:hover { background-color: #2a1206; color: #f4e9d6; }

/* ---------- Services Grid ---------- */
.cs-services { border-top: 1px solid var(--border); position: relative; overflow: hidden; padding-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
.cs-services > .cs-container { position: relative; z-index: 1; }
.cs-services-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem; }
.cs-service {
  padding: clamp(1.5rem, 3vw, 2.25rem); border: 2px solid #5a2e18; border-radius: 12px;
  box-shadow: 4px 4px 0px #2a1206; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cs-service:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px var(--heat); }

.cs-toast-1 { background-color: #261f18; }
.cs-toast-2 { background-color: #201a13; }
.cs-toast-3 { background-color: #1a140f; }
.cs-toast-4 { background-color: #140e0a; }

.cs-service h3 { margin-bottom: 0.5rem; font-family: var(--fontDisplay); color: var(--cream); font-size: 1.4rem; }

/* ---------- FAQ / Cost Strip ---------- */
.cs-faq { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
.cs-faq-item { background: var(--secondary); padding: clamp(1.25rem, 2.5vw, 2rem); border: 2px solid var(--border); border-radius: 10px; box-shadow: 3px 3px 0px rgba(0,0,0,0.4); }
.cs-faq-item h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; color: var(--bodyTextColorWhite); font-family: var(--fontDisplay); }

/* ---------- Producers ---------- */
.cs-engineers {
  background: #1b1410; border: 2px dashed #7a321a; border-radius: 12px; padding: 1.25rem; margin-top: 1.25rem;
}
.cs-engineers .cs-label { margin-bottom: 0.8rem; color: var(--heat); font-weight: 700; }
.cs-eng { display: flex; align-items: center; gap: 0.85rem; padding: 0.25rem 0; }
.cs-eng-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--heat); }
.cs-eng-name { font-family: var(--fontDisplay); font-size: 1.3rem; color: var(--bodyTextColorWhite); }
.cs-engineers p { margin-top: 0.5rem; font-size: 0.9rem; }

/* ---------- Releases ---------- */
.cs-work { border-top: 1px solid var(--border); }
.cs-releases-wrapper { margin-top: 1.25rem; }
.cs-releases-embed { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 48rem) { .cs-releases-embed { grid-template-columns: repeat(2, 1fr); } }

.cs-release-embed-card {
  background: var(--secondary); border: 2px solid #5a2e18; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; position: relative;
  box-shadow: 4px 4px 0px #1a0a04;
}
.cs-release-embed-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cs-catalog-accordion { margin-top: 1.25rem; }
.cs-catalog-toggle {
  width: 100%; background-color: #221812; border: 2px solid var(--heat); padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--fontMono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); cursor: pointer; border-radius: 8px; font-weight: 700;
  box-shadow: 3px 3px 0px #1a0a04; transition: background-color 0.2s ease, color 0.2s ease;
}
.cs-catalog-toggle:hover, .cs-catalog-toggle.cs-active { background-color: var(--heat); color: #fff; }
.cs-chevron { width: 1.1rem; height: 1.1rem; transition: transform 0.3s ease; }
.cs-catalog-toggle.cs-active .cs-chevron { transform: rotate(180deg); }

.cs-releases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.85rem; margin-top: 0.85rem; }
.cs-releases-grid[hidden] { display: none; }
.cs-release-link-card {
  background-color: var(--secondary); border: 1px solid var(--border); padding: 0.85rem; border-radius: 6px;
  display: flex; flex-direction: column; justify-content: center; transition: border-color 0.2s ease, transform 0.2s ease;
}
.cs-release-link-card:hover { border-color: var(--heat); transform: translateY(-2px); box-shadow: 2px 2px 0px var(--heat); }
.cs-release-link-title { font-family: var(--fontDisplay); font-size: 1rem; color: var(--bodyTextColorWhite); }
.cs-release-link-artist {
  font-family: var(--fontMono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--heat); text-transform: uppercase; margin-top: 0.2rem; font-weight: 700;
}

/* ---------- Videos ---------- */
.cs-videos { border-top: 1px solid var(--border); background-color: #120c08; }
.cs-videos h2 { font-family: var(--fontDisplay); font-size: clamp(2rem, 5vw, 3.2rem); color: var(--cream); margin-top: 0.5rem; margin-bottom: 1.5rem; }
.cs-video-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 48rem) { .cs-video-grid { grid-template-columns: repeat(2, 1fr); } }

.cs-video-card { background: var(--secondary); border: 2px solid #5a2e18; border-radius: 12px; padding: 1.25rem; box-shadow: 4px 4px 0px #1a0a04; }
.cs-video-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 1rem; background: #000; }
.cs-video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-video-card h3 { font-family: var(--fontDisplay); font-size: 1.3rem; color: var(--cream); margin: 0; }

/* ---------- Booking ---------- */
.cs-contact { border-top: 1px solid var(--border); position: relative; overflow: hidden; padding-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
.cs-contact > .cs-container { position: relative; z-index: 1; }
.cs-booking-lead { max-width: 44ch; margin-bottom: 1.25rem; font-size: 0.95rem; }
.cs-booking-lead strong { color: var(--heat); }

.cs-eng-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.cs-eng-tab {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1rem 0.5rem 0.5rem;
  background-color: var(--secondary); border: 2px solid var(--border); color: var(--bodyTextColor);
  font-family: var(--fontMono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 8px; box-shadow: 2px 2px 0px #1a0a04; cursor: pointer; font-weight: 400;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.cs-eng-tab img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; filter: grayscale(1); opacity: 0.7; }
.cs-eng-tab:hover { border-color: var(--heat); color: var(--bodyTextColorWhite); }
.cs-eng-tab[aria-selected="true"] {
  border-color: var(--heat); color: var(--bodyTextColorWhite); background-color: #2a150b; box-shadow: 3px 3px 0px var(--heat);
}
.cs-eng-tab[aria-selected="true"] img { filter: none; opacity: 1; }

/* Strong CTA Highlights ONLY for Free Artist Chat */
.cs-eng-tab:has(img[src*="tea-cup"]) {
  border-style: dashed;
  border-color: var(--heat);
  background-color: #22140e;
  font-weight: 700;
}

.cs-eng-tab:has(img[src*="tea-cup"])[aria-selected="true"] {
  background-color: var(--heat);
  border-style: solid;
  border-color: var(--border);
  font-weight: 700;
}

.cs-eng-tab:has(img[src*="tea-cup"]) img {
  filter: none;
  opacity: 0.9;
}

.cs-cal-frame { width: 100%; background-color: var(--secondary); border: 2px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.cs-cal-frame iframe { display: none; width: 100%; height: 680px; border: 0; background-color: transparent; }
.cs-cal-frame iframe.cs-active { display: block; }
.cs-cal-fallback { margin-top: 0.75rem; font-family: var(--fontMono); font-size: 0.75rem; color: var(--bodyTextColor); }
.cs-cal-fallback a { color: var(--heat); }

/* ---------- Flames & Footer ---------- */
.cs-secflames { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(70px, 10vw, 130px) !important; z-index: 0; pointer-events: none; }
.cs-contact .cs-secflames { height: clamp(120px, 15vw, 200px) !important; }

.cs-footer { border-top: 2px solid var(--heat); padding: 2.5rem 0; background-color: #0c0806; }
.cs-footer-inner { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; justify-content: space-between; }
.cs-footer-logo img { height: 1.4rem; width: auto; }
.cs-footer small { font-family: var(--fontMono); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--bodyTextColor); text-transform: uppercase; }

/* ---------- Responsive Layout Breakpoints ---------- */
@media (min-width: 48rem) {
  .cs-services-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-faq { grid-template-columns: 1fr; }
  .cs-footer-inner { flex-direction: row; align-items: center; }
}
@media (min-width: 64rem) {
  .cs-services-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 47.99rem) {
  .cs-nav-toggle { display: block; }
  .cs-nav .cs-nav-links {
    position: fixed !important; inset: 0 !important; z-index: 99999 !important;
    flex-direction: column !important; justify-content: center !important; align-items: center !important;
    gap: 2.5rem !important; background: #080503 !important; opacity: 1 !important; visibility: hidden;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1), visibility 0.35s ease;
  }
  .cs-nav.cs-open .cs-nav-links { visibility: visible; transform: translateX(0); }
  .cs-mobile-close {
    display: block !important; position: absolute; top: 1.5rem; right: 1.5rem;
    background: transparent; border: none; color: var(--cream); font-size: 2.5rem; line-height: 1;
    cursor: pointer; font-family: var(--fontMono); transition: color 0.2s ease;
  }
  .cs-mobile-close:hover { color: var(--heat); }
  .cs-nav-links a { font-size: 1.3rem !important; font-family: var(--fontDisplay) !important; letter-spacing: 0.1em !important; color: #f4e9d6 !important; }
  .cs-hero-cta { justify-content: center; width: 100%; }
  .cs-hero-cta a { width: 100%; text-align: center; }
  .cs-eng-tabs { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
  .cs-eng-tab { width: 100%; justify-content: flex-start; padding: 0.55rem; font-size: 0.75rem; font-weight: 400; }
  .cs-eng-tab img { width: 1.9rem; height: 1.9rem; }
  .cs-demon-wrap { display: none !important; }
  .cs-hero-paper { bottom: -30% !important; transform: scale(1) !important; }
}