:root {
  --bg: #f5f2eb;
  --surface: #ffffff;
  --surface-soft: #f2ede4;
  --text: #171717;
  --muted: #6c6a64;
  --line: rgba(23, 23, 23, 0.1);
  --accent: #f59d62;
  --accent-dark: #da7a39;
  --ink: #101725;
  --shadow: 0 24px 70px rgba(19, 20, 23, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 157, 98, 0.1), transparent 24%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(rgba(23, 23, 23, 0.03) 1px, transparent 1px);
  background-size: 100% 32px;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar,
.intro-card,
.intro-sidecard,
.section-block,
.contact-card,
.auth-shell {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
.avatar-orb {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, #ffd8b7, var(--accent));
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.97rem;
}

.brand-text small,
.topbar-nav a,
.intro-copy,
.section-heading p,
.card-copy,
.story-card p,
.auth-note,
.auth-message,
.contact-label {
  color: var(--muted);
}

.brand-text small,
.eyebrow,
.member-label,
.contact-label,
.overlay-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-nav a {
  text-decoration: none;
}

.topbar-actions,
.intro-actions,
.stack-actions,
.band-readout {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.mail-link,
.text-link,
.inline-link,
.toggle-button,
.icon-button,
.band-chip,
.contact-card {
  border: 0;
  font: inherit;
}

.primary-button,
.ghost-button,
.mail-link,
.text-link,
.contact-card,
.band-chip {
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.primary-button,
.ghost-button,
.mail-link {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
}

.primary-button {
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(135deg, #ffd8b7, var(--accent));
}

.ghost-button,
.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.primary-button:hover,
.ghost-button:hover,
.mail-link:hover,
.text-link:hover,
.inline-link:hover,
.band-chip:hover,
.contact-card:hover {
  transform: translateY(-1px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-top: 22px;
}

.intro-card,
.intro-sidecard,
.section-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.intro-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.avatar-orb {
  width: 86px;
  height: 86px;
  border-radius: 26px;
  font-size: 1.4rem;
}

.eyebrow,
.member-label {
  margin: 0 0 14px;
  color: var(--muted);
}

.intro-card h1,
.section-heading h2,
.card-head h3,
.story-card h3,
.auth-header h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  letter-spacing: -0.04em;
}

.intro-card h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
}

.intro-copy {
  max-width: 56ch;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.intro-sidecard {
  display: grid;
  align-content: start;
  gap: 18px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.text-link,
.inline-link {
  color: var(--ink);
  text-decoration: underline;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.member-card,
.note-card {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.member-email {
  margin: 6px 0 0;
  font-weight: 600;
}

.section-block {
  margin-top: 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 3.5vw, 3.6rem);
  line-height: 0.96;
}

.section-heading p {
  max-width: 42ch;
  margin: 0;
  line-height: 1.7;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 22px;
}

.showcase-card,
.story-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.signal-card {
  background: linear-gradient(180deg, #151d2f, #0f1728);
  color: #f7f4ed;
}

.signal-card .eyebrow,
.signal-card .card-copy,
.signal-card .overlay-label {
  color: rgba(247, 244, 237, 0.7);
}

.signal-card .card-head h3 {
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 0.96;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.card-copy,
.note-card p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.equalizer-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 14, 28, 0.96), rgba(9, 14, 28, 0.88));
}

.equalizer-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.equalizer-overlay {
  position: absolute;
  left: 16px;
  top: 16px;
}

.overlay-card {
  max-width: 280px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.overlay-card p {
  margin: 6px 0 0;
  color: rgba(247, 244, 237, 0.72);
}

.band-readout {
  margin-top: 14px;
}

.band-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  color: rgba(247, 244, 237, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.band-chip.active {
  color: #ffffff;
  border-color: rgba(245, 157, 98, 0.5);
  background: rgba(245, 157, 98, 0.14);
}

.auth-card {
  display: grid;
  align-content: start;
}

.story-grid,
.contact-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

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

.contact-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}

.contact-card strong {
  font-size: 1rem;
}

.auth-dialog {
  width: min(520px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(16, 23, 37, 0.3);
  backdrop-filter: blur(8px);
}

.auth-shell {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.auth-header h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.96;
}

.icon-button,
.toggle-button {
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(23, 23, 23, 0.06);
}

.auth-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.06);
}

.toggle-button {
  min-height: 42px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.toggle-button.active {
  color: var(--ink);
  background: linear-gradient(135deg, #ffd8b7, var(--accent));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.93rem;
  font-weight: 500;
}

.field input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
}

.field input:focus {
  outline: 2px solid rgba(245, 157, 98, 0.18);
  border-color: rgba(245, 157, 98, 0.42);
}

.auth-note,
.auth-message {
  margin: 0;
  font-size: 0.94rem;
}

.auth-message {
  min-height: 1.5em;
}

.wide-button {
  width: 100%;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .intro-grid,
  .showcase-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .card-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .topbar-nav {
    justify-content: start;
  }

  .intro-identity {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 16px;
  }

  .intro-card,
  .intro-sidecard,
  .section-block,
  .auth-shell {
    padding: 20px;
  }

  .topbar-actions,
  .intro-actions,
  .stack-actions,
  .band-readout {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .mail-link,
  .band-chip {
    width: 100%;
  }

  .equalizer-panel {
    min-height: 420px;
  }
}
