/* ============================================================
   AnishOnGuitars — styles
   ============================================================ */

:root {
  --bg: #0b0b0f;
  --bg-2: #101017;
  --surface: #16161f;
  --surface-2: #1c1c28;
  --text: #f4f4f6;
  --muted: #a2a2b0;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #ff5a3c;      /* warm ember */
  --accent-2: #ffb648;    /* gold */
  --radius: 16px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Scroll progress + cursor glow ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200; transition: width 0.1s linear;
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px;
  margin: -210px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,60,0.16), transparent 60%);
  pointer-events: none; z-index: 1; transition: opacity 0.4s; opacity: 0;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 48px);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
/* Blur lives on a pseudo-element, NOT on .nav itself — otherwise .nav would
   become the containing block for the fixed mobile menu and clip it. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled { padding-top: 12px; padding-bottom: 12px; }
.brand-mark { font-weight: 600; letter-spacing: 0.3px; font-size: 1.05rem; }
.brand-mark b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--muted); font-size: 0.92rem; font-weight: 500; position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(18px, 5vw, 48px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -8% 0 -8% 0; z-index: 0;
  /* image layered over a gradient — if the photo is missing, the gradient shows */
  background:
    url("../img/anish-hero.jpg") center 22% / cover no-repeat,
    radial-gradient(120% 90% at 72% 8%, #3a1d2b, #0b0b0f 68%);
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,11,15,0.92) 0%, rgba(11,11,15,0.55) 45%, rgba(11,11,15,0.25) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(11,11,15,0.1) 40%);
}
.hero-inner { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: 0.42em; font-size: 0.72rem;
  color: var(--accent-2); font-weight: 600; margin-bottom: 18px;
}
.hero-title {
  font-family: "Anton", sans-serif; font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 9.5rem); line-height: 0.92;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.hero-title .line { display: block; }
.hero-title b { color: var(--accent); font-weight: 400; }
.hero-sub { margin-top: 22px; max-width: 520px; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.2rem); }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint span {
  width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollpulse 1.8s var(--ease) infinite;
}
@keyframes scrollpulse { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* grain */
.grain {
  position: absolute; inset: 0; z-index: 2; opacity: 0.05; pointer-events: none;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  border: 1px solid transparent; cursor: pointer;
}
.btn.small { padding: 10px 20px; font-size: 0.86rem; margin-top: 18px; }
.btn-primary { background: var(--accent); color: #1a0a06; }
.btn-primary:hover { transform: translateY(-3px); background: #ff6f54; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; }
.mq-group { display: flex; gap: 30px; align-items: center; padding-right: 30px; }
.mq-group > span { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(1.1rem, 3vw, 1.7rem); color: var(--muted); letter-spacing: 0.06em; }
.mq-group > span:nth-child(2n) { color: var(--accent); } /* the bullets */
@keyframes marquee { to { transform: translateX(-50%); } } /* shifts by exactly 2 of the 4 groups → seamless */
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 130px) clamp(18px, 5vw, 48px); max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--bg-2); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { max-width: 620px; margin-bottom: 48px; }
/* In full-width (alt) sections, keep the heading flush-left with the content
   column instead of being re-centered as its own 620px box. */
.section-alt > .section-head { max-width: var(--maxw); }
.section-alt > .section-head .section-lead { max-width: 620px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.72rem; color: var(--accent-2); font-weight: 600; }
.section-title { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; margin: 12px 0 14px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Stream cards ---------- */
.stream-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.stream-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.stream-card:hover { transform: translateY(-6px); border-color: rgba(255,90,60,0.4); }
.stream-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.stream-card-head h3 { font-size: 1.15rem; font-weight: 600; }
.pill { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); padding: 6px 14px; border-radius: 100px; transition: 0.25s; }
.pill:hover { color: var(--accent); border-color: var(--accent); }
.embed iframe { display: block; }

/* ---------- YouTube grids ---------- */
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .yt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .yt-grid { grid-template-columns: 1fr; } }
.yt-loading, .yt-error { color: var(--muted); grid-column: 1 / -1; padding: 30px 0; }
.yt-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s; display: block;
}
.yt-card:hover { transform: translateY(-6px); border-color: rgba(255,90,60,0.45); }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.yt-card:hover .yt-thumb img { transform: scale(1.07); }
.yt-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.15); transition: background 0.3s;
}
.yt-card:hover .yt-play { background: rgba(0,0,0,0.35); }
.yt-play::after {
  content: ""; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,0,0,0.92);
  clip-path: polygon(38% 30%, 38% 70%, 70% 50%);
  background-clip: padding-box;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transform: scale(0.9); transition: transform 0.3s var(--ease);
}
.yt-card:hover .yt-play::after { transform: scale(1); }
.yt-meta { padding: 14px 16px 18px; }
.yt-title { font-size: 0.96rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-date { color: var(--muted); font-size: 0.78rem; margin-top: 8px; }

/* last-resort fallback panel */
.yt-fallback {
  grid-column: 1 / -1; text-align: center;
  padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.yt-fallback-title { color: var(--muted); margin-bottom: 20px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.about-photo { position: relative; aspect-ratio: 4/5; }
.about-photo-inner {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  background:
    url("../img/anish-about.jpg") center 25% / cover no-repeat,
    linear-gradient(135deg, #2a1c22, var(--surface-2));
  will-change: transform;
}
.about-photo-frame { position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); border-radius: var(--radius); z-index: -1; opacity: 0.6; }
.about-text p { color: var(--muted); margin-top: 16px; }
.about-text p strong { color: var(--text); }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about-tags span { font-size: 0.82rem; color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 7px 15px; border-radius: 100px; }

/* ---------- Connect ---------- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.link-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.35s var(--ease);
}
.link-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.link-card:hover::before { transform: scaleY(1); }
.link-ic {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--c) 20%, transparent);
  color: var(--c); font-size: 1.1rem; font-weight: 700;
}
.link-name { font-weight: 600; flex: 1; }
.link-go { color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s; }
.link-card:hover .link-go { transform: translate(3px, -3px); color: var(--c); }

/* ---------- Singles / cover-art gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.gallery-item {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px;
  background: linear-gradient(135deg, #241a20, var(--surface-2));
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 860px)  { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 560px)  { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px clamp(18px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg-2); }
.footer-brand { font-family: "Anton", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.3rem; }
.footer-brand b { color: var(--accent); }
.footer-note { color: var(--muted); font-size: 0.86rem; }
.footer-top { color: var(--muted); font-size: 0.86rem; transition: color 0.25s; }
.footer-top:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }

  /* Full-screen, fully-opaque menu overlay */
  .nav-links {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background: var(--bg);                 /* solid — nothing shows through */
    flex-direction: column;
    justify-content: flex-start;           /* top-aligned so every item is visible */
    align-items: center;
    gap: 2px;
    padding: 78px 24px 32px;               /* clears the top bar + close button */
    overflow-y: auto;                      /* scrolls if it ever runs short on height */
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 95;
  }
  .nav-links.open { transform: none; }
  .nav-links a {
    font-size: 1.05rem;                    /* smaller, tidy */
    width: 100%; max-width: 340px;
    text-align: center; padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }   /* underline animation off in overlay */

  .nav-toggle { display: flex; z-index: 120; } /* stays above the overlay to close it */
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  /* Hero buttons: stacked, one below the other, left-aligned */
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-cta .btn { width: auto; }
}
