/* mechonat.com — v1 design system
   Base: charcoal denim. Text: sleeve paper. One accent: cobalt, for play controls and links only. */
:root {
  --bg: #242A31;
  --panel: #2E353D;
  --line: #3B434C;
  --text: #F2EEE7;
  --muted: #A6ADB5;
  --accent: #5D9BFF;
  --accent-ink: #0F1A2E;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
  --player-h: 76px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--font); font-optical-sizing: auto;
  padding-bottom: var(--player-h);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.1rem; color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: .5rem .8rem; border-radius: var(--r); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
svg { fill: currentColor; }

/* header */
.site-head {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--text); }
.wordmark:hover { text-decoration: none; color: var(--accent); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--muted); padding: 8px 12px; border-radius: var(--r); font-weight: 600; }
.site-nav a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.site-nav a[aria-current] { color: var(--text); background: var(--panel); }

/* layout */
.band, .page-head, .release { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter); }
.page-head { padding-bottom: 8px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.band-head h2 { margin: 0; }
.more { font-weight: 600; white-space: nowrap; }
.crumb { margin-bottom: .6em; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border: 1px solid var(--line); border-radius: var(--r); color: var(--text);
  font-weight: 600; background: var(--panel);
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7BADFF; border-color: #7BADFF; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.mosaic {
  position: absolute; inset: 0; display: grid; gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  opacity: .18; filter: saturate(.7); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 56px;
  display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero-art { position: relative; }
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.hero-kicker { color: var(--muted); font-weight: 600; margin-bottom: .6em; }
.hero-copy h1 { max-width: 12ch; }

/* play buttons */
.play {
  display: inline-grid; place-items: center; border: 0; cursor: pointer; padding: 0;
  background: var(--accent); color: var(--accent-ink); border-radius: 50%;
  width: 44px; height: 44px;
}
.play svg { width: 55%; height: 55%; }
.play .ico-pause { display: none; }
.play.is-playing .ico-play { display: none; }
.play.is-playing .ico-pause { display: block; }
.play:hover { background: #7BADFF; }
.play.is-empty { visibility: hidden; }
.play-xl { position: absolute; right: 14px; bottom: 14px; width: 64px; height: 64px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.play-sm { width: 34px; height: 34px; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.play-sm:hover, .play-sm.is-playing { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* release cards */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card { position: relative; }
.card-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--panel); }
.card-play { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; opacity: 0; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.card:hover .card-play, .card:focus-within .card-play, .card-play.is-playing, .card-play:focus-visible { opacity: 1; }
@media (hover: none) { .card-play { opacity: 1; } }
.card-body { padding-top: 10px; }
.card-title { display: block; color: var(--text); font-weight: 600; line-height: 1.25; }
.card-sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* chips */
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 600;
}
.chips a span { color: var(--muted); font-weight: 400; font-size: .85em; }
.chips a:hover { text-decoration: none; border-color: var(--muted); }
.chips a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips a[aria-current] span { color: var(--accent-ink); opacity: .75; }
.band-genres .lede { max-width: 70ch; }

/* release page */
.release { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.release-art { position: sticky; top: 16px; }
.release-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.release-copy h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.tracklist { list-style: none; padding: 0; margin: 24px 0 8px; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 2ch 34px 1fr auto; gap: 14px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.track-n { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.track-title { font-weight: 600; }
.track-dur { color: var(--muted); font-variant-numeric: tabular-nums; }
.track.is-current .track-title { color: var(--accent); }
.explicit { font-size: .7em; border: 1px solid var(--muted); color: var(--muted); border-radius: 3px; padding: 0 4px; margin-left: 6px; text-decoration: none; vertical-align: middle; }
.band-embed iframe { display: block; }

/* about */
.about { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.about-artist { border-top: 1px solid var(--line); padding-top: 18px; }

/* footer */
.site-foot { max-width: var(--max); margin: 40px auto 0; padding: 24px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot p { max-width: none; margin: 0 0 .4em; }

/* player bar */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--player-h);
  background: var(--panel); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px minmax(120px, 2fr) auto 36px;
  gap: 14px; align-items: center; padding: 0 var(--gutter);
  padding-bottom: env(safe-area-inset-bottom);
}
.player[hidden] { display: none; }
.player-art { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--bg); }
.player-meta { min-width: 0; }
.player-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.player-btn svg { width: 55%; height: 55%; }
.player-btn .ico-play { display: none; }
.player.is-paused .player-btn .ico-play { display: block; }
.player.is-paused .player-btn .ico-pause { display: none; }
.player-track { min-width: 0; }
.player-bar { height: 6px; background: var(--line); border-radius: 3px; cursor: pointer; overflow: hidden; }
.player-fill { height: 100%; width: 0; background: var(--accent); }
.player-times { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.player-link { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.player-close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px; }
.player-close:hover { color: var(--text); }

/* responsive */
@media (max-width: 860px) {
  .hero-inner, .release { grid-template-columns: 1fr; }
  .hero-art, .release-art { max-width: 420px; position: static; }
  .hero-copy h1 { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-head { padding-top: 14px; padding-bottom: 14px; }
  .site-nav a { padding: 8px 9px; }
  .grid, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .band, .page-head, .release { padding-top: 26px; padding-bottom: 26px; }
  .player { grid-template-columns: 44px minmax(0, 1fr) 44px 36px; }
  .player-track, .player-link { display: none; }
  .player-art { width: 44px; height: 44px; }
  .track { grid-template-columns: 2ch 34px 1fr auto; gap: 10px; }
}

/* --- mech-fix5: text motion layer (disabled under prefers-reduced-motion) --- */
@media (prefers-reduced-motion: no-preference) {
  h1 {
    position: relative;
    background: linear-gradient(110deg,
      var(--text) 0%, var(--text) 40%,
      #ffffff 48%, var(--accent) 52%,
      var(--text) 60%, var(--text) 100%);
    background-size: 230% 100%;
    background-position: 115% 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: mech-rise .7s ease-out both, mech-shimmer 7s ease-in-out 1.2s infinite;
  }
  h1::before, h1::after {
    content: '\2726';
    position: absolute;
    font-size: .32em;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    opacity: 0;
    pointer-events: none;
    animation: mech-twinkle 5.5s ease-in-out infinite;
  }
  h1::before { top: -.42em; right: .15em; animation-delay: 1s; }
  h1::after  { bottom: -.28em; left: 42%; font-size: .22em; animation-delay: 3.2s; }
  .lede { animation: mech-rise .8s ease-out .15s both; }
  .wordmark { animation: mech-glow 6s ease-in-out infinite; }
  .site-nav a, .plat-links a { transition: text-shadow .3s ease, color .2s ease; }
  .site-nav a:hover, .plat-links a:hover { text-shadow: 0 0 14px rgba(93, 155, 255, .55); }
}
@keyframes mech-shimmer {
  0%   { background-position: 115% 0; }
  38%  { background-position: -15% 0; }
  100% { background-position: -15% 0; }
}
@keyframes mech-twinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  10%      { opacity: .95; transform: scale(1) rotate(18deg); }
  20%      { opacity: 0; transform: scale(.45) rotate(36deg); }
}
@keyframes mech-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes mech-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(93, 155, 255, 0); }
  50%      { text-shadow: 0 0 16px rgba(93, 155, 255, .45); }
}

/* --- mech-fix6: contact form --- */
.contact { max-width: 640px; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--text);
  background: #2E353D;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; }
.form-note { border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; }
.form-ok  { background: rgba(93, 155, 255, .12); border: 1px solid rgba(93, 155, 255, .4); }
.form-err { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .45); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
