/* ==========================================================
   Charles Strings — charlesstrings.org
   ========================================================== */

:root {
  --accent: #E5484D;          /* stage red — change here to re-theme */
  --accent-hover: #FF7A7E;
  --accent-glow: 229, 72, 77; /* same red as r,g,b for glows */

  --bg: #0E0C0B;
  --bg-2: #120F0D;
  --card: #16120F;
  --card-2: #1A1613;
  --line: #2A241F;
  --line-2: #3A322B;
  --line-3: #5A4F44;

  --ink: #F2EBDD;
  --ink-2: #C9BFB0;
  --ink-3: #A89F92;
  --ink-4: #8C8276;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", "Helvetica Neue", Helvetica, sans-serif;

  --pad-x: 80px;
  --nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; color: var(--accent); font-weight: 300; }
em.plain { color: inherit; }
.display { font-family: var(--display); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 999px; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-lg { padding: 18px 30px; font-size: 16px; min-height: 56px; }
.btn-solid { background: var(--accent); color: var(--bg); border: none; }
.btn-solid:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-3); color: var(--ink); font-weight: 500; background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }
.btn-outline { align-self: flex-start; padding: 16px 28px; border: 1px solid var(--accent); color: var(--accent); }
.btn-block { width: 100%; height: 58px; font-size: 17px; }

.navlink { position: relative; color: var(--ink); text-decoration: none; }
.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.navlink:hover { color: var(--ink); }
.navlink:hover::after { transform: scaleX(1); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 var(--pad-x);
  background: rgba(14, 12, 11, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo span { font-style: italic; font-weight: 300; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 40px; font-size: 15px; }
.nav-toggle { display: none; }

/* ---------- Common ---------- */
.section { padding: 160px var(--pad-x); }
.section-tight-top { padding-top: 40px; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 140px; padding-bottom: 140px; }
.eyebrow { font-size: 14px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.h2 { font-size: 64px; line-height: 1.02; font-weight: 300; letter-spacing: -.03em; }
.h2-xl { font-size: 72px; line-height: 1; font-weight: 300; letter-spacing: -.03em; }
.h2-xxl { font-size: 80px; line-height: .98; font-weight: 300; letter-spacing: -.03em; }
.body-lg { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head > div, .section-head-col { display: flex; flex-direction: column; gap: 16px; }
.section-head-col { max-width: 760px; }
.row { transition: background-color .3s ease; }
.row:hover { background-color: #1A1613; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 820px; display: flex; align-items: center; padding: 0 var(--pad-x); }
.hero-strings { position: absolute; inset: 0; width: 100%; height: 100%; animation-delay: .4s; }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 64px; width: 100%; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.hero-title { font-size: 150px; line-height: .9; font-weight: 600; letter-spacing: -.04em; }
.hero-title-accent { font-style: italic; font-weight: 300; color: var(--accent); }
.hero-lede { font-size: 21px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.record-wrap { position: relative; width: 460px; height: 460px; flex-shrink: 0; }
.record {
  width: 100%; height: 100%; border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #1A1614 0 2px, #0F0D0C 2px 5px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center;
}
.record-label {
  width: 37%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.record-label span { font-size: 22px; font-weight: 600; font-style: italic; }
.record-label small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.record-label i { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); margin-top: 6px; }
.note { position: absolute; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.note-muted { stroke: var(--ink-2); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; white-space: nowrap; }
.marquee-track span { font-size: 40px; font-style: italic; font-weight: 300; }
.marquee-track b { font-size: 40px; font-weight: 400; color: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: center; }
.portrait {
  position: relative; height: 620px; border-radius: 24px; overflow: hidden;
  background: var(--card-2); border: 1px solid var(--line);
}
.portrait > svg, .portrait > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-tag {
  position: absolute; left: 28px; bottom: 28px; display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 14px; background: rgba(14, 12, 11, .85); border: 1px solid var(--line-2);
  font-size: 14px; color: var(--ink-2);
}
.about-copy { display: flex; flex-direction: column; gap: 28px; }

.eq { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.eq span { width: 4px; height: 100%; background: var(--accent); border-radius: 2px; }
.eq-lg { height: 28px; }

/* ---------- Music ---------- */
.music { display: flex; flex-direction: column; gap: 56px; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 80px 1fr 200px 120px 72px; align-items: center; gap: 24px;
  padding: 28px 24px; border-bottom: 1px solid var(--line);
}
.track-num { font-size: 28px; font-style: italic; color: var(--ink-4); }
.track-info { display: flex; flex-direction: column; gap: 6px; }
.track-title { font-size: 22px; font-weight: 500; }
.track-meta { font-size: 14px; color: var(--ink-3); }
.track-status { display: flex; align-items: flex-end; gap: 10px; height: 28px; visibility: hidden; }
.track-status .now { font-size: 13px; color: var(--accent); align-self: center; }
.track.is-playing .track-status { visibility: visible; }
.track-time { font-size: 15px; color: var(--ink-3); text-align: right; }
.play {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-3); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.play:hover { transform: translateY(-3px); border-color: var(--accent); }
.play::before {
  content: ""; width: 18px; height: 18px; background: currentColor;
  clip-path: polygon(22% 8%, 92% 50%, 22% 92%);
}
.track.is-playing .play { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.track.is-playing .play::before {
  clip-path: polygon(18% 8%, 40% 8%, 40% 92%, 18% 92%, 18% 8%, 60% 8%, 82% 8%, 82% 92%, 60% 92%, 60% 8%);
}

/* ---------- Services ---------- */
.services { display: flex; flex-direction: column; gap: 64px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 20px; padding: 36px 30px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, background-color .35s ease;
}
.card:hover { transform: translateY(-8px); border-color: var(--accent); background-color: #1C1815; }
.card h3 { font-size: 28px; font-weight: 600; }
.card p { font-size: 16px; line-height: 1.65; color: var(--ink-3); }
.icon { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shows ---------- */
.shows { display: flex; flex-direction: column; gap: 48px; }
.show-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.show {
  display: grid; grid-template-columns: 160px 1fr 1fr 160px; align-items: center; gap: 24px;
  padding: 32px 24px; border-bottom: 1px solid var(--line);
}
.show-date { display: flex; flex-direction: column; }
.show-date span { font-size: 44px; font-weight: 600; line-height: 1; }
.show-date small { font-size: 13px; letter-spacing: .2em; color: var(--accent); }
.show-venue { font-size: 22px; font-weight: 500; }
.show-city { font-size: 17px; color: var(--ink-3); }
.show .btn { justify-self: end; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; }
.contact-copy { display: flex; flex-direction: column; gap: 28px; }
.contact-copy .body-lg { max-width: 460px; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.contact-lines span { color: var(--ink-3); }
.booking {
  display: flex; flex-direction: column; gap: 20px; padding: 44px; border-radius: 24px;
  border: 1px solid var(--line); background: var(--card);
}
.booking label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; color-scheme: dark;
  transition: border-color .25s ease;
}
textarea.field { height: auto; padding: 14px 16px; resize: vertical; }
.field:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-size: 15px; color: var(--ink-2); text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 72px var(--pad-x) 48px; display: flex; flex-direction: column; gap: 56px; overflow: hidden; }
.footer-mark { font-size: 190px; line-height: .85; font-weight: 600; letter-spacing: -.05em; color: #1F1A16; white-space: nowrap; }
.footer-mark span { font-style: italic; font-weight: 300; color: #3A1F1F; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 15px; color: var(--ink-3); flex-wrap: wrap; }
.socials { display: flex; gap: 32px; }

/* ==========================================================
   Animations
   ========================================================== */
@keyframes csRise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes csFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes csLetter { 0% { opacity: 0; transform: translateY(.6em) rotate(6deg); } 100% { opacity: 1; transform: none; } }
@keyframes csDrop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes csVibe { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-1.6px); } 75% { transform: translateY(1.6px); } }
@keyframes csPluck { from { stroke-dashoffset: 1700; } to { stroke-dashoffset: -1700; } }
@keyframes csSpin { to { transform: rotate(360deg); } }
@keyframes csEq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes csFloat { 0% { opacity: 0; transform: translateY(30px) rotate(-8deg); } 20% { opacity: .8; } 100% { opacity: 0; transform: translateY(-220px) rotate(12deg); } }
@keyframes csPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-glow), .45); } 50% { box-shadow: 0 0 0 14px rgba(var(--accent-glow), 0); } }
@keyframes csMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes csFlicker { 0%, 100% { opacity: .9; } 45% { opacity: 1; } 50% { opacity: .78; } 55% { opacity: .95; } }
@keyframes csHaze { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .7; } 100% { opacity: 0; transform: translate(24px, -160px); } }
@keyframes csSway { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }
@keyframes csStrum { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }

.cs-anim .cs-nav { animation: csDrop .9s cubic-bezier(.2, .8, .2, 1) both; }
.cs-anim .cs-letter { display: inline-block; animation: csLetter 1s cubic-bezier(.2, .9, .2, 1) both; }
.cs-anim .cs-rise { animation: csRise 1s cubic-bezier(.2, .8, .2, 1) both; }
.cs-anim .cs-fade { animation: csFade 1.6s ease both; }
.cs-anim .cs-string { animation: csVibe .18s linear infinite; }
.cs-anim .cs-spark { stroke-dasharray: 220 3200; animation: csPluck 5.5s cubic-bezier(.5, 0, .3, 1) infinite; }
.cs-anim .cs-vinyl { animation: csSpin 6s linear infinite; }
.cs-anim .cs-eq span { animation: csEq 1s ease-in-out infinite; transform-origin: bottom; }
.cs-anim .cs-note { animation: csFloat 7s ease-in infinite; }
.cs-anim .cs-pulse { animation: csPulse 2.4s ease-out infinite; }
.cs-anim .cs-track { animation: csMarquee 28s linear infinite; }
.cs-anim .cs-beam { animation: csFlicker 4s ease-in-out infinite; }
.cs-anim .cs-haze { animation: csHaze 6s ease-out infinite; }
.cs-anim .cs-player { animation: csSway 3.2s ease-in-out infinite; transform-origin: 300px 540px; transform-box: view-box; }
.cs-anim .cs-hand { animation: csStrum .55s ease-in-out infinite; transform-origin: 342px 300px; transform-box: view-box; }

/* Scroll reveals (JS adds .is-in when the element enters the screen) */
.js .cs-anim .cs-reveal, .js.cs-anim .cs-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .cs-anim .cs-reveal-slow, .js.cs-anim .cs-reveal-slow { opacity: 0; transition: opacity 1.6s ease; }
.js .cs-reveal.is-in, .js .cs-reveal-slow.is-in { opacity: 1 !important; transform: none !important; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1200px) {
  :root { --pad-x: 48px; }
  .hero-title { font-size: 120px; }
  .record-wrap { width: 380px; height: 380px; }
  .about, .contact { gap: 64px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-mark { font-size: 140px; }
}

@media (max-width: 900px) {
  :root { --pad-x: 24px; --nav-h: 68px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 48px; height: 48px; padding: 0 12px; background: none; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .3s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px var(--pad-x) 36px;
    background: var(--bg); border-bottom: 1px solid var(--line); font-size: 20px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .logo { font-size: 22px; }

  .section { padding-top: 96px; padding-bottom: 96px; }
  .section-tight-top { padding-top: 24px; }
  .band { padding-top: 96px; padding-bottom: 96px; }

  .hero { min-height: auto; padding-top: 56px; padding-bottom: 80px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 56px; }
  .hero-title { font-size: clamp(72px, 20vw, 110px); }
  .hero-lede { font-size: 18px; }
  .record-wrap { width: min(320px, 80vw); height: min(320px, 80vw); align-self: center; }
  .record-label span { font-size: 17px; }

  .marquee-track span, .marquee-track b { font-size: 28px; }
  .marquee-track { gap: 36px; }

  .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .portrait { height: 460px; }
  .h2 { font-size: 44px; }
  .h2-xl { font-size: 48px; }
  .h2-xxl { font-size: 52px; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .track { grid-template-columns: 40px 1fr auto 56px; gap: 14px; padding: 22px 8px; }
  .track-num { font-size: 20px; }
  .track-title { font-size: 18px; }
  .track-status { grid-column: 2 / 4; grid-row: 2; height: 22px; }
  .track-status:not(:only-child) { margin-top: -6px; }
  .track:not(.is-playing) .track-status { display: none; }
  .track-time { font-size: 14px; }
  .play { width: 48px; height: 48px; }

  .cards { grid-template-columns: 1fr; }

  .show { grid-template-columns: 72px 1fr; gap: 6px 16px; padding: 24px 8px; }
  .show-date { grid-row: 1 / 3; }
  .show-date span { font-size: 34px; }
  .show-venue { font-size: 19px; }
  .show-city { font-size: 15px; }
  .show .btn { grid-column: 2; justify-self: start; margin-top: 10px; }

  .booking { padding: 28px 22px; }
  .grid-2 { grid-template-columns: 1fr; }

  .footer-mark { font-size: 20vw; white-space: normal; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .socials { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cs-reveal, .cs-reveal-slow { opacity: 1 !important; transform: none !important; }
}
