/* ============================================================
   MAIA — Global Styles
   ============================================================ */

:root {
  --black:     #0a0a0a;
  --surface:   #111111;
  --surface-2: #1a1a1a;
  --border:    #2a2a2a;
  --gold:      #c9a84c;
  --gold-dim:  #8a6d2f;
  --white:     #f5f0e8;
  --muted:     #888888;
  --text:      #d8d0c0;

  /* Button system — single source of truth for all CTAs.
     Replaces browser-default white-bg buttons across the app. */
  --btn-bg:              #111111;
  --btn-border:          #b9973f;
  --btn-text:            #d6b85a;
  --btn-bg-active:       #b9973f;
  --btn-text-active:     #080808;
  --btn-bg-disabled:     #151515;
  --btn-text-disabled:   #6f633d;
  --btn-border-disabled: #3a321d;
  --btn-focus-ring:      rgba(185, 151, 63, 0.35);
  /* Hover target for the gold-fill primary button. ~17% darker than --gold
     so the hover reads clearly without breaking the luxe restraint. */
  --gold-hover:          #a78838;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-w: 1100px;
  --nav-h: 68px;
}

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

/* Element reset — prevent user-agent white-bg leak on bare buttons. Specific
   classes (.btn-primary, .btn-ghost, .admin-tab, etc.) supply visible styling. */
button {
  background: transparent;
  border: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageEnter 0.4s ease both;
}

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

/* Selection colour */
::selection { background: rgba(201,168,76,0.25); color: var(--white); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

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

/* ── Global form elements ────────────────────────────────── */
.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
  -webkit-appearance: none;
}
.form-textarea {
  min-height: 110px;
  letter-spacing: 0.01em;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #4a4a4a;
  font-style: italic;
  font-weight: 300;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-dim);
  background: #161616;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.06);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
}
/* Anchor the right-hand cluster (session chip + hamburger) so nav links
   stay glued next to the wordmark on the left, regardless of how many
   tail items are present. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--black);
  background: var(--gold);
  border-radius: 10px;
  padding: 1px 6px;
  vertical-align: middle;
}
.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--gold-dim);
  padding: 7px 18px;
  border-radius: 2px;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
/* Buttons share base sizing; .btn-primary is the gold-fill CTA, .btn-ghost
   is the dark-charcoal-with-gold CTA. Both default to dark backgrounds —
   no user-agent white fallback. */
.btn-primary,
.btn-ghost {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color            180ms ease,
    border-color     180ms ease,
    box-shadow       180ms ease,
    opacity          180ms ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
  font-weight: 500;
}
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

.btn-ghost {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-weight: 500;
}
.btn-ghost:hover {
  background: var(--btn-bg-active);
  color: var(--btn-text-active);
  border-color: var(--btn-bg-active);
}

/* Accessible focus ring — gold glow, keyboard-only via :focus-visible. */
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--btn-focus-ring);
}

/* Disabled state — dim charcoal, dim text, not-allowed cursor. Applies
   whether the button is natively disabled or carries .is-disabled. */
.btn-primary:disabled,
.btn-primary.is-disabled,
.btn-ghost:disabled,
.btn-ghost.is-disabled {
  background: var(--btn-bg-disabled);
  color: var(--btn-text-disabled);
  border-color: var(--btn-border-disabled);
  opacity: 0.65;
  cursor: not-allowed;
}
.btn-primary:disabled:hover,
.btn-primary.is-disabled:hover,
.btn-ghost:disabled:hover,
.btn-ghost.is-disabled:hover {
  background: var(--btn-bg-disabled);
  color: var(--btn-text-disabled);
  border-color: var(--btn-border-disabled);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(201,168,76,0.03) 0%, transparent 60%);
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 80px) 32px 100px;
  max-width: 720px;
  margin-left: max(32px, calc((100vw - var(--max-w)) / 2 + 32px));
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.7;
  animation: fadeUp 0.7s 0.35s ease both;
}
.hero-inner .btn-primary,
.hero-inner .btn-ghost {
  animation: fadeUp 0.7s 0.5s ease both;
}

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

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 32px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 52px;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillar-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.pillar-card:hover { background: var(--surface-2); }
.pillar-icon {
  display: block;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 16px;
}
.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
}
.pillar-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   SPACES
   ============================================================ */
.spaces-strip { background: var(--black); }
.spaces-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.spaces-body strong { color: var(--text); font-weight: 400; }
.city-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.city-row span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 8px 18px;
  color: var(--muted);
  border-radius: 2px;
}

/* ============================================================
   WHY MAIA
   ============================================================ */
.why-maia {
  background: var(--black);
  border-top: 1px solid var(--border);
}
.why-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 56px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.why-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}
.why-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 800px) {
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.step-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}
.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   APPLY
   ============================================================ */
.apply { background: var(--black); }
.apply-inner { text-align: center; }
.apply-inner .section-heading { margin-bottom: 20px; }
.apply-inner p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.apply-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ============================================================
   MEMBERS PAGE
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  background: var(--black);
}
.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.page-header-inner .section-label { margin-bottom: 12px; }
.page-header-inner h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0;
}
.page-header-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.7;
}

.members-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 32px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  background: var(--black);
  min-height: 60vh;
}

.members-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}

.members-sidebar-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.filter-btn:hover { color: var(--white); border-color: var(--border); }
.filter-btn.active {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(180, 142, 71, 0.05);
}

.members-main { min-width: 0; }

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Member Card */
.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.member-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.member-card a {
  display: block;
}
.card-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 56px;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.card-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%; /* bias toward the upper third — faces sit there */
  filter: grayscale(30%);
}
.card-body {
  padding: 20px 22px 22px;
}
.card-pillar {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.card-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}
.card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.card-name-row .card-name { margin-bottom: 0; }
.card-active-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.5);
  flex-shrink: 0;
}
.card-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.4;
}
.card-next {
  font-size: 12px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.55;
  border-left: 1px solid var(--gold-dim);
  padding-left: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
  color: var(--muted);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 32px 80px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.profile-sidebar {}
.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--gold);
  margin-bottom: 24px;
  overflow: hidden;
}
.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}
.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.meta-item {}
.meta-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.meta-value {
  font-size: 13px;
  color: var(--text);
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.profile-main {}
.profile-pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.profile-name {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 12px;
}
.profile-tagline {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 520px;
}
.profile-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
.profile-section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.achievements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.achievements-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}
.ach-year {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding-top: 1px;
}
.ach-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.ach-text strong { color: var(--white); font-weight: 500; }

.connections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.connection-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: border-color 0.2s;
  cursor: pointer;
}
.connection-chip:hover { border-color: var(--gold-dim); }
.conn-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold);
}
.conn-name {
  font-size: 11px;
  color: var(--text);
  line-height: 1.3;
}
.conn-field {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.events-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.event-row {
  background: var(--surface);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px 28px;
  transition: background 0.15s;
  cursor: pointer;
}
.event-row:hover { background: var(--surface-2); }

/* Image block on the left — partner-space photo with the date as a corner
   overlay. Falls back to a flat dark tile + bordered date when no image. */
.event-image-block {
  position: relative;
  width: 140px;
  height: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.event-image-block.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(10, 10, 10, 0.45) 55%,
    rgba(10, 10, 10, 0.05) 100%
  );
}
.event-date-block {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 12px 14px;
}
.event-day {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.event-month {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.event-info {}
.event-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}
.event-meta {
  font-size: 12px;
  color: var(--muted);
}
.event-meta span { margin-right: 16px; }
.event-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.event-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 4px 12px;
  border-radius: 2px;
}
.event-spots {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   SPACES PAGE
   ============================================================ */
.spaces-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.space-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.space-card:hover { border-color: var(--gold-dim); }
.space-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
}
.space-body { padding: 24px; }
.space-city {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.space-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}
.space-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .members-layout {
    grid-template-columns: 1fr;
    padding: 24px 20px 60px;
    gap: 24px;
  }
  .members-sidebar { position: static; }
  .filter-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filter-list .filter-btn { width: auto; padding: 7px 14px; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-wrap { grid-template-columns: 1fr; }
  .profile-photo { max-width: 240px; }
  .connections-grid { grid-template-columns: repeat(3, 1fr); }
  .spaces-grid { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 80px 1fr; }
  .event-tags { display: none; }
}

@media (max-width: 600px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .apply-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .connections-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   HAMBURGER + MOBILE NAV
   ============================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--muted);
  transition: all 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--white); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--white); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  padding: 16px 0 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  padding: 13px 28px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.15s;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta {
  margin: 16px 28px 0;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: 2px;
  text-align: center;
  padding: 12px 24px;
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ── Modal (used by intro request flow on dashboard + profile) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  overflow-y: auto;
  animation: modalFadeIn 0.2s ease;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--white); }

.modal-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Nav session chip (injected by auth.js when logged in) ── */
.nav-session {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
}

.nav-session .nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-session-name {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-session-sep {
  font-size: 12px;
  color: var(--border);
}

.nav-signout {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.nav-signout:hover {
  border-bottom-color: var(--gold-dim);
}

@media (max-width: 700px) {
  .nav-session-name { display: none; }
}

/* Member sign-in link on public-page navs (hidden by auth.js when logged in). */
.nav-signin {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.nav-signin:hover { border-bottom-color: var(--gold-dim); }

.mobile-signin {
  color: var(--gold);
}

.mobile-signout {
  color: var(--gold) !important;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
}

.events-empty {
  color: var(--muted);
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Members search ─────────────────────────────────── */
.members-search { margin-bottom: 24px; }

.members-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.members-search-input::placeholder {
  color: var(--muted);
  font-style: italic;
}

.members-search-input:focus {
  border-color: var(--gold-dim);
  background: #161616;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.06);
}

/* ── Avatar image fill ───────────────────────────────
   When a member has an uploaded photo, the existing circular avatar
   container gets <img class="avatar-img"> dropped in via
   maia.fillAvatar(). The img inherits the parent's circular shape
   and fills it. */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.has-avatar { padding: 0; overflow: hidden; }

/* Partner spaces — page state pieces (cards live in style.css already) */
.spaces-empty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.space-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 3px 9px;
  margin: 8px 0 12px;
}

.space-tag-prospective {
  color: var(--muted);
  border-color: var(--border);
}

/* Cities-in-development variant — muted card with no hover, distinct
   gold-dim "Coming soon" badge. Used for cities where Maia is still
   sourcing or finalising the local anchor partner. */
.space-card-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}
.space-card-soon:hover {
  border-color: var(--border);
}
.space-card-soon .space-name {
  color: var(--muted);
  font-weight: 300;
}
.space-card-soon .space-img {
  background: var(--black);
  color: var(--gold-dim);
  font-size: 11px;
  letter-spacing: 0.3em;
}
.space-tag-soon {
  color: var(--gold-dim);
  border-color: var(--gold-dim);
}

/* Landing-page city-row "live" highlight — gold-bordered chip for the
   one city that's actually live (the pilot venue). Other chips stay
   muted to convey "in development." */
.city-row .city-row-active {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* Events toggle (Upcoming / Past) */
.events-toggle {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}
.events-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.events-toggle-btn:hover { color: var(--white); }
.events-toggle-btn.is-active {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(180, 142, 71, 0.05);
}
