:root {
  --bg: #0b0b0b;
  --bg-elevated: #141414;
  --bg-soft: #1a1a1a;
  --text: #ffffff;
  --muted: #bdb8b8;
  --accent: #d82626;
  --accent-hot: #af1717;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --page-gutter: 1.25rem;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Roboto", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(216, 38, 38, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(180deg, #101010 0%, var(--bg) 40%, #050505 100%);
  background-attachment: fixed;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  color: #fff;
  box-shadow: none;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.site-header .brand,
.site-header .nav a {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.site-header .brand:hover,
.site-header .nav a:hover {
  color: var(--accent);
}

.site-header .nav a[aria-current="page"] {
  color: var(--accent);
}

.site-header .brand img {
  border-color: rgba(255, 255, 255, 0.35);
}

.site-header .menu-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav a {
  color: var(--text);
  text-shadow: none;
}

.site-header.is-scrolled .brand:hover,
.site-header.is-scrolled .nav a:hover {
  color: var(--accent);
}

.site-header.is-scrolled .nav a[aria-current="page"] {
  color: var(--accent);
}

.site-header.is-scrolled .brand img {
  border-color: var(--line);
}

.site-header.is-scrolled .menu-toggle {
  color: var(--text);
  border-color: var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.2rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand span {
  font-size: 1.05rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: grid;
  align-items: end;
  overflow: visible;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.28) 28%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 5rem var(--page-gutter) 6.75rem;
}

main > .hero ~ *,
.site-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero {
    overflow: hidden;
  }

  .hero-media {
    position: absolute;
  }
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
}

.hero h1 {
  overflow: hidden;
}

.lead {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero .lead-short {
  display: none;
}

@media (max-width: 720px) {
  .hero-content,
  .page-hero-content {
    max-width: none;
    width: 100%;
    padding-inline: var(--page-gutter);
    text-align: center;
  }

  .hero-content {
    padding-block: 4.5rem 6.5rem;
  }

  .page-hero-content {
    padding-block: 3.75rem 6.25rem;
  }

  .page-hero {
    min-height: min(52vh, 520px);
  }

  .hero h1,
  .page-hero h1 {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0;
    box-sizing: border-box;
    font-size: clamp(1.2rem, 6.8vw, 2.35rem);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    text-align: center;
  }

  .hero .lead,
  .page-hero .lead {
    max-width: none;
    width: 100%;
    margin-inline: auto;
  }

  .cta-row {
    width: 100%;
    justify-content: center;
  }

  .section-head,
  .album-block,
  .about-intro-frame,
  .about-beat-body,
  .contact-panel > .eyebrow,
  .contact-panel > h3,
  .contact-panel > .lead,
  .discover-panel > .eyebrow,
  .join-panel > .eyebrow,
  .join-panel > h3,
  .join-panel > .lead,
  .article-index .article-section-title,
  .tool-hero {
    text-align: center;
  }

  .section-head p,
  .album-block .lead,
  .about-intro-frame > p,
  .about-beat-body p,
  .join-panel .lead,
  .tool-hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-panel .form,
  .join-form {
    text-align: left;
  }

  .hero .lead-full {
    display: none;
  }

  .hero .lead-short {
    display: inline;
  }

  .hero .hero-discography-cta {
    display: none;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  min-width: 3rem;
  height: auto;
  padding: 0.15rem 0.35rem;
  transform: translateX(-50%);
  color: #fff;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
  transition: opacity 0.2s ease, color 0.2s ease;
}

.page-hero .scroll-cue {
  bottom: 0.95rem;
}

.scroll-cue:hover {
  color: var(--accent);
  opacity: 1;
}

.scroll-cue::after {
  content: "Scroll below";
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.9;
}

.scroll-cue svg {
  display: block;
  overflow: visible;
  width: 1.75rem;
  height: 1.55rem;
}

.scroll-cue .eq-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: scroll-cue-eq 1.15s ease-in-out infinite;
}

.scroll-cue .eq-bar:nth-child(1) { animation-delay: 0s; }
.scroll-cue .eq-bar:nth-child(2) { animation-delay: 0.18s; }
.scroll-cue .eq-bar:nth-child(3) { animation-delay: 0.08s; }
.scroll-cue .eq-bar:nth-child(4) { animation-delay: 0.28s; }

.scroll-cue .cue-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: scroll-cue-pulse 1.5s ease-in-out infinite;
}

.scroll-cue .cue-nudge {
  animation: scroll-cue-nudge 1.6s ease-in-out infinite;
}

@keyframes scroll-cue-eq {
  0%,
  100% {
    transform: scaleY(0.42);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes scroll-cue-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scroll-cue-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue .eq-bar,
  .scroll-cue .cue-pulse,
  .scroll-cue .cue-nudge {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem var(--page-gutter);
}

.section-metal {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 4.5rem 0;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("../gallery/contact-bg-mesh.jpg") left top / auto repeat fixed;
}

@media (max-width: 900px) {
  .section-metal {
    background-attachment: scroll;
  }
}

.section-metal > .section-head,
.section-metal > .cta-row,
.section-metal > .article-list,
.section-metal > .tool-grid {
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

.section-metal > .embed-wrap,
.section-metal > .yt-grid,
.section-metal > .yt-hero-video,
.section-metal > .video-grid {
  max-width: calc(var(--max) - (var(--page-gutter) * 2));
  width: calc(100% - (var(--page-gutter) * 2));
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.section-metal > .contact-layout {
  max-width: calc(var(--max) - (var(--page-gutter) * 2));
  width: calc(100% - (var(--page-gutter) * 2));
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.section-metal > .album-block {
  max-width: calc(var(--max) - (var(--page-gutter) * 2));
  width: calc(100% - (var(--page-gutter) * 2));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

.section-metal.article-index > * {
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

.section-metal.article-index > .articles-toolbar {
  max-width: calc(var(--max) - (var(--page-gutter) * 2));
  width: calc(100% - (var(--page-gutter) * 2));
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.section-metal > .section-head {
  margin-bottom: 2rem;
}

.section-metal.about-metal {
  padding: 0;
}

.section-metal.about-metal > .section {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

/* Exact sunburst from QoR hero artwork, 35% darkened like section-metal */
.section-sunburst {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 4.5rem 0;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("../gallery/hero-sunburst-bg.jpg") center top / cover no-repeat fixed;
}

@media (max-width: 900px) {
  .section-sunburst {
    background-attachment: scroll;
  }
}

.section-sunburst > * {
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

/* Never Worry video collage */
.section-never-worry {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 4.5rem 0;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)),
    url("../gallery/never-worry-bg.jpg") center / cover no-repeat fixed;
}

@media (max-width: 900px) {
  .section-never-worry {
    background-attachment: scroll;
  }
}

.section-never-worry > * {
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

.section-collage {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 4.5rem 0;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("../gallery/never-worry-bg.jpg") center / cover no-repeat fixed;
}

@media (max-width: 900px) {
  .section-collage {
    background-attachment: scroll;
  }
}

.section-collage > * {
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

.section-collage > .embed-wrap,
.section-collage > .video-grid {
  max-width: calc(var(--max) - (var(--page-gutter) * 2));
  width: calc(100% - (var(--page-gutter) * 2));
  padding-left: 0;
  padding-right: 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.video-grid,
.cover-grid,
.photo-grid,
.platform-grid {
  display: grid;
  gap: 1rem;
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cover-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.media-card,
.cover-card {
  position: relative;
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
}

.media-card {
  aspect-ratio: 9 / 16;
  background: transparent;
  border: 0;
}

.cover-cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.cover-cta-icon {
  width: 2.35rem;
  height: 2.35rem;
  color: #1ed760;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.cover-cta-icon.is-bandcamp {
  color: #1da0c3;
  width: 2.55rem;
  height: 2.55rem;
}

.cover-cta-label {
  font-family: Oswald, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.cover-card:hover .cover-cta,
.cover-card:focus-visible .cover-cta {
  opacity: 1;
}

.cover-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.55);
}

.media-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: transparent;
  display: block;
  /* Crop letterbox / pillarbox baked into source files */
  transform: scale(1.18);
  transform-origin: center center;
  transition: transform 0.45s ease, filter 0.28s ease;
}

.media-spotify-cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.media-spotify-cta svg {
  width: 2.35rem;
  height: 2.35rem;
  color: #1ed760;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.media-card:hover .media-spotify-cta,
.media-card:focus-within .media-spotify-cta {
  opacity: 1;
  pointer-events: auto;
}

.media-card:hover video {
  transform: scale(1.26);
  filter: brightness(0.55);
}

.video-grid .media-card {
  max-width: 22rem;
  width: 100%;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .video-grid .media-card {
    max-width: none;
    margin-inline: 0;
  }
}

.cover-card img,
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.28s ease;
  display: block;
}

.photo-grid a:hover img {
  transform: scale(1.04);
}

.embed-wrap {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
}

.embed-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
}

.album-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
  padding: var(--page-gutter);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(216, 38, 38, 0.06));
  border: 1px solid var(--line);
}

.album-block h3 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.quote {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.15rem;
  font-style: italic;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: min(48vh, 480px);
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(5, 5, 5, 0.92) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3.75rem var(--page-gutter) 6.25rem;
}

.prose {
  max-width: 48rem;
}

.prose p {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.prose p + h2,
.prose p + h3 {
  margin-top: 2rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-photos img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.about-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--page-gutter) 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
}

.about-hero-copy h1 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
}

.about-hero-copy .lead {
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.about-hero-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  aspect-ratio: 3 / 4;
  animation: about-fade-up 0.7s ease both;
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}

.about-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 5, 0.55) 100%);
}

.about-intro {
  padding-top: 3.25rem;
  padding-bottom: 1.25rem;
}

.about-intro-frame {
  max-width: 46rem;
  margin: 0;
  padding: 1.45rem var(--page-gutter) 1.55rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: rgba(10, 10, 10, 0.92);
}

.about-intro-frame .eyebrow {
  margin: 0 0 0.7rem;
}

.about-intro-frame > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.about-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

.about-beat {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 1.75rem;
  align-items: center;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
  animation: about-fade-up 0.65s ease both;
}

.about-beat:nth-child(2) { animation-delay: 0.06s; }
.about-beat:nth-child(3) { animation-delay: 0.12s; }
.about-beat:nth-child(4) { animation-delay: 0.18s; }

.about-beat:nth-child(even) .about-beat-media {
  order: 2;
}

.about-beat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-beat-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  aspect-ratio: 1;
}

.about-beat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.93) contrast(1.05);
  transition: transform 0.4s ease;
}

.about-beat:hover .about-beat-media img {
  transform: scale(1.03);
}

.about-beat-media-pair {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.55rem;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
  overflow: visible;
}

.about-beat-media-pair img {
  border: 1px solid var(--line);
  aspect-ratio: 1;
}

.about-beat-body > .about-beat-era {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-beat-body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.05;
}

.about-beat-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-beat-body p + p {
  margin-top: 1.35rem;
}

.about-now-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.about-now-card {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.05rem 1rem;
  border: 1px solid var(--line);
  background: #0a0a0a;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-now-card:hover {
  border-color: rgba(216, 38, 38, 0.65);
  transform: translateY(-2px);
  color: inherit;
}

.about-now-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-now-card strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.about-now-card span:not(.about-now-label):not(.about-now-cta) {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-now-cta {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.about-strip-wrap {
  padding-top: 1rem;
}

@media (max-width: 720px) {
  .about-strip-wrap {
    display: none;
  }
}

.about-photo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.about-photo-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
  filter: saturate(0.92) contrast(1.05);
  opacity: 0;
}

.about-photo-strip img:nth-child(odd) {
  transform: translateY(-2.75rem);
}

.about-photo-strip img:nth-child(even) {
  transform: translateY(2.75rem);
}

.about-photo-strip.is-inview img:nth-child(odd) {
  animation: about-strip-from-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-photo-strip.is-inview img:nth-child(even) {
  animation: about-strip-from-down 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.about-photo-strip.is-inview img:nth-child(1) { animation-delay: 0.05s; }
.about-photo-strip.is-inview img:nth-child(2) { animation-delay: 0.18s; }
.about-photo-strip.is-inview img:nth-child(3) { animation-delay: 0.31s; }
.about-photo-strip.is-inview img:nth-child(4) { animation-delay: 0.44s; }
.about-photo-strip.is-inview img:nth-child(5) { animation-delay: 0.57s; }

@keyframes about-strip-from-up {
  from {
    opacity: 0;
    transform: translateY(-2.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes about-strip-from-down {
  from {
    opacity: 0;
    transform: translateY(2.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-photo-strip img,
  .about-photo-strip img:nth-child(odd),
  .about-photo-strip img:nth-child(even) {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@keyframes about-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form input:not([type="checkbox"]),
.form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:not([type="checkbox"]):focus,
.form textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.form label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
}

.form label.checkbox input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.form label.checkbox span {
  line-height: 1.45;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status[data-kind="success"] {
  color: #7dcea0;
}

.form-status[data-kind="error"] {
  color: #e07a7a;
}

.form-status[data-kind="pending"] {
  color: var(--muted);
}

.form-thanks {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  animation: form-thanks-in 0.45s ease both;
}

.form-thanks[hidden] {
  display: none;
}

.form-thanks .lead {
  margin: 0;
  max-width: 36ch;
}

@keyframes form-thanks-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 88px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: #fff;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.platform-grid a .platform-mark {
  display: none;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
}

.platform-grid a .platform-wordmark {
  display: block;
  width: min(10.5rem, 88%);
  height: 1.55rem;
  margin-inline: auto;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.platform-grid a .platform-wordmark.is-lg {
  width: min(12rem, 92%);
  height: 1.95rem;
}

.platform-grid a .platform-word {
  display: none;
}

.platform-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.platform-grid.is-compact a {
  min-height: 72px;
  padding: 0.9rem 1rem;
}

.platform-grid.is-compact a .platform-wordmark {
  width: min(9.5rem, 90%);
  height: 1.7rem;
}

.platform-grid.is-compact a .platform-wordmark.is-lg {
  width: min(10.5rem, 94%);
  height: 2rem;
}

.platform-grid a:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.platform-grid a:hover .platform-wordmark {
  filter: none;
}

@media (max-width: 720px) {
  .platform-grid a .platform-wordmark {
    display: none;
  }

  .platform-grid a .platform-mark {
    display: block;
  }

  .platform-grid.is-compact a .platform-wordmark {
    display: none;
  }

  .platform-grid.is-compact a .platform-mark {
    display: block;
    width: 2rem;
    height: 2rem;
  }

  #streaming.section-sunburst {
    padding: 2.4rem 0;
  }

  #streaming .section-head {
    margin-bottom: 1rem;
  }

  #streaming .section-head h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    line-height: 1.05;
  }

  #streaming .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  #streaming .platform-grid a {
    min-height: 52px;
    padding: 0.55rem 0.4rem;
  }

  #streaming .platform-grid a .platform-mark {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-aside {
  display: grid;
  gap: 0;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.86)),
    url("../gallery/never-worry-bg.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
}

.contact-layout > .contact-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.contact-layout > .contact-panel .form {
  flex: 1;
  max-width: none;
  grid-template-rows: auto auto minmax(140px, 1fr) auto auto;
}

.contact-layout > .contact-panel .form textarea {
  height: 100%;
  min-height: 140px;
}

.contact-panel {
  padding: 1.35rem var(--page-gutter) 1.45rem;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid var(--line);
}

.contact-panel > h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
}

.join-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.join-panel > * {
  position: relative;
  z-index: 1;
}

.join-panel .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 28rem;
}

.join-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.join-form > label {
  font-size: 0.92rem;
  color: var(--muted);
}

.join-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: stretch;
}

.join-form input[type="email"],
.join-form .btn {
  height: 3rem;
  box-sizing: border-box;
}

.join-form input[type="email"] {
  width: 100%;
  min-width: 0;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  caret-color: #fff;
  font: inherit;
  line-height: 1;
}

.join-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.join-form input[type="email"]:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.join-form .btn {
  white-space: nowrap;
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 520px) {
  .join-form-row {
    grid-template-columns: 1fr;
  }
}

.discover-panel {
  display: grid;
  gap: 1.35rem;
  background: transparent;
  border: 0;
}

.discover-panel > .eyebrow {
  margin-bottom: 0;
}

.discover-group {
  display: grid;
  gap: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.discover-panel > .discover-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.album-block .discover-label,
.discover-label {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.discover-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.discover-icons.is-stream {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discover-icons.is-combined {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0.15rem;
}

@media (max-width: 1100px) {
  .discover-icons.is-combined {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .discover-icons.is-combined {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.discover-icons a,
.discover-tile {
  display: block;
  min-height: 4.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  perspective: 700px;
  -webkit-tap-highlight-color: transparent;
}

.discover-tile-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 4.6rem;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.discover-tile-front,
.discover-tile-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.35rem;
  border: 1px solid transparent;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.discover-tile-front {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.discover-tile-back {
  background: var(--flip-bg, #111);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotateY(180deg);
}

.discover-tile-front svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.discover-tile-front > span,
.discover-tile-back > span {
  font-family: Oswald, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
}

.discover-tile-back > span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.discover-tile:hover .discover-tile-inner,
.discover-tile:focus-visible .discover-tile-inner {
  transform: rotateY(180deg);
}

.discover-tile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .discover-tile-inner {
    transition: none;
  }

  .discover-tile:hover .discover-tile-inner,
  .discover-tile:focus-visible .discover-tile-inner {
    transform: none;
  }

  .discover-tile:hover .discover-tile-front,
  .discover-tile:focus-visible .discover-tile-front {
    background: var(--accent-hot);
    border-color: #fff;
  }
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-row a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: #fff;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-row a svg {
  width: 22px;
  height: 22px;
  display: block;
}

.social-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(216, 38, 38, 0.1);
}

.site-footer {
  margin-top: 0;
  border-top: 1px solid rgba(216, 38, 38, 0.35);
  background:
    linear-gradient(180deg, rgba(216, 38, 38, 0.05) 0%, transparent 4.5rem),
    #070707;
}

.footer-shell {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3.25rem var(--page-gutter) 0;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
  gap: 2.5rem 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.footer-cta {
  margin-top: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 26rem;
}

.footer-nav {
  display: contents;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.footer-logo span {
  color: #fff;
  font-weight: 700;
}

.footer-logo img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
}

.footer-logo:hover {
  color: var(--accent);
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-brand .social-row {
  margin-top: 0.35rem;
}

.footer-brand .social-row a {
  width: 42px;
  height: 42px;
}

.footer-brand .social-row a svg {
  width: 18px;
  height: 18px;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  color: var(--accent);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(2px);
}

.site-footer a {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.yt-hero-video {
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
}

.yt-hero-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: none;
}

.section-metal.home-welcome-video,
.home-welcome-video {
  padding: 4.5rem var(--page-gutter);
  max-width: none;
  width: 100%;
}

.home-welcome-video .yt-hero-video {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  margin-bottom: 0;
  border: 1px solid var(--line);
  outline: none;
  box-shadow: none;
  background: #050505;
  overflow: hidden;
}

.home-welcome-video .yt-hero-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  opacity: 1;
  filter: contrast(1.14) saturate(0.78) brightness(0.9);
}

.home-welcome-video .yt-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 70% at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 0, 0, 0.2) 0%, transparent 40%, rgba(12, 0, 0, 0.5) 100%),
    linear-gradient(135deg, rgba(216, 38, 38, 0.28), transparent 42%, rgba(120, 20, 40, 0.22) 100%),
    rgba(216, 38, 38, 0.14);
  background-blend-mode: normal, normal, soft-light, soft-light;
}

.home-welcome-video .yt-hero-video::after {
  content: none;
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.article-list {
  display: grid;
  gap: 1rem;
}

.article-card {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: #0a0a0a;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-card-media {
  grid-row: 1 / span 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  aspect-ratio: 1;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.article-card:hover {
  border-color: rgba(216, 38, 38, 0.55);
  transform: translateY(-1px);
  color: inherit;
}

.article-card:hover .article-card-media img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08);
}

.article-card .meta {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  line-height: 1.15;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.article-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--page-gutter) 4.5rem;
}

.article-hero {
  margin: 0 0 1.75rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  aspect-ratio: 16 / 9;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  filter: saturate(0.95) contrast(1.06);
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 5, 0.55) 100%);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-meta .tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.article-body h2 {
  margin: 2.4rem 0 0.85rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.15;
}

.article-body h3 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: #f2f2f2;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin: 0 0 0.45rem;
}

.article-body a {
  color: #f0d0d0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--accent);
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  color: #e8e4e4;
  font-style: italic;
}

.article-body .sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.article-body .sources h2 {
  margin-top: 0;
}

.article-body .sources ol {
  padding-left: 1.2rem;
}

.article-body .sources li {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.article-figure {
  margin: 1.75rem 0 2rem;
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.article-figure figcaption {
  margin: 0;
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.article-figure .photo-credit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #8a8585;
}

.article-ig {
  margin: 1.75rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-ig blockquote.instagram-media {
  margin: 0 auto !important;
  max-width: 540px !important;
  width: 100% !important;
  min-width: 0 !important;
  background: #111 !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.article-ig figcaption {
  margin: 0.65rem 0 0;
  max-width: 540px;
  width: 100%;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.article-ig .photo-credit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #8a8585;
}

.article-ig .photo-credit a {
  color: #c9b0b0;
}



.article-cta {
  margin-top: 2.5rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(216, 38, 38, 0.12), rgba(255, 255, 255, 0.02));
}

.article-cta h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.article-cta p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.article-cta .cta-row {
  margin-top: 0.25rem;
}

.related-articles {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.related-articles a {
  color: #f0d0d0;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 38, 38, 0.35);
  padding-bottom: 0.15rem;
}

.related-articles a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.article-index .article-section-title {
  margin: 2.75rem 0 1.1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #f2f2f2;
}

.article-index .article-section-title:first-child {
  margin-top: 0;
}

.article-index .article-section-title a {
  color: inherit;
  text-decoration: none;
}

.article-index .article-section-title a:hover {
  color: var(--accent);
}

.article-index .article-list {
  margin-bottom: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.articles-toolbar {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.articles-search {
  position: relative;
  display: block;
}

.articles-search input[type="search"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 2.5rem 0.7rem 0.95rem;
  border: 1px solid #2a2a2a;
  background: #050505;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.articles-search input[type="search"]::placeholder {
  color: #7a7575;
}

.articles-search input[type="search"]:focus {
  border-color: rgba(216, 38, 38, 0.7);
}

.articles-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.articles-search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #bdb8b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.articles-search-clear:hover {
  color: #fff;
}

.articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.articles-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid #2a2a2a;
  background: #050505;
  color: #ddd;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.articles-filter:hover {
  border-color: rgba(216, 38, 38, 0.55);
  background: #0d0d0d;
  color: #fff;
}

.articles-filter.is-active {
  border-color: rgba(216, 38, 38, 0.85);
  background: #1a0808;
  color: #fff;
}

.articles-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.articles-group[hidden],
.article-card[hidden],
.articles-empty[hidden] {
  display: none !important;
}

.articles-group {
  margin-bottom: 0.75rem;
}

.articles-empty {
  margin: 1.5rem 0 0;
  padding: 1.5rem 1.15rem;
  border: 1px dashed #333;
  text-align: center;
}

.articles-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.articles-empty p {
  margin: 0 0 1rem;
  color: var(--muted);
}

@media (min-width: 800px) {
  .articles-toolbar {
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
  }

  .articles-status {
    grid-column: 1 / -1;
  }
}

.article-tool {
  margin: 2.5rem 0 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(216, 38, 38, 0.1), rgba(255, 255, 255, 0.02));
}

.article-tool-head {
  margin: 0 0 1rem;
}

.article-tool-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.article-tool-head p {
  margin: 0;
  color: var(--muted);
}

.article-tool-frame-wrap {
  border: 1px solid #222;
  background: #050505;
  overflow: hidden;
  margin: 0 0 1rem;
}

.article-tool-frame {
  display: block;
  width: 100%;
  height: min(70vh, 640px);
  min-height: 480px;
  border: 0;
  background: #070707;
}

.article-tool .cta-row {
  margin: 0;
}

@media (max-width: 700px) {
  .article-tool {
    padding: 0.85rem;
  }

  .article-tool-frame {
    min-height: 420px;
    height: 68vh;
  }
}

/* Compact tool chrome when embedded in articles */
html.tool-embed-html,
html.tool-embed-html body,
html.tool-embed-html .tool-app-page {
  height: 100%;
  max-height: none;
  min-height: 100%;
  overflow: hidden;
}

html.tool-embed-html body {
  background: #070707;
}

.tool-embed .tool-appbar-home,
.tool-embed .tool-appbar-back {
  display: none;
}

.tool-embed .tool-appbar {
  grid-template-columns: 1fr auto;
}

.tool-embed .tool-appbar-title {
  text-align: left;
}

.tool-embed .tool-shell {
  max-width: none;
}

html.tool-in-iframe .tool-app-page {
  min-height: 100%;
  max-height: 100%;
  height: 100%;
}


.yt-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  animation: rise 0.7s ease both;
}

.hero-content > .eyebrow,
.hero-content > .lead,
.hero-content > .cta-row {
  animation: rise 0.7s ease both;
}

.hero-content > .eyebrow {
  animation-delay: 0.02s;
}

.hero-content > .lead {
  animation-delay: 0.28s;
}

.hero-content > .cta-row {
  animation-delay: 0.4s;
}

.page-hero-media,
.page-hero-media video {
  animation: none !important;
  transform: none !important;
}

.page-hero-content > .eyebrow {
  animation: rise 0.65s ease 0.05s both;
}

.page-hero-content > h1,
.hero-content > h1 {
  overflow: hidden;
}

.hero-content > h1.hero-cube {
  overflow: visible;
  perspective: 1100px;
  perspective-origin: 0% 50%;
  text-align: left;
  --hero-cube-d: 0.48em;
}

.hero-cube-stage {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  height: 0.95em;
  margin: 0;
  transform-style: preserve-3d;
}

.hero-cube-inner {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  height: 100%;
  margin: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: transform 0.7s cubic-bezier(0.55, 0.08, 0.25, 1);
}

.hero-cube.is-flipped .hero-cube-inner {
  transform: rotateX(-90deg);
}

.hero-cube-face {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  margin: 0;
  padding: 0;
  text-align: left;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-cube-face--front {
  transform: translateZ(var(--hero-cube-d));
}

.hero-cube-face--next {
  transform: rotateX(90deg) translateZ(var(--hero-cube-d));
}

@media (max-width: 720px) {
  .hero-content > h1.hero-cube {
    perspective-origin: 50% 50%;
    text-align: center;
  }

  .hero-cube-stage,
  .hero-cube-inner {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cube-face {
    left: 50%;
    justify-content: center;
    text-align: center;
  }

  .hero-cube-face--front {
    transform: translateX(-50%) translateZ(var(--hero-cube-d));
  }

  .hero-cube-face--next {
    transform: translateX(-50%) rotateX(90deg) translateZ(var(--hero-cube-d));
  }
}

.hero-letter {
  display: inline-block;
  animation: hero-letter-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.04s + (var(--i, 0) * 0.035s));
}

.hero-letter.is-static {
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes hero-letter-in {
  from {
    opacity: 0;
    transform: translateX(1.1em);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-hero-content > .lead {
  animation: rise 0.7s ease 0.45s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-letter,
  .hero-cube-inner,
  .hero-content > .eyebrow,
  .hero-content > .lead,
  .hero-content > .cta-row,
  .page-hero-content > .eyebrow,
  .page-hero-content > .lead {
    animation: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .video-grid,
  .cover-grid,
  .platform-grid,
  .yt-grid,
  .album-block,
  .about-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-nav {
    display: contents;
  }

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

  .album-block,
  .about-layout,
  .about-hero,
  .about-beat,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-beat:nth-child(even) .about-beat-media {
    order: 0;
  }

  .about-hero-media {
    max-width: 28rem;
  }

  .about-photo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-photo-strip img:nth-child(n + 4) {
    display: none;
  }
}

@keyframes menu-link-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.6rem;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .nav.open {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .site-header.is-menu-open,
  .site-header:has(.nav.open) {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 100;
    border-bottom: 0;
    border-bottom-color: transparent;
    backdrop-filter: none;
    color: #fff;
    box-shadow: none;
    overflow: hidden;
    background:
      radial-gradient(ellipse 90% 55% at 50% -10%, rgba(216, 38, 38, 0.28), transparent 58%),
      linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.82)),
      url("../gallery/contact-bg-mesh.jpg") left top / auto repeat;
  }

  .site-header.is-menu-open .nav-wrap,
  .site-header:has(.nav.open) .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    max-width: none;
    width: 100%;
    min-height: 100%;
    height: 100%;
    margin: 0;
    padding:
      calc(0.85rem + env(safe-area-inset-top, 0px))
      var(--page-gutter)
      calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: transparent;
    gap: 0.75rem 1rem;
  }

  .site-header.is-menu-open .brand,
  .site-header:has(.nav.open) .brand {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
  }

  .site-header.is-menu-open .menu-toggle,
  .site-header:has(.nav.open) .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    z-index: 1;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.35);
  }

  .site-header.is-menu-open .nav.open,
  .site-header:has(.nav.open) .nav.open {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.5rem 0 1.25rem;
    text-align: center;
    counter-reset: menu-item;
  }

  .site-header.is-menu-open .nav a,
  .site-header:has(.nav.open) .nav a {
    position: relative;
    display: block;
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
    padding: 0.55rem 0.35rem;
    font-size: clamp(2.15rem, 11.5vw, 3.35rem);
    line-height: 0.98;
    letter-spacing: 0.045em;
    font-weight: 700;
    text-shadow: none;
    color: #fff;
    transition: color 0.2s ease, transform 0.2s ease;
    animation: menu-link-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-header.is-menu-open .nav a:nth-child(1),
  .site-header:has(.nav.open) .nav a:nth-child(1) { animation-delay: 0.04s; }
  .site-header.is-menu-open .nav a:nth-child(2),
  .site-header:has(.nav.open) .nav a:nth-child(2) { animation-delay: 0.08s; }
  .site-header.is-menu-open .nav a:nth-child(3),
  .site-header:has(.nav.open) .nav a:nth-child(3) { animation-delay: 0.12s; }
  .site-header.is-menu-open .nav a:nth-child(4),
  .site-header:has(.nav.open) .nav a:nth-child(4) { animation-delay: 0.16s; }
  .site-header.is-menu-open .nav a:nth-child(5),
  .site-header:has(.nav.open) .nav a:nth-child(5) { animation-delay: 0.2s; }
  .site-header.is-menu-open .nav a:nth-child(6),
  .site-header:has(.nav.open) .nav a:nth-child(6) { animation-delay: 0.24s; }
  .site-header.is-menu-open .nav a:nth-child(7),
  .site-header:has(.nav.open) .nav a:nth-child(7) { animation-delay: 0.28s; }

  .site-header.is-menu-open .nav a::after,
  .site-header:has(.nav.open) .nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.22s ease;
  }

  .site-header.is-menu-open .brand,
  .site-header.is-menu-open .menu-toggle,
  .site-header:has(.nav.open) .brand,
  .site-header:has(.nav.open) .menu-toggle {
    color: #fff;
    text-shadow: none;
  }

  .site-header.is-menu-open .nav a[aria-current="page"],
  .site-header.is-menu-open .nav a:hover,
  .site-header:has(.nav.open) .nav a[aria-current="page"],
  .site-header:has(.nav.open) .nav a:hover {
    color: var(--accent);
  }

  .site-header.is-menu-open .nav a[aria-current="page"]::after,
  .site-header.is-menu-open .nav a:hover::after,
  .site-header:has(.nav.open) .nav a[aria-current="page"]::after,
  .site-header:has(.nav.open) .nav a:hover::after {
    width: 2.4rem;
  }

  body:has(.nav.open),
  body.is-menu-open {
    overflow: hidden;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-header.is-menu-open .nav a,
    .site-header:has(.nav.open) .nav a {
      animation: none;
    }
  }

  .video-grid,
  .cover-grid,
  .platform-grid,
  .yt-grid,
  .photo-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-card {
    grid-template-columns: 6.75rem 1fr;
    gap: 0.85rem 0.9rem;
    padding: 0.85rem;
  }

  .article-card h2 {
    font-size: 1.15rem;
  }

  .article-card p {
    font-size: 0.92rem;
  }

  .article-hero {
    aspect-ratio: 4 / 3;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
  }

  .tool-row {
    grid-template-columns: 1fr;
  }

  .tool-hero {
    padding: 1.35rem var(--page-gutter) 0.75rem;
  }

  .tool-hero h1 {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .tool-hero .lead {
    font-size: 0.98rem;
  }

  .tool-hero-media {
    padding: 0 var(--page-gutter);
  }

  .tool-hero-media figure {
    aspect-ratio: 16 / 9;
  }

  .tool-card-media {
    aspect-ratio: 16 / 11;
  }

  .about-hero {
    padding-top: 1.5rem;
  }

  .about-now-links {
    grid-template-columns: 1fr;
  }

  .about-beat-media-pair {
    grid-template-columns: 1fr 1fr;
  }

  .about-photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-photo-strip img:nth-child(n + 4) {
    display: none;
  }

  .tool-actions {
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .btn-touch {
    min-height: 3.15rem;
    font-size: 1rem;
  }

  .stepper-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .string-guide,
  .chip-row {
    gap: 0.45rem;
  }

  .string-guide button,
  .chip-row button {
    min-height: 2.85rem;
    min-width: 2.85rem;
  }
}

/* Guitar tools */
.tool-hero {
  padding: 2.4rem var(--page-gutter) 0.85rem;
  max-width: var(--max);
  margin: 0 auto;
}

.tool-hero h1 {
  margin: 0.15rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tool-hero .lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Tool web-app shell — no page scroll, DAW chrome */
html.tool-app-html,
html:has(.tool-app-page),
.tool-app-page {
  height: 100%;
  overflow: hidden;
}

.tool-app-page {
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #070707;
  color: var(--text);
}

.tool-app-page .site-footer,
.tool-app-page .site-header,
.tool-app-page .tool-hero {
  display: none !important;
}

.tool-appbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.45rem 0.75rem;
  padding-top: calc(0.45rem + env(safe-area-inset-top, 0));
  border-bottom: 1px solid #1d1d1d;
  background: #0b0b0b;
  z-index: 30;
}

.tool-appbar-back,
.tool-appbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 0.7rem;
  border: 1px solid #2a2a2a;
  background: linear-gradient(180deg, #1a1a1a 0%, #101010 100%);
  color: #ddd;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tool-appbar-back:hover,
.tool-appbar-btn:hover {
  border-color: rgba(216, 38, 38, 0.55);
  color: #fff;
}

.tool-appbar-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tool-appbar-right {
  display: flex;
  gap: 0.35rem;
}

.tool-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
}

.tool-workspace {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.65rem;
  gap: 0.55rem;
}

.tool-app-page .tool-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #222;
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

.tool-app-page .tool-stage > .tool-field,
.tool-app-page .tool-stage > label.tool-field {
  text-align: left;
}

.tool-app-page .fretboard-wrap {
  flex: 1 1 auto;
  min-height: 8rem;
  max-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

.tool-app-page .chord-diagram {
  max-width: min(220px, 55vw);
  max-height: 42vh;
}

.tool-app-page .chord-diagram svg {
  max-height: 42vh;
}

.tool-app-page .tool-textarea {
  resize: none;
  min-height: 4.5rem;
  max-height: 8rem;
}

.tool-app-page .bpm-list {
  max-height: 30vh;
  overflow: auto;
  margin-top: 0.5rem;
}

.tool-app-page .string-guide {
  flex: 0 0 auto;
}

.tool-transport {
  flex: 0 0 auto;
}

.tool-app-page .tool-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem;
  border: 1px solid #252525;
  background: #0d0d0d;
}

.tool-app-page .tool-actions .btn,
.tool-app-page .btn-touch {
  min-height: 2.75rem;
  border-radius: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35);
}

.tool-app-page .tool-actions .btn-primary {
  background: linear-gradient(180deg, #e03333 0%, #b81c1c 100%);
}

.tool-app-page .tool-actions .btn-primary:hover {
  background: linear-gradient(180deg, #f03d3d 0%, #c92222 100%);
}

.tool-app-page .tool-actions .btn-ghost {
  background: linear-gradient(180deg, #1a1a1a 0%, #101010 100%);
  border-color: #333;
  color: #ddd;
}

.tool-app-page .tool-actions .btn:disabled {
  opacity: 0.35;
  box-shadow: none;
}

.tool-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #1d1d1d;
  background: #0a0a0a;
  z-index: 20;
}

.tool-panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #1d1d1d;
  background: #0f0f0f;
}

.tool-panel-tabs {
  display: flex;
  gap: 0.3rem;
}

.tool-panel-tab,
.tool-panel-close {
  min-height: 2rem;
  padding: 0 0.65rem;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-panel-tab.is-on {
  color: #fff;
  border-color: rgba(216, 38, 38, 0.55);
  background: rgba(216, 38, 38, 0.14);
}

.tool-panel-close {
  font-size: 1.1rem;
  line-height: 1;
  color: #ddd;
}

.tool-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.75rem 1rem;
  text-align: left;
}

.tool-panel .chip-row,
.tool-panel .string-guide {
  justify-content: flex-start;
}

.tool-panel .tool-field,
.tool-panel .tool-field-label,
.tool-panel .tool-note,
.tool-panel .tool-instructions {
  text-align: left;
}

.tool-panel .tool-instructions ol {
  padding-left: 1.15rem;
}

.tool-app-page .tool-block-body {
  padding: 0;
  border: 0;
  background: transparent;
}

.tool-app-page--panel-primary .tool-appbar-btn[data-panel-open][aria-expanded="true"] {
  border-color: rgba(216, 38, 38, 0.55);
  background: rgba(216, 38, 38, 0.14);
  color: #fff;
}

.tool-app-page .tool-field:first-child,
.tool-app-page .tool-field-label:first-child {
  margin-top: 0.55rem;
}

.tool-app-page .string-guide,
.tool-app-page .chip-row {
  margin-top: 0.15rem;
  gap: 0.35rem;
}

.tool-app-page .string-guide button,
.tool-app-page .chip-row button,
.tool-app-page .stepper-btn {
  border-radius: 0;
  border-color: #2c2c2c;
  background: linear-gradient(180deg, #1c1c1c 0%, #121212 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  min-height: 2.45rem;
  min-width: 2.45rem;
  font-size: 0.85rem;
}

.tool-app-page .string-guide button.is-active,
.tool-app-page .chip-row button.is-active {
  background: linear-gradient(180deg, #2a1212 0%, #1a0a0a 100%);
  border-color: var(--accent);
}

.tool-app-page .tuner-note,
.tool-app-page .metro-bpm {
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  font-variant-numeric: tabular-nums;
}

.tool-panel-backdrop {
  display: none;
}

@media (max-width: 899px) {
  .tool-shell {
    grid-template-columns: 1fr;
  }

  .tool-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: min(58dvh, 28rem);
    border-left: 0;
    border-top: 1px solid #2a2a2a;
    transform: translateY(105%);
    transition: transform 0.22s ease;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 25;
  }

  .tool-app-page.is-panel-open .tool-panel {
    transform: translateY(0);
  }

  .tool-app-page--panel-primary.is-panel-open .tool-workspace {
    padding-bottom: calc(0.5rem + min(58dvh, 28rem));
  }

  .tool-panel-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 15;
  }

  .tool-app-page.is-panel-open .tool-panel-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Keep result visible while adjusting controls */
  .tool-app-page--panel-primary.is-panel-open .tool-panel-backdrop {
    opacity: 0;
    pointer-events: none;
  }

  .tool-workspace {
    padding: 0.5rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
  }

  .tool-appbar-home {
    display: none;
  }

  .tool-app-page .tool-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
  }

  .tool-panel-close {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .tool-app-page.is-panel-open .tool-panel,
  .tool-app-page .tool-panel {
    transform: none;
  }

  .tool-app-page:not(.is-panel-open) .tool-shell {
    grid-template-columns: 1fr;
  }

  .tool-app-page:not(.is-panel-open) .tool-panel {
    display: none;
  }

  .tool-panel-close {
    display: none;
  }
}

.tool-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  max-width: 34rem;
  margin: 0 auto 0.5rem;
  padding: 0 var(--page-gutter);
}

.tool-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 0.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  touch-action: manipulation;
}

.tool-switcher a[aria-current="page"],
.tool-switcher a:hover {
  border-color: rgba(216, 38, 38, 0.65);
  color: var(--text);
  background: rgba(216, 38, 38, 0.12);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 721px) {
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tool-grid-6 {
  grid-template-columns: 1fr;
}

@media (min-width: 721px) {
  .tool-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tool-card {
  display: grid;
  gap: 0.75rem;
  padding: 0 0 1.15rem;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.92);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tool-card:hover {
  border-color: rgba(216, 38, 38, 0.6);
  transform: translateY(-2px);
  color: inherit;
}

.tool-card-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.tool-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.tool-card:hover .tool-card-media img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08);
}

.tool-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 1.15rem 1.2rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 38, 38, 0.45);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.tool-card h2,
.tool-card p,
.tool-card-meta,
.tool-card-cta {
  margin-left: 1.2rem;
  margin-right: 1.2rem;
}

.tool-card h2 {
  margin-top: 0.15rem;
  margin-bottom: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.1;
}

.tool-card-meta {
  margin-top: 0.2rem;
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-card p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(216, 38, 38, 0.55);
  background: rgba(216, 38, 38, 0.12);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-card:hover .tool-card-cta {
  background: var(--accent);
  border-color: var(--accent);
}

.tool-hero-media {
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 0 var(--page-gutter);
}

.tool-hero-media figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  aspect-ratio: 21 / 9;
}

.tool-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  filter: saturate(0.95) contrast(1.06);
}

.tool-hero-media figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 5, 0.5) 100%);
}

.tool-app {
  padding-top: 0.35rem;
  padding-bottom: 3rem;
  max-width: 40rem;
  margin: 0 auto;
}

.tool-stage {
  padding: 1.35rem 1.1rem 1.25rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 38, 38, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.25));
  text-align: center;
}

.tuner-gauge[data-state="ok"] .tuner-note { color: #3ecf6a; }
.tuner-gauge[data-state="flat"] .tuner-note,
.tuner-gauge[data-state="sharp"] .tuner-note { color: #ffb4b4; }
.tuner-gauge[data-state="error"] .tuner-status { color: #ff7b7b; }

.tuner-note,
.metro-bpm {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 16vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.tuner-freq,
.metro-label,
.tuner-status,
.tool-hint,
.tool-note {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.tuner-status {
  min-height: 1.5em;
  font-size: 1.02rem;
  font-weight: 500;
}

.tuner-meter {
  margin: 1.35rem auto 0.85rem;
  max-width: 22rem;
}

.tuner-meter-track {
  position: relative;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.tuner-meter-zone {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 16%;
  transform: translateX(-50%);
  background: rgba(62, 207, 106, 0.22);
  border-radius: 999px;
}

.tuner-meter-center {
  position: absolute;
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: rgba(255, 255, 255, 0.65);
  transform: translateX(-50%);
}

.tuner-meter-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 38, 38, 0.2);
  transition: transform 0.08s linear, background 0.15s ease;
}

.tuner-meter-needle.in-tune {
  background: #3ecf6a;
  box-shadow: 0 0 0 3px rgba(62, 207, 106, 0.25);
}

.tuner-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.btn-touch {
  width: 100%;
  min-height: 3rem;
  justify-content: center;
  touch-action: manipulation;
}

.btn.is-live {
  background: var(--accent-hot);
}

.string-guide,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.string-guide button,
.chip-row button {
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  touch-action: manipulation;
}

.string-guide button.is-active,
.chip-row button.is-active {
  border-color: var(--accent);
  background: rgba(216, 38, 38, 0.2);
  color: #fff;
}

.chip-row-compact button {
  min-width: 2.4rem;
}

.tool-block {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.tool-block summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  touch-action: manipulation;
}

.tool-block summary::-webkit-details-marker { display: none; }

.tool-block summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.tool-block[open] summary::after { content: "–"; }

.tool-block-body {
  padding: 0 1.1rem 1.15rem;
  border-top: 1px solid var(--line);
}

.tool-field,
.tool-field-label {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
}

.tool-field-label {
  margin-bottom: 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #ddd;
}

.tool-select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  border-radius: 0;
}

.tool-range {
  width: 100%;
  height: 2rem;
  accent-color: var(--accent);
}

.stepper {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  gap: 0.55rem;
  align-items: center;
}

.stepper-lg {
  margin-top: 0.35rem;
}

.stepper output {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
}

.stepper-btn {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  touch-action: manipulation;
}

.stepper-btn:active {
  border-color: var(--accent);
  background: rgba(216, 38, 38, 0.18);
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.35rem;
  text-align: left;
}

.tool-note {
  font-size: 0.88rem;
  margin-top: 0.95rem;
}

.tool-instructions {
  text-align: left;
  color: var(--muted);
}

.tool-instructions ol {
  margin: 0.85rem 0 0.85rem;
  padding-left: 1.2rem;
}

.tool-instructions li {
  margin: 0 0 0.55rem;
}

.tool-instructions p {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.metro-display {
  padding-bottom: 0.25rem;
}

.metro-beats {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 1rem 0 0.65rem;
}

.metro-beats span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--line);
}

.metro-beats span.is-on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(216, 38, 38, 0.45);
}

.metro-pulse {
  width: 16px;
  height: 16px;
  margin: 0.35rem auto 0.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.metro-pulse.flash {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(216, 38, 38, 0.55);
}

.capo-result {
  margin: 0 0 0.85rem;
}

.chord-diagram {
  max-width: 240px;
  margin: 0 auto;
}

.chord-diagram svg {
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .tool-actions {
    position: static;
  }
}

.tool-family-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 1.75rem;
  padding: 0.9rem var(--page-gutter);
  box-sizing: border-box;
  border: 0;
  background: transparent;
}

.tool-family-tabs + .section {
  padding-top: 1.125rem;
}

.section-metal:has(> .tool-family-tabs:first-child) {
  padding-top: 1.25rem;
}

.section-metal > .tool-family-tabs {
  max-width: var(--max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.9rem var(--page-gutter);
  box-sizing: border-box;
}

.tool-family-tabs a {
  flex: 1 1 auto;
  min-width: 4.5rem;
  max-width: 10rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  touch-action: manipulation;
}

.tool-family-tabs a.is-on,
.tool-family-tabs a:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.tool-switcher-6 {
  max-width: 34rem;
}

.subdiv-visual,
.poly-row,
.rudiment-pattern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem 0;
}

.subdiv-visual span,
.poly-row span {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.subdiv-visual span.is-on,
.poly-row span.is-on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(216, 38, 38, 0.4);
}

.poly-row span.hit {
  background: rgba(255, 255, 255, 0.22);
}

.poly-rows {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.rudiment-pattern span {
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.rudiment-pattern span.is-r {
  border-color: rgba(216, 38, 38, 0.5);
}

.rudiment-pattern span.is-l {
  border-color: rgba(255, 255, 255, 0.28);
}

.rudiment-pattern span.is-on {
  background: rgba(216, 38, 38, 0.25);
  border-color: var(--accent);
}

.tap-big {
  width: min(100%, 16rem);
  min-height: 5.5rem !important;
  margin: 1rem auto 0.5rem;
  font-size: 1.45rem !important;
  letter-spacing: 0.18em;
}

.bpm-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  text-align: left;
}

.bpm-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.bpm-list button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  min-width: 2rem;
  min-height: 2rem;
}

.tool-textarea {
  width: 100%;
  min-height: 5.5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.transpose-out {
  margin-top: 0.35rem;
  padding: 1rem 0.85rem;
  border: 1px solid rgba(216, 38, 38, 0.35);
  background: rgba(216, 38, 38, 0.08);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  letter-spacing: 0.02em;
  line-height: 1.25;
  word-break: break-word;
}

.fretboard-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem -0.35rem 0.5rem;
  padding: 0 0.35rem 0.35rem;
}

.fretboard {
  min-width: 320px;
}

.fretboard-grid {
  display: grid;
  gap: 0.35rem 0;
}

.fret-nums,
.fret-string,
.fret-markers {
  display: grid;
  grid-template-columns: 1.4rem repeat(calc(var(--frets) + 1), minmax(1.55rem, 1fr));
  gap: 0.2rem;
  align-items: center;
}

.fret-nums span,
.fret-markers span {
  text-align: center;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.string-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.fret-cell {
  aspect-ratio: 1;
  min-height: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: transparent;
  font-size: 0.58rem;
  font-family: var(--font-display);
  padding: 0;
  touch-action: manipulation;
}

.fret-string .fret-cell:first-of-type {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.fret-cell.is-note {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.fret-cell.is-root {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent-hot);
  box-shadow: 0 0 10px rgba(216, 38, 38, 0.35);
}

.fret-cell.is-dim {
  opacity: 0.35;
}

.fret-cell.is-note:active,
.fret-cell.is-root:active {
  transform: scale(0.96);
}

@media (max-width: 720px) {
  .tool-switcher {
    max-width: none;
  }

  .fret-nums,
  .fret-string,
  .fret-markers {
    grid-template-columns: 1.15rem repeat(calc(var(--frets) + 1), minmax(1.35rem, 1fr));
  }
}
