/* Frequency & Sonic Sanctuary — the poster layout
   Mahal's Sonic Sanctuary poster as the page: engraved gold title, the
   tri-colour tagline, the Solfeggio Resonance (couple + list), the medallions,
   the instrument, and the founder block. Loaded last, so it wins over the
   base layers without !important.

   Presented by Mahal Kita Marshall, CRT-CPP
   Confidential; NDA-bound. (c) Quantum Melanin Media */

:root {
  --poster-gold:      #f2c75c;
  --poster-gold-hi:   #fff1c2;
  --poster-gold-deep: #b5741c;
  --poster-green:     #8fe056;
  --poster-magenta:   #e05cf0;
  --poster-teal:      #3fe0b5;
  --poster-violet:    #c46cf5;
  --font-engraved:    'Cinzel', 'Times New Roman', serif;
  --font-signature:   'Great Vibes', cursive;
}

/* ============================================================
   Title + tagline
   ============================================================ */
/* the poster's title is wider than the 560px column: give the whole header
   the page's width so it centres instead of spilling to the right */
.app-header {
  width: min(1100px, calc(100vw - 32px));
  margin-left: 50%;
  translate: -50% 0;
}
.app-header h1 {
  font-family: var(--font-engraved);
  font-weight: 700;
  font-size: clamp(1.65rem, 8vw, 4.4rem);
  letter-spacing: 0.035em;
  line-height: 1.05;
  margin: 2px 0 10px;
  background: none;
  /* one filter on the heading, not a text-shadow per letter: a shadow would
     paint over the letters' clipped gold */
  filter: drop-shadow(0 0 16px rgba(242, 180, 70, 0.38)) drop-shadow(0 2px 0 rgba(80, 40, 0, 0.55));
}
/* metallic gold: light catches the top edge, deepens to amber at the foot */
.app-header h1 .wm-letter {
  background: linear-gradient(180deg,
    var(--poster-gold-hi) 0%, var(--poster-gold) 42%, #e0a43a 70%, var(--poster-gold-deep) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.app-header .poster-tagline {
  max-width: none;
  margin: 0 auto;
  font-family: var(--font-engraved);
  font-weight: 600;
  font-size: clamp(0.72rem, 2.8vw, 1.12rem);
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.tg-feel  { color: var(--poster-green);   text-shadow: 0 0 12px rgba(143, 224, 86, 0.35); }
.tg-freq  { color: var(--poster-magenta); text-shadow: 0 0 12px rgba(224, 92, 240, 0.35); }
.tg-tuned { color: var(--poster-teal);    text-shadow: 0 0 12px rgba(63, 224, 181, 0.35); }
.tg-sep   { color: rgba(255, 255, 255, 0.55); }
.tg-notes {
  background: linear-gradient(90deg, #7d6bff, #c46cf5);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  letter-spacing: 0;
}

/* ============================================================
   The Solfeggio Resonance
   ============================================================ */
.resonance {
  position: relative;
  width: min(1100px, calc(100vw - 32px));
  margin-left: 50%;
  translate: -50% 0;
}

.ornate-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 12px;
  font-family: var(--font-engraved);
  font-weight: 600;
  font-size: clamp(1rem, 3.4vw, 1.7rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--poster-gold);
  text-shadow: 0 0 18px rgba(242, 199, 92, 0.35);
}
/* flourish rules: a gold line that ends in a small diamond beside the words */
.ornate-heading::before,
.ornate-heading::after {
  content: '';
  flex: 0 1 160px;
  height: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M6 1L10 5L6 9L2 5Z' fill='%23f2c75c'/%3E%3Ccircle cx='17' cy='5' r='1.6' fill='%23f2c75c'/%3E%3C/svg%3E") right center / 22px 10px no-repeat,
    linear-gradient(90deg, transparent, rgba(242, 199, 92, 0.9)) left center / calc(100% - 24px) 1px no-repeat;
}
.ornate-heading::after { transform: scaleX(-1); }

.resonance-intro {
  max-width: 60ch;
  margin: 0 auto clamp(18px, 3vw, 30px);
  text-align: center;
  font-size: clamp(0.92rem, 2.6vw, 1.06rem);
  line-height: 1.6;
  color: rgba(240, 236, 255, 0.86);
}

.resonance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
.resonance-art { margin: 0; }
.resonance-art img { display: block; width: 100%; height: auto; }

/* ---- the medallions, overlapping the art's faded foot ---- */
.medallions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5%;
  width: 86%;
  margin: -9% auto 0;
  position: relative;
}
.medallion {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 22, 78, 0.65), rgba(6, 3, 16, 0.9) 72%);
  box-shadow: 0 0 26px rgba(242, 199, 92, 0.22), inset 0 0 18px rgba(242, 199, 92, 0.12);
}
.medallion svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(245, 200, 90, 0.5));
}
.md-ring       { fill: none; stroke: var(--poster-gold); stroke-width: 1.6; }
.md-ring-inner { stroke-width: 0.6; opacity: 0.6; }
.md-lines      { fill: none; stroke: rgba(245, 200, 90, 0.5); stroke-width: 0.45; }
.md-node-ring  { fill: none; stroke: var(--poster-gold); stroke-width: 0.8; }
.md-node       { fill: var(--poster-gold-hi); }
.md-petal      { fill: rgba(170, 90, 240, 0.28); stroke: #f0c060; stroke-width: 0.9; }
.md-base       { fill: none; stroke: var(--poster-gold); stroke-width: 0.8; }
.md-spine      { stroke: rgba(242, 199, 92, 0.6); stroke-width: 0.8; }

/* ---- the list: a gold bracket down the left, gold hairlines between ---- */
.resonance-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border: 1px solid rgba(242, 199, 92, 0.42);
  border-right: none;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(90deg, rgba(18, 8, 38, 0.62), rgba(18, 8, 38, 0.18));
  box-shadow: -8px 0 30px -18px rgba(242, 199, 92, 0.55);
}
.resonance-list li + li .res-row::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 199, 92, 0.38), transparent 85%);
}
.res-row {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 11px 16px 11px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.res-row:hover { background: rgba(255, 255, 255, 0.04); }
.res-row:focus-visible { outline: 2px solid var(--poster-gold); outline-offset: -2px; }
.res-row.active {
  background: linear-gradient(90deg, rgba(242, 199, 92, 0.16), rgba(242, 199, 92, 0.02) 80%);
}
.res-row.active::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 14%;
  bottom: 14%;
  width: 3px;
  border-radius: 3px;
  background: var(--poster-gold);
  box-shadow: 0 0 12px var(--poster-gold);
}

.res-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  filter: drop-shadow(0 0 6px currentColor);
}
/* per-tone chakra colours: chakra.css */

.res-text { display: flex; flex-direction: column; gap: 3px; }
.res-title {
  font-family: var(--font-engraved);
  font-weight: 600;
  font-size: clamp(0.92rem, 2.7vw, 1.06rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.res-title b { font-weight: 700; letter-spacing: 0.01em; }
.res-desc {
  font-size: clamp(0.82rem, 2.4vw, 0.9rem);
  line-height: 1.45;
  color: rgba(240, 236, 255, 0.8);
}

.resonance-cta {
  display: table;
  margin: clamp(16px, 3vw, 26px) auto 0;
  padding: 10px 22px;
  border: 1px solid rgba(242, 199, 92, 0.55);
  border-radius: 999px;
  font-family: var(--font-engraved);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--poster-gold);
  background: rgba(20, 10, 40, 0.5);
  box-shadow: 0 0 22px -6px rgba(242, 199, 92, 0.55);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.resonance-cta:hover, .resonance-cta:focus-visible {
  background: rgba(242, 199, 92, 0.14);
  box-shadow: 0 0 30px -4px rgba(242, 199, 92, 0.7);
  outline: none;
}
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============================================================
   The instrument: the practitioner beside the tone controls
   ============================================================ */
.instrument,
.instrument-controls {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 28px);
}
.instrument { scroll-margin-top: 16px; }

@media (min-width: 1000px) {
  .instrument {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    width: min(1060px, calc(100vw - 48px));
    margin-left: 50%;
    translate: -50% 0;
  }
  /* the figure stays in view while the controls scroll beside her */
  .instrument-figure { position: sticky; top: 20px; }
}

/* the tile tooltips overlapped the row above (rig-2's open item #3); the
   Resonance list now carries every tone's full name, so they retire */
.freq-btn[data-note]::after { content: none; }

/* ============================================================
   Founder block
   ============================================================ */
.poster-footer {
  width: min(900px, calc(100vw - 32px));
  margin-left: 50%;
  translate: -50% 0;
  text-align: center;
  padding-top: clamp(18px, 4vw, 32px);
  border-top: 0;
  background:
    linear-gradient(90deg, transparent, rgba(242, 199, 92, 0.7), transparent) top center / min(560px, 90%) 1px no-repeat;
}
:where(.poster-footer) p { margin: 0; }   /* zero specificity: the .pf-* rules below win */
.pf-motto {
  margin-top: 6px;
  font-family: var(--font-engraved);
  font-weight: 700;
  font-size: clamp(1.4rem, 6vw, 2.5rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
  background: linear-gradient(90deg, #e05cf0 0%, #9b6bff 48%, #3fd0f0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(155, 107, 255, 0.4));
}
.pf-sub {
  margin-top: 6px;
  font-family: var(--font-engraved);
  font-weight: 600;
  font-size: clamp(0.7rem, 2.4vw, 0.92rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--poster-gold);
}
.pf-label {
  margin-top: 22px;
  font-family: var(--font-engraved);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--poster-gold);
}
.pf-signature {
  font-family: var(--font-signature);
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 1.15;
  color: var(--poster-magenta);
  text-shadow: 0 0 18px rgba(224, 92, 240, 0.45);
}
.pf-cred {
  font-family: var(--font-engraved);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--poster-gold);
}
.pf-role {
  margin-top: 4px;
  font-family: var(--font-engraved);
  font-weight: 600;
  font-size: clamp(0.78rem, 2.6vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--poster-green);
}
.poster-footer .finelegal { margin-top: 22px; }

/* ---- phones: the heading holds one line; the flourishes shrink, not the words ---- */
@media (max-width: 600px) {
  .ornate-heading { gap: 8px; white-space: nowrap; letter-spacing: 0.07em; font-size: clamp(0.86rem, 4.2vw, 1rem); }
  .ornate-heading::before,
  .ornate-heading::after { flex: 0 0 26px; }
}

/* ---- stacked on narrow screens: art, medallions, then the list ---- */
@media (max-width: 860px) {
  .resonance-grid { grid-template-columns: 1fr; }
  .resonance-art { max-width: 460px; margin: 0 auto; }
  .resonance-list { border-radius: 18px; border-right: 1px solid rgba(242, 199, 92, 0.42); }
}
