/* Hero layout with the equalizer */
.cmz-hero { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cmz-hero { grid-template-columns: 1.1fr 1fr; } }

.cmz-wordmark { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; letter-spacing: -0.02em; text-transform: lowercase; }
.cmz-wordmark b, .cmz-mark b { color: var(--brand); font-weight: 800; }
.cmz-wordmark__icon { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: calc(var(--radius) * 1.2); background: var(--brand); color: var(--surface); flex: none; }
.cmz-wordmark__icon svg { width: 70%; height: 70%; }

/* Equalizer signature */
.cmz-eq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; color: var(--ink); }
.cmz-eq__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.cmz-eq__head .result-label { margin: 0; }
.cmz-eq__play { min-width: 72px; }
.cmz-eq__bars { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; height: 190px; align-items: end; padding-bottom: 1.6rem; position: relative; border-bottom: 1px solid var(--border); }
.cmz-bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cmz-bar i { display: block; width: 100%; height: calc(var(--h) / 26 * 100%); min-height: 6px; border-radius: 3px 3px 0 0; background: repeating-linear-gradient(to top, var(--brand) 0 6px, transparent 6px 8px); opacity: .55; transform-origin: bottom; transition: opacity .2s, filter .2s; }
.cmz-bar b { position: absolute; bottom: -1.5rem; font-family: var(--font-mono, monospace); font-size: .8rem; color: var(--muted); font-weight: 600; }
.cmz-bar.is-on i { opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brand) 70%, transparent)); }
.cmz-bar.is-on b { color: var(--brand); }

.cmz-eq--play .cmz-bar i { animation: cmz-pulse 1.1s ease-in-out infinite; opacity: .95; }
.cmz-eq--play .cmz-bar:nth-child(2n) i { animation-delay: -.3s; }
.cmz-eq--play .cmz-bar:nth-child(3n) i { animation-delay: -.6s; }
.cmz-eq--play .cmz-bar:nth-child(5n) i { animation-delay: -.85s; }
@keyframes cmz-pulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
@media (prefers-reduced-motion: reduce) { .cmz-eq--play .cmz-bar i { animation: none; } }

.cmz-eq__chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.cmz-chip { min-width: 72px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.cmz-chip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
.cmz-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cmz-eq__read { margin: .75rem 0 .25rem; font-weight: 600; }

/* Ideas */
.cmz-idea { position: relative; }
.cmz-idea__n { display: block; font-family: var(--font-mono, monospace); font-size: .85rem; color: var(--brand); font-weight: 700; margin-bottom: .25rem; }
.cmz-tagline { font-style: italic; color: var(--muted); border-left: 3px solid var(--brand); padding-left: .6rem; }

/* Brand kit */
.cmz-swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .cmz-swatches { grid-template-columns: repeat(4, 1fr); } }
.cmz-swatch { border-radius: var(--radius); border: 1px solid var(--border); min-height: 110px; padding: .75rem; display: flex; flex-direction: column; justify-content: flex-end; }
.cmz-swatch span { font-weight: 700; }
.cmz-swatch small { opacity: .8; }
.cmz-swatch--brand { background: var(--brand); color: var(--surface); }
.cmz-swatch--deep { background: color-mix(in srgb, var(--brand) 55%, var(--surface)); color: var(--ink); }
.cmz-swatch--night { background: var(--surface); color: var(--ink); }
.cmz-swatch--light { background: var(--ink); color: var(--surface); }

.cmz-mark { border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem 1.25rem; margin-bottom: .75rem; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.cmz-mark--light { background: var(--ink); color: var(--surface); }
.cmz-mark--light b { color: color-mix(in srgb, var(--brand) 70%, var(--surface)); }
.cmz-mark--dark { background: var(--surface); color: var(--ink); }

.cmz-appicons { display: flex; align-items: flex-end; gap: 1rem; }
.cmz-appicon { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 22px; background: var(--brand); color: var(--surface); }
.cmz-appicon svg { width: 58%; height: 58%; }
.cmz-appicon--sm { width: 48px; height: 48px; border-radius: 12px; }

/* Spelling table: fit on phones */
@media (max-width: 480px) {
  .section table { display: table; width: 100%; min-width: 0; table-layout: auto; }
  .section table th, .section table td { padding: 8px 6px; font-size: .85rem; white-space: normal; overflow-wrap: anywhere; }
  .section table .tag { padding-left: .45rem; padding-right: .45rem; white-space: nowrap; }
}