/* The Stacking Academy — private society design standard
   Black #0A0A0A · Metallic gold #D4AF37 · No gradients, no gimmicks */

:root {
  --black: #0A0A0A;
  --gold: #D4AF37;
  --text: #E8E4DA;
  --muted: #8F8A7E;
  --line: rgba(212, 175, 55, 0.35);
}

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

body {
  background: var(--black);
  color: var(--text);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.2;
}

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

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 2.25rem;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 1.1rem 3.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: var(--black); }

/* ---------- Shared structure ---------- */
.page { max-width: 62rem; margin: 0 auto; padding: 0 2rem; }

.rule {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 2.5rem auto;
}

.page-title {
  text-align: center;
  padding-top: 6rem;
}
.page-title .over {
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-title h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1.25rem;
}
.page-title .sub {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* The one focal statement per page */
.statement {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-style: italic;
  color: var(--gold);
  text-align: center;
  max-width: 46rem;
  margin: 6rem auto;
  line-height: 1.4;
}
.statement .attr {
  display: block;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.75rem;
}

.section { padding: 4.5rem 0; }
.section h2 {
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section p { max-width: 40rem; margin: 0 auto 1.5rem; text-align: center; }

.center { text-align: center; }

/* ---------- Gate (landing) ---------- */
.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.gate .wordmark {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
}
.gate .motto {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 4rem;
}
.gate .member-link {
  margin-top: 3.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.gate .member-link a { color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 2px; }

/* ---------- Hero (The Entrance) ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 10rem 2rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero svg.steps {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
}
.hero .inner { position: relative; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero p {
  color: var(--text);
  max-width: 34rem;
  margin: 2rem auto 3.5rem;
  font-size: 1.05rem;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 4rem 0; }
.pillar { background: var(--black); padding: 3.5rem 2.5rem; text-align: center; }
.pillar .num {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
}
.pillar h3 {
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 1.25rem 0;
}
.pillar p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Lists (beliefs, standards) ---------- */
.doctrine { max-width: 42rem; margin: 0 auto; list-style: none; }
.doctrine li {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  text-align: center;
}
.doctrine li:last-child { border-bottom: none; }
.doctrine li strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.doctrine li span { color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { max-width: 30rem; margin: 0 auto; }
.form-card label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.6rem;
}
.form-card input,
.form-card textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.6rem 0;
}
.form-card input:focus,
.form-card textarea:focus { outline: none; border-bottom-color: var(--gold); }
.form-card .btn { margin-top: 3rem; width: 100%; }

.notice {
  border: 1px solid var(--line);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  margin: 2rem auto;
  max-width: 30rem;
}
.notice.error { border-color: #8a3a33; color: #d99a93; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 6rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
}
.site-footer .links { margin-bottom: 1.5rem; letter-spacing: 0.25em; text-transform: uppercase; }
.site-footer .links a { color: var(--muted); margin: 0 1rem; }
.site-footer .links a:hover { color: var(--gold); }
.site-footer .legal { max-width: 52rem; margin: 0 auto; }

/* ---------- Members area ---------- */
.members-main { max-width: 62rem; margin: 0 auto; padding: 4rem 2rem; }
.members-main h1 {
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}
.members-main > p { text-align: center; color: var(--muted); margin-top: 1rem; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.dept-card {
  display: block;
  border: 1px solid var(--line);
  padding: 2.25rem;
  transition: border-color 0.2s;
}
.dept-card:hover { border-color: var(--gold); }
.dept-card h3 { font-size: 1.1rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; }
.dept-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  border: 1px solid var(--line);
  padding: 3.5rem 3rem;
  width: 100%;
  max-width: 26rem;
}
.auth-card h1 {
  font-size: 1.3rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}
.auth-card label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.75rem 0 0.5rem;
}
.auth-card input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.5rem 0;
}
.auth-card input:focus { outline: none; border-bottom-color: var(--gold); }
.auth-card .btn { width: 100%; margin-top: 2.5rem; }
.auth-card .back {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.error {
  border: 1px solid #8a3a33;
  color: #d99a93;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
}

/* ---------- Admin ---------- */
.admin-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.85rem;
}
.admin-table td { word-wrap: break-word; }
.admin-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem;
  border-bottom: 1px solid var(--gold);
}
.admin-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  vertical-align: top;
}
.chip {
  display: inline-block;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "Jost", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  margin: 0.15rem 0.1rem;
  cursor: pointer;
}
.chip.on { border-color: var(--gold); color: var(--gold); }
.chip:hover { border-color: var(--gold); }
.chip.yes { border-color: #4e9e5f; color: #8fd39c; background: rgba(78, 158, 95, 0.12); }
.chip.no { border-color: rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.75); background: transparent; }
.chip.yes:hover { border-color: #8fd39c; }
.chip.no:hover { border-color: #fff; }
.status-active { color: #9fbf8f; }
.status-invited { color: var(--gold); }
.status-revoked { color: #d99a93; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  vertical-align: middle;
  margin-left: 0.35rem;
}
.badge-student { border: 1px solid var(--muted); color: var(--muted); }
.badge-founder { border: 1px solid var(--gold); color: var(--gold); }
.badge-legacy { background: var(--gold); border: 1px solid var(--gold); color: var(--black); }
.badge-admin {
  background: var(--black);
  border: 1px double var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 2px;
  color: var(--gold);
}

/* ---------- The Roll: permanent membership numbering ---------- */
/* Each tier reads distinctly: the Principal as a title, Mentors in silver, Members in stone. */
.roll {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-style: italic;
  vertical-align: middle;
  white-space: nowrap;
}
.roll-principal {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.roll-mentor { color: #C7CBD4; }        /* silver — the guiding few */
.roll-member { color: var(--muted); }   /* stone — the founding roll */
.roll-mentor::before,
.roll-member::before { content: "· "; color: var(--line); font-style: normal; }

/* Course slot: card plus an admin-only delete control below it */
.course-slot { display: flex; flex-direction: column; }
.course-slot .dept-card { flex: 1; }
.course-admin { text-align: center; margin-top: 0.6rem; }

/* Build With Us — role cards */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.role-card { border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; text-align: left; }
.role-card h3 { color: var(--gold); margin: 0 0 0.85rem; }
.role-card ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.role-card li { color: var(--muted); font-size: 0.9rem; padding-left: 1rem; position: relative; margin-bottom: 0.45rem; line-height: 1.45; }
.role-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.role-card .role-pick { margin-top: auto; align-self: flex-start; }

/* Build With Us — four expandable divisions */
.build-q { text-align: center; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.5rem; color: var(--gold); margin: 1.5rem 0 2rem; }
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 46rem; margin: 0 auto; }
.division { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(212,175,55,0.02); transition: border-color 0.3s ease; }
.division[open] { border-color: var(--gold); grid-column: 1 / -1; }
.division > summary { list-style: none; cursor: pointer; }
.division > summary::-webkit-details-marker { display: none; }
.division-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.25rem 1.25rem; gap: 0.35rem; transition: background 0.3s ease; }
.division:hover .division-card { background: rgba(212,175,55,0.05); }
.division-name { font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 1.7rem; color: var(--text); }
.division-tag { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.6rem; color: var(--gold); }
.division-blurb { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; line-height: 1.4; }
.division-count { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.62rem; color: var(--gold); margin-top: 0.7rem; }
.division[open] .division-count { opacity: 0.5; }
.division-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding: 0 1.1rem 1.4rem; }
@media (max-width: 34rem) { .division-grid { grid-template-columns: 1fr; } }

/* Page hero entrance — applies to every content page */
.statement { animation: heroRise 0.9s ease 0.05s both; }
.page-title h1 { animation: heroRise 0.8s ease 0.25s both; }
.page-title .sub { animation: heroRise 0.8s ease 0.6s both; }

/* Build With Us — motion sequence */
.division-card { transition: background 0.3s ease, transform 0.15s ease; }
.division summary:active .division-card { transform: scale(0.985); }
.division-count .dc-close { display: none; }
.division[open] .division-count .dc-open { display: none; }
.division[open] .division-count .dc-close { display: inline; }
.division[open] .division-count { color: var(--gold); }
.dc-arw { display: inline-block; }
.division[open] .role-card { animation: heroRise 0.5s ease both; }
.division[open] .role-card:nth-child(1) { animation-delay: 0.05s; }
.division[open] .role-card:nth-child(2) { animation-delay: 0.13s; }
.division[open] .role-card:nth-child(3) { animation-delay: 0.21s; }
.division[open] .role-card:nth-child(4) { animation-delay: 0.29s; }
.division[open] .role-card:nth-child(5) { animation-delay: 0.37s; }
.division[open] .role-card:nth-child(6) { animation-delay: 0.45s; }
.cat-sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
  background: #0b0b08; border-bottom: 1px solid var(--gold); color: var(--gold);
  text-align: center; padding: 0.65rem 1rem;
  font-family: "Jost", sans-serif; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.68rem;
  transform: translateY(-100%); transition: transform 0.35s ease; pointer-events: none;
}
.cat-sticky.show { transform: translateY(0); }
.field-flash { animation: fieldFlash 1.4s ease; }
@keyframes fieldFlash { 0%,100% { box-shadow: none; } 25%,60% { box-shadow: 0 0 0 2px var(--gold); border-color: var(--gold); } }
@media (prefers-reduced-motion: reduce) {
  .statement, .page-title h1, .page-title .sub, .division[open] .role-card { animation: none; }
}

/* ---------- Letter-opening welcome (plays once on login) ---------- */
.letter-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--black, #0d0d0d);
  display: flex; align-items: center; justify-content: center;
  animation: letterFade 0.7s ease 3.0s forwards;
}
@keyframes letterFade { to { opacity: 0; visibility: hidden; } }
.envelope { position: relative; width: min(24rem, 82vw); height: 15rem; perspective: 1200px; }
.env-body {
  position: absolute; inset: 0; z-index: 1;
  background: #14140d; border: 1px solid var(--gold); border-radius: 5px;
}
.letter {
  position: absolute; left: 7%; right: 7%; top: 10%; z-index: 2;
  background: #f6f1e3; color: #1a1712; border-radius: 3px;
  padding: 1.9rem 1.3rem; text-align: center;
  box-shadow: 0 22px 45px rgba(0,0,0,0.55);
  transform: translateY(45%) scale(0.96); opacity: 0;
  animation: letterRise 1.1s cubic-bezier(.2,.7,.3,1) 0.9s forwards;
}
.letter-mark {
  font-family: "Cormorant Garamond", serif; color: var(--gold);
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.letter-line { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; margin: 0; }
.letter-sub  { font-family: "Cormorant Garamond", serif; font-style: italic; color: #6f6656; margin: 0.4rem 0 0; }
.env-flap {
  position: absolute; top: 0; left: 0; width: 100%; height: 52%; z-index: 3;
  background: #1b1b12; border: 1px solid var(--gold);
  transform-origin: top; clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: flapOpen 0.85s ease 0.25s forwards;
}
@keyframes flapOpen { to { transform: rotateX(180deg); opacity: 0; } }
.seal {
  position: absolute; top: 33%; left: 50%; z-index: 4;
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--gold); color: #1a1712;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transform: translate(-50%,-50%);
  animation: sealBreak 0.55s ease 0.2s forwards;
}
@keyframes sealBreak { to { transform: translate(-50%,-50%) scale(0) rotate(25deg); opacity: 0; } }
@keyframes letterRise { to { transform: translateY(-28%) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .env-flap, .seal, .env-body { display: none; }
  .letter { position: static; margin: auto; transform: none; opacity: 1; animation: none; }
  .letter-overlay { animation: letterFade 0.5s ease 1.8s forwards; }
}

/* ---------- Members dashboard (home) ---------- */
.dash { position: relative; z-index: 1; }

/* Ambient gold dust — decorative, very subtle */
.ambient-dust { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-dust span {
  position: absolute; bottom: -5vh; display: block; border-radius: 50%;
  background: var(--gold); opacity: 0; filter: blur(0.3px);
  animation-name: dust; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes dust {
  0%   { transform: translateY(0);      opacity: 0; }
  12%  { opacity: 0.18; }
  85%  { opacity: 0.10; }
  100% { transform: translateY(-108vh); opacity: 0; }
}

/* Animated welcome */
.dash-hero { text-align: center; padding: 2rem 0 1rem; }
.hero-eyebrow {
  font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.4em;
  color: var(--muted); font-size: 0.8rem; margin: 0;
  animation: heroRise 0.8s ease 0.2s both;
}
.hero-name {
  font-family: "Cormorant Garamond", serif; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 4.5rem); letter-spacing: 0.06em; line-height: 1;
  margin: 0.4rem 0 0.7rem; color: var(--text);
  animation: heroRise 0.9s ease 0.6s both;
}
.hero-title {
  font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.8rem; margin: 0 auto; animation: heroRise 0.9s ease 1.1s both;
}
.hero-principal { color: var(--gold); }
.hero-mentor { color: #C7CBD4; }
.hero-member { color: var(--muted); }
.hero-doctrine {
  font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--gold);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem); max-width: 34rem; margin: 1.4rem auto 0; line-height: 1.5;
  animation: heroRise 1s ease 1.6s both;
}
@keyframes heroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Self-drawing gold divider */
.gold-rule {
  height: 1px; width: 0; max-width: 40rem; margin: 2.5rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: drawLine 1.3s ease 0.4s forwards;
}
@keyframes drawLine { to { width: 100%; } }

/* Dashboard cards */
.dash-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem; max-width: 46rem; margin: 0 auto;
}
.dash-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 1.75rem;
  background: rgba(212,175,55,0.02); text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-color: var(--gold);
}
.dash-label {
  font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.68rem; color: var(--muted);
}
.dash-label.center { text-align: center; }

/* Progress ring */
.ring-wrap { position: relative; width: 132px; height: 132px; margin: 1.1rem 0 0.9rem; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(212,175,55,0.15); stroke-width: 6; }
.ring-fill {
  fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  animation: ringFill 1.6s cubic-bezier(.3,.7,.3,1) 0.8s forwards;
}
@keyframes ringFill { to { stroke-dashoffset: calc(326.7 - 326.7 * var(--pct) / 100); } }
.ring-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Cormorant Garamond", serif; font-size: 2rem; color: var(--text);
}
.ring-pct span { font-size: 1rem; color: var(--muted); margin-left: 1px; }
.progress-caption { color: var(--muted); font-size: 0.85rem; }
.objective-card .objective-line {
  font-family: "Cormorant Garamond", serif; font-size: 1.35rem; margin: 1rem 0 1.4rem; color: var(--text);
}
/* Today's Objective fades in after the ring finishes drawing */
.objective-card { animation: heroRise 0.8s ease 1.6s both; }
/* Directory "Who's Active Today" marks */
.pulse-line { display: inline-flex; align-items: center; gap: 0.45rem; }
.pulse-mark { color: var(--gold); font-size: 0.72rem; }
@media (prefers-reduced-motion: reduce) { .objective-card { animation: none; } }

/* The Library — locked status experience */
.lib-lock { text-align: center; font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.72rem; color: var(--gold); margin-bottom: 2rem; }
.lib-panel { border: 1px solid var(--line); border-radius: 12px; padding: 2rem; background: rgba(212,175,55,0.02); }
.lib-intro { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1rem; }
.lib-intro strong { color: var(--text); }
.lib-access { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.5rem; }
.lib-access-h { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.64rem; color: var(--muted); margin-bottom: 1rem; }
.lib-list { list-style: none; padding: 0; margin: 0; }
.lib-list li { padding: 0.5rem 0; font-family: "Cormorant Garamond", serif; font-size: 1.15rem; display: flex; align-items: center; gap: 0.7rem; }
.lib-list li::before { font-size: 0.85rem; width: 1.1rem; display: inline-block; text-align: center; }
.lib-list li.on { color: var(--text); }
.lib-list li.on::before { content: "\2713"; color: #7ad07a; }
.lib-list li.off { color: var(--muted); }
.lib-list li.off::before { content: "\2715"; color: var(--muted); }
.tier-ladder { display: flex; gap: 0.5rem; justify-content: center; margin: 1.75rem 0; flex-wrap: wrap; }
.tier-ladder .rung { border: 1px solid var(--line); border-radius: 20px; padding: 0.35rem 1rem; font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.66rem; color: var(--muted); }
.tier-ladder .rung.on { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.08); }
.lib-panel .btn { display: block; text-align: center; margin-top: 0.5rem; }

/* The Commons — Directory hero */
.dir-hero { text-align: center; margin-bottom: 2.25rem; }
.dir-eyebrow { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.7rem; color: var(--gold); margin: 0 0 0.4rem; animation: heroRise 0.8s ease 0.15s both; }
.dir-hero h1 { animation: heroRise 0.85s ease 0.3s both; }
.dir-tag { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--muted); font-size: 1.05rem; max-width: 34rem; margin: 0.75rem auto 0; line-height: 1.5; animation: heroRise 0.9s ease 0.5s both; }
@media (prefers-reduced-motion: reduce) { .dir-eyebrow, .dir-hero h1, .dir-tag { animation: none; } }

/* Nav badge (pending requests / unread) */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 10px; background: var(--gold); color: var(--black); font-family: "Jost", sans-serif; font-size: 0.62rem; vertical-align: middle; }

/* Connect bar on profiles */
.connect-bar { display: flex; gap: 0.6rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* Directory / Connections / Network tabs */
.dir-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; flex-wrap: wrap; }
.dir-tabs a { font-family: "Jost", sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 20px; transition: all 0.25s ease; }
.dir-tabs a:hover { color: var(--text); }
.dir-tabs a.active { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* Connection / conversation rows */
.conn-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.conn-id { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.conn-avatar { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: "Cormorant Garamond", serif; font-size: 1.1rem; }
.conn-name { color: var(--text); font-size: 1rem; line-height: 1.3; }
.conn-meta { color: var(--muted); font-size: 0.8rem; }
.conn-actions { flex: 0 0 auto; display: flex; gap: 0.4rem; align-items: center; }

/* Messages thread */
.msg-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.msg-with { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; color: var(--gold); }
.msg-thread { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.msg { max-width: 80%; padding: 0.7rem 0.95rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.4; position: relative; }
.msg-time { display: block; font-size: 0.62rem; color: var(--muted); margin-top: 0.35rem; letter-spacing: 0.05em; }
.msg.mine { align-self: flex-end; background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.3); color: var(--text); }
.msg.theirs { align-self: flex-start; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--text); }
.msg-form { display: flex; gap: 0.6rem; }
.msg-form input[name="body"] { flex: 1; }

/* Doors */
.door-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem; max-width: 58rem; margin: 0 auto;
}
.door { text-decoration: none; display: block; text-align: center; }
.door-panel {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 16rem; border: 2px solid var(--line); border-radius: 6px 6px 3px 3px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(212,175,55,0.05), transparent 30%),
    repeating-linear-gradient(180deg, rgba(212,175,55,0.03) 0 2px, transparent 2px 26px);
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.door-name {
  font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 1.15rem; color: var(--text); z-index: 2;
}
.door-knob {
  position: absolute; right: 1.1rem; top: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,0.25); z-index: 2;
  transition: box-shadow 0.45s ease;
}
.door-light {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  background: radial-gradient(120% 80% at 50% 120%, rgba(212,175,55,0.35), transparent 60%);
  transition: opacity 0.5s ease;
}
.door-lock { position: absolute; top: 0.8rem; left: 50%; transform: translateX(-50%); font-size: 0.9rem; opacity: 0.6; z-index: 2; }
.door-desc { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.9rem; line-height: 1.4; }
.door:hover .door-panel {
  border-color: var(--gold);
  box-shadow: 0 18px 45px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.12);
}
.door:hover .door-light { opacity: 1; }
.door:hover .door-knob { box-shadow: 0 0 12px 3px rgba(212,175,55,0.7); }
.door-locked .door-panel { opacity: 0.55; }

/* ---------- Dashboard phase 2: emblem, standing, rooms as places ---------- */

/* Rotating institutional emblem behind the welcome */
.dash-hero { position: relative; }
.dash-hero > :not(.hero-emblem) { position: relative; z-index: 1; }
.hero-emblem {
  position: absolute; top: 50%; left: 50%; z-index: 0;
  width: min(30rem, 88vw); aspect-ratio: 1;
  transform: translate(-50%, -46%); color: var(--gold); opacity: 0.08; pointer-events: none;
}
.hero-emblem svg { width: 100%; height: 100%; }
.emblem-spin { transform-origin: 100px 100px; animation: emblemSpin 90s linear infinite; }
@keyframes emblemSpin { to { transform: rotate(360deg); } }

/* Standing card */
.standing-title {
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--text); margin-top: 0.2rem;
}

/* Objective list */
.objective-list { list-style: none; padding: 0; margin: 0 0 1.4rem; width: 100%; }
.objective-list li { border-top: 1px solid var(--line); padding: 0.55rem 0; }
.objective-list li:last-child { border-bottom: 1px solid var(--line); }
.objective-list a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.02em;
  display: block; transition: color 0.25s ease, padding-left 0.25s ease;
}
.objective-list a:hover { color: var(--gold); padding-left: 0.4rem; }
.objective-list a::before { content: "— "; color: var(--gold); }

.institution-head { text-align: center; }

/* Room vignette + border trace + status */
.door-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 60px 10px rgba(0,0,0,0.55);
}
.door-trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.door-trace rect {
  fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.75s ease;
}
.door:hover .door-trace rect { stroke-dashoffset: 0; }

.door-scene { position: absolute; inset: 0; z-index: 0; opacity: 0.55; transition: opacity 0.5s ease; }
.door:hover .door-scene { opacity: 0.85; }
/* Education — faint blueprint grid */
.door--library .door-scene {
  background-image:
    repeating-linear-gradient(0deg,  rgba(212,175,55,0.06) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(90deg, rgba(212,175,55,0.05) 0 1px, transparent 1px 15px);
}
/* Connection — constellation dots */
.door--commons .door-scene {
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(212,175,55,0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 25%, rgba(212,175,55,0.4), transparent),
    radial-gradient(1.5px 1.5px at 45% 60%, rgba(212,175,55,0.5), transparent),
    radial-gradient(1.5px 1.5px at 80% 70%, rgba(212,175,55,0.35), transparent),
    radial-gradient(1.5px 1.5px at 30% 80%, rgba(212,175,55,0.4), transparent);
}
/* Community — warm ambient glow, slowly breathing */
.door--assembly .door-scene {
  background: radial-gradient(120% 90% at 50% 110%, rgba(212,175,55,0.16), transparent 60%);
  animation: assemblyGlow 6s ease-in-out infinite;
}
@keyframes assemblyGlow { 0%,100% { opacity: 0.4; } 50% { opacity: 0.75; } }

.door-sub {
  display: block; z-index: 2; color: var(--muted); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.35rem;
}
.door-note { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.85rem; line-height: 1.4; }

.door-status {
  position: absolute; top: 0.85rem; left: 0.9rem; z-index: 3;
  font-family: "Jost", sans-serif; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.12rem 0.5rem; border-radius: 2px; display: inline-flex; align-items: center; gap: 0.35rem;
}
.st-open   { color: var(--gold);  border: 1px solid rgba(212,175,55,0.4); }
.st-live   { color: #7ad07a; border: 1px solid rgba(122,208,122,0.4); }
.st-soon   { color: var(--muted); border: 1px solid var(--line); }
.st-locked { color: var(--muted); border: 1px solid var(--line); }
.st-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7ad07a;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(122,208,122,0.6); } 50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(122,208,122,0); } }

@media (prefers-reduced-motion: reduce) {
  .emblem-spin, .door--assembly .door-scene, .st-live::before { animation: none; }
}

/* ---------- Living rooms ---------- */
/* The Library — a drifting shelf of book spines + floating dust */
.door--library .shelf {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%; opacity: 0.5;
  background: repeating-linear-gradient(90deg,
    rgba(212,175,55,0.20) 0 6px, rgba(212,175,55,0.05) 6px 9px,
    rgba(212,175,55,0.13) 9px 16px, transparent 16px 21px);
  background-size: 84px 100%; animation: shelfDrift 34s linear infinite;
}
@keyframes shelfDrift { to { background-position: 84px 0; } }
.door--library .mote {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--gold);
  opacity: 0.2; animation: moteFloat 8s ease-in-out infinite;
}
.door--library .m1 { left: 22%; bottom: 32%; animation-delay: 0s; }
.door--library .m2 { left: 55%; bottom: 22%; animation-delay: 2.5s; }
.door--library .m3 { left: 78%; bottom: 42%; animation-delay: 5s; }
@keyframes moteFloat { 0%,100% { transform: translateY(0); opacity: 0.12; } 50% { transform: translateY(-15px); opacity: 0.4; } }

/* The Commons — a slowly pulsing constellation network */
.door--commons .net { width: 100%; height: 100%; }
.door--commons .net-lines { animation: netPulse 5s ease-in-out infinite; }
@keyframes netPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }
.door--commons .net circle { animation: twinkle 3.5s ease-in-out infinite; }
.door--commons .net circle:nth-child(2) { animation-delay: 0.6s; }
.door--commons .net circle:nth-child(4) { animation-delay: 1.4s; }
.door--commons .net circle:nth-child(6) { animation-delay: 2.2s; }
@keyframes twinkle { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* The Assembly — silhouettes drifting behind frosted glass */
.door--assembly .sil {
  position: absolute; bottom: 0; width: 38%; height: 68%;
  background: rgba(0,0,0,0.55); filter: blur(5px); border-radius: 46% 46% 0 0;
}
.door--assembly .s1 { left: 14%; animation: silDrift 13s ease-in-out infinite; }
.door--assembly .s2 { left: 50%; height: 58%; animation: silDrift 16s ease-in-out infinite reverse; }
@keyframes silDrift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(18px); } }
.door--assembly .frost { position: absolute; inset: 0; backdrop-filter: blur(3px); background: rgba(18,18,12,0.22); }
.door--assembly .notif {
  position: absolute; top: 26%; right: 20%; width: 8px; height: 8px; border-radius: 50%;
  background: #e0b34d; animation: livePulse 1.9s ease-in-out infinite;
}

/* ---------- Door-opening page transition ---------- */
.door-transition { position: fixed; inset: 0; z-index: 2000; pointer-events: none; visibility: hidden; }
.door-transition.active { visibility: visible; }
.dt-leaf {
  position: absolute; top: 0; height: 100%; width: 51%; background: #0c0c09;
  background-image: repeating-linear-gradient(180deg, rgba(212,175,55,0.06) 0 2px, transparent 2px 32px);
}
.dt-left  { left: 0;  transform: translateX(-100%); border-right: 1px solid var(--gold); }
.dt-right { right: 0; transform: translateX(100%);  border-left: 1px solid var(--gold); }
.door-transition.active .dt-left  { animation: leafL 0.85s ease forwards; }
.door-transition.active .dt-right { animation: leafR 0.85s ease forwards; }
@keyframes leafL { 0% { transform: translateX(-100%); } 42%,58% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes leafR { 0% { transform: translateX(100%); }  42%,58% { transform: translateX(0); } 100% { transform: translateX(100%); } }
.dt-seam {
  position: absolute; top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); opacity: 0;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}
.door-transition.active .dt-seam { animation: seamGlow 0.85s ease forwards; }
@keyframes seamGlow {
  0%,44% { opacity: 0; }
  50% { opacity: 1; box-shadow: 0 0 45px 12px rgba(212,175,55,0.5); }
  70% { opacity: 1; } 100% { opacity: 0; }
}

/* ---------- Community rebuild ---------- */
.comm-hero { text-align: center; margin-bottom: 1.5rem; }
.comm-tag { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--gold); font-size: 1.3rem; margin: 0.3rem 0 0.2rem; }
.comm-sub { color: var(--muted); font-size: 0.9rem; margin: 0; }

.pulse-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
@media (max-width: 34rem) { .pulse-strip { grid-template-columns: 1fr; } }
.pulse-card { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; background: rgba(212,175,55,0.02); }
.pulse-label { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.6rem; color: var(--muted); margin-bottom: 0.5rem; }
.online-row { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-size: 0.95rem; }
.online-row strong { color: var(--gold); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ad07a; animation: livePulse 1.8s ease-in-out infinite; }
.online-names { color: var(--muted); font-size: 0.78rem; margin-top: 0.4rem; }
.spot-name { font-family: "Cormorant Garamond", serif; font-size: 1.25rem; color: var(--text); }
.spot-meta { color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }

.wins-card { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 1.5rem; background: rgba(212,175,55,0.02); }
.wins-list { list-style: none; margin: 0; padding: 0; }
.wins-list li { color: var(--text); font-size: 0.9rem; padding: 0.4rem 0; border-top: 1px solid rgba(212,175,55,0.1); display: flex; justify-content: space-between; gap: 1rem; }
.wins-list li:first-child { border-top: none; }
.wins-ago { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }

.feed-filters { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.filter-tab {
  background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font-family: "Jost", sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 20px; white-space: nowrap; transition: all 0.25s ease;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active { background: var(--gold); border-color: var(--gold); color: var(--black); }

.post-pinned { border-color: rgba(212,175,55,0.5); }
.pinned-flag { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.post-head { position: relative; }
.post-cat {
  margin-left: auto; align-self: flex-start; font-family: "Jost", sans-serif; font-size: 0.55rem;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 2px; border: 1px solid var(--line); color: var(--muted);
}
.cat-announcement { color: var(--gold); border-color: rgba(212,175,55,0.4); }
.cat-win { color: #7ad07a; border-color: rgba(122,208,122,0.4); }
.cat-question { color: #8fb7e0; border-color: rgba(143,183,224,0.4); }

.react-bar { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; }
.react-bar form { display: inline; margin: 0; }
.react-btn {
  background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font: inherit; font-size: 0.85rem; padding: 0.25rem 0.65rem; border-radius: 20px; transition: all 0.2s ease;
}
.react-btn:hover { border-color: var(--gold); color: var(--text); }
.react-btn.on { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.08); }

/* Floating Share button */
.share-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 900;
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  background: var(--gold); color: var(--black); border: none; border-radius: 40px;
  padding: 0.9rem 1.4rem; font-family: "Jost", sans-serif; font-size: 1rem; font-weight: 400;
  box-shadow: 0 8px 30px rgba(212,175,55,0.35); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.share-fab span { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.share-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212,175,55,0.5); }

/* Composer modal */
.composer-modal {
  position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.composer-modal.open { display: flex; }
.composer-box {
  position: relative; width: 100%; max-width: 30rem; background: #14140d;
  border: 1px solid var(--gold); border-radius: 10px; padding: 2rem;
}
.composer-box h2 { margin: 0 0 1.1rem; }
.composer-box textarea { width: 100%; }
.composer-close {
  position: absolute; top: 0.6rem; right: 0.9rem; background: none; border: none;
  color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.composer-close:hover { color: var(--text); }
.composer-row { display: flex; gap: 0.75rem; align-items: center; margin: 0.75rem 0 1.1rem; }
.composer-row select { flex: 1; }
.composer-image {
  border: 1px solid var(--line); border-radius: 6px; padding: 0.55rem 0.9rem; cursor: pointer;
  color: var(--muted); font-size: 0.85rem; white-space: nowrap;
}
.composer-image:hover, .composer-image.has-file { border-color: var(--gold); color: var(--gold); }

@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }

/* ---------- Public front entrance (v2 Phase 1) ---------- */

/* Activity ribbon — quiet Bloomberg-style ticker beneath the nav */
.activity-ribbon { border-bottom: 1px solid var(--line); background: rgba(212,175,55,0.03); overflow: hidden; white-space: nowrap; }
.ribbon-track { display: inline-flex; gap: 2.5rem; padding: 0.5rem 0; animation: ribbon 45s linear infinite; will-change: transform; }
.ribbon-item { color: var(--muted); font-family: "Jost", sans-serif; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; flex: 0 0 auto; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.activity-ribbon:hover .ribbon-track { animation-play-state: paused; }

/* The Movement */
.movement, .journey { text-align: center; }
.move-eyebrow { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.66rem; color: var(--gold); margin-bottom: 0.9rem; }
.move-title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: 0 0 2.2rem; }
.move-block { margin: 0 auto 2rem; max-width: 40rem; }
.move-label { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.64rem; color: var(--muted); margin-bottom: 1rem; }
.chapter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chapter { font-family: "Cormorant Garamond", serif; font-size: 1rem; padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: 2px; }
.chapter.live { color: var(--gold); border-color: var(--gold); }
.chapter.soon { color: var(--muted); border-style: dashed; }
.move-cap { color: var(--muted); font-size: 0.8rem; margin-top: 1rem; }
.move-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 38rem; margin: 0 auto; }
.move-list { list-style: none; padding: 0; margin: 0; }
.move-list li { color: var(--text); padding: 0.35rem 0; font-family: "Cormorant Garamond", serif; font-size: 1.1rem; }
.move-mission { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--gold); font-size: clamp(1.1rem, 2.8vw, 1.5rem); max-width: 34rem; margin: 2.5rem auto 0; line-height: 1.5; }

/* Social proof numbers */
.proof-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 1.5rem; max-width: 52rem; margin: 0 auto; text-align: center; }
.proof-num { font-family: "Cormorant Garamond", serif; font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--gold); line-height: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.proof-label { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.64rem; color: var(--muted); margin-top: 0.55rem; }
.proof-live .online-dot { width: 10px; height: 10px; }

/* The Journey */
.journey-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 1.25rem; max-width: 56rem; margin: 0 auto; }
.journey-step { border: 1px solid var(--line); border-radius: 8px; padding: 1.75rem 1.25rem; transition: transform 0.3s ease, border-color 0.3s ease; }
.journey-step:hover { transform: translateY(-3px); border-color: var(--gold); }
.j-num { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.1rem; margin-bottom: 0.9rem; }
.journey-step h3 { margin: 0 0 0.5rem; font-size: 1.12rem; }
.journey-step p { color: var(--muted); font-size: 0.86rem; margin: 0; line-height: 1.45; }

/* Expanded footer */
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 40rem; margin: 0 auto 2rem; text-align: left; }
.footer-h { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.64rem; color: var(--gold); margin-bottom: 0.6rem; }
.footer-col p { color: var(--muted); font-size: 0.85rem; margin: 0.3rem 0; line-height: 1.5; }
.footer-soon { opacity: 0.7; font-size: 0.78rem; }
.links.social a { color: var(--muted); }

@media (max-width: 34rem) {
  .hero { padding: 4.5rem 1.25rem; }
  .move-cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .proof-band { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* Cards fade up as they enter view */
.reveal-up { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.7,.3,1); }
.reveal-up.in { opacity: 1; transform: none; }

/* Live-activity toasts (bottom-left; Concierge sits bottom-right) */
.toast-stack {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 850;
  display: flex; flex-direction: column-reverse; gap: 0.6rem; pointer-events: none; max-width: min(20rem, 78vw);
}
.toast {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(20,20,13,0.92); border: 1px solid var(--line); border-left: 2px solid var(--gold);
  border-radius: 6px; padding: 0.7rem 0.9rem; color: var(--text); font-size: 0.82rem; line-height: 1.3;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  transform: translateX(-120%); opacity: 0;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1), opacity 0.5s ease;
}
.toast.in { transform: translateX(0); opacity: 1; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: #7ad07a; flex: 0 0 auto; animation: livePulse 1.8s ease-in-out infinite; }
.toast-ico { color: var(--gold); flex: 0 0 auto; }
@media (max-width: 34rem) {
  .toast-stack { left: 0.75rem; bottom: 0.9rem; max-width: 74vw; }
}

/* (Removed the aggressive left/right offset — it read as broken on wide desktop.
   Sections stay centered and balanced; movement comes from reveals + toasts.) */
@media (prefers-reduced-motion: reduce) { .reveal-up { opacity: 1; transform: none; } }

/* ---------- Decluttered nav: slim bar + hamburger menu ---------- */
.site-header { gap: 1rem; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 24px; height: 24px; padding: 0.5rem; margin: -0.5rem; box-sizing: content-box;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; width: 24px; background: var(--gold); }
.site-nav.slim { display: flex; align-items: center; }

@media (min-width: 62rem) {
  .site-header { justify-content: flex-start; }
  .brand { order: 0; }
  .site-nav.slim { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; margin-left: 2.5rem; }
}
@media (max-width: 61.99rem) {
  .site-header { justify-content: flex-start; padding: 1.25rem 1.5rem; }
  .nav-toggle { order: 0; }
  .brand { order: 1; margin: 0 auto; font-size: 1rem; letter-spacing: 0.22em; }
  .site-nav.slim { display: none; }
}

/* Full-screen menu overlay */
.nav-menu { position: fixed; inset: 0; z-index: 2100; background: #0b0b08; opacity: 0; transition: opacity 0.35s ease; overflow-y: auto; }
.nav-menu.open { opacity: 1; }
.nav-menu-inner { max-width: 60rem; margin: 0 auto; padding: 5rem 2rem 3rem; position: relative; }
.nav-close { position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: none; color: var(--muted); font-size: 2.2rem; line-height: 1; cursor: pointer; }
.nav-close:hover { color: var(--gold); }
.nav-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2.5rem; }
.nav-group-h { font-family: "Jost", sans-serif; text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.64rem; color: var(--gold); margin-bottom: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.nav-group a, .nav-soon { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.35rem; color: var(--text); padding: 0.5rem 0; transition: color 0.2s ease, padding-left 0.2s ease; }
.nav-group a:hover { color: var(--gold); padding-left: 0.4rem; }
.nav-soon { color: var(--muted); }
.nav-soon em { font-style: normal; font-family: "Jost", sans-serif; font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 2px; padding: 0.12rem 0.4rem; margin-left: 0.6rem; vertical-align: middle; }
.nav-cta { margin-top: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .nav-menu { transition: none; } }

@media (prefers-reduced-motion: reduce) {
  .ambient-dust { display: none; }
  .hero-eyebrow, .hero-name, .hero-title, .hero-doctrine { animation: none; }
  .gold-rule { width: 100%; animation: none; }
  .ring-fill { animation: none; stroke-dashoffset: calc(326.7 - 326.7 * var(--pct) / 100); }
}

/* ---------- Selects & file inputs ---------- */
.form-card select, .tier-select {
  width: 100%;
  background: var(--black);
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.6rem 0;
}
.tier-select { width: auto; font-size: 0.8rem; }
.form-card select:focus, .tier-select:focus { outline: none; border-bottom-color: var(--gold); }
.form-card input[type="file"] { border-bottom: none; font-size: 0.85rem; color: var(--muted); }

/* ---------- Feed (social layout) ---------- */
.post {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  margin-bottom: 1.5rem;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
}
.post-avatar {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.post-id { min-width: 0; }
.post-author {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  color: var(--text);
  font-size: 0.95rem;
}
.post-tier { margin: 0.15rem 0; }
.post-tier .badge { margin-left: 0; font-size: 0.52rem; }
.post-date { color: var(--muted); font-size: 0.68rem; }
.post-body { padding: 0 1.25rem 1rem; font-size: 0.95rem; }
.post-media { background: rgba(0, 0, 0, 0.4); text-align: center; }
.post-media img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.post footer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 1.25rem 0.9rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.post footer .chip { border: none; padding-left: 0; }

/* ---------- Directory cards ---------- */
.member-card { text-align: left; }
.member-name { margin-bottom: 0.25rem; }
.member-tier { margin: 0.25rem 0 0.75rem; }
.member-tier .badge { margin-left: 0; }
.member-meta { font-size: 0.85rem; margin: 0.15rem 0; }
.member-meta.muted { color: var(--muted); font-size: 0.78rem; }

/* ---------- Profile ---------- */
.profile-hero { text-align: center; margin-bottom: 3rem; }
.profile-hero .avatar {
  width: 84px; height: 84px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem; color: var(--gold);
  letter-spacing: 0.1em;
}
.profile-hero h1 { font-size: 2rem; letter-spacing: 0.12em; text-transform: uppercase; }
.profile-hero .member-tier { margin-top: 0.75rem; }
.profile-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
}
.profile-intro {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}
.profile-progress { text-align: center; margin-bottom: 2rem; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.profile-card label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.75rem 0 0.5rem;
}
.profile-card input, .profile-card textarea, .profile-card select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.6rem 0;
}
.profile-card select { background: var(--black); }
.profile-card input:focus, .profile-card textarea:focus, .profile-card select:focus {
  outline: none; border-bottom-color: var(--gold);
}
.profile-card ::placeholder { color: rgba(143, 138, 126, 0.6); }
.toggle-row {
  display: flex !important;
  gap: 0.6rem;
  align-items: center;
  text-transform: none !important;
  letter-spacing: 0.05em !important;
  cursor: pointer;
}
.toggle-row input { width: auto !important; }
.profile-card .btn { width: 100%; margin-top: 2.5rem; }

.account-h {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}
.profile-card .btn { width: 100%; margin-top: 2rem; }

/* ---------- Progress ---------- */
.progress-track {
  height: 3px;
  background: rgba(212, 175, 55, 0.15);
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--gold); }
.course-progress { max-width: 26rem; margin: 2rem auto 0; }
.study-tally {
  text-align: center;
  margin: 0 auto 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  max-width: 34rem;
}
.tally-num {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.tally-label { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; }
.tally-next { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.5rem; }

/* ---------- Page guides ---------- */
.page-guide {
  text-align: center;
  max-width: 34rem;
  margin: 1.5rem auto 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.guide-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
}
.guide-hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

.chip.danger { border-color: #8a3a33; color: #d99a93; }
.chip.danger:hover { border-color: #d99a93; }

/* ---------- Tiers ---------- */
.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.tier-card {
  border: 1px solid var(--line);
  padding: 2.25rem 1.75rem;
  text-align: center;
}
.tier-card.current { border-color: var(--gold); background: rgba(212, 175, 55, 0.05); }
.tier-card .badge { margin-left: 0; font-size: 0.68rem; padding: 0.3rem 0.9rem; }
.tier-card h3 { font-size: 1.1rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 1.25rem 0 1rem; }
.tier-card p { font-size: 0.9rem; color: var(--text); }
.tier-card .tier-note { color: var(--muted); font-size: 0.8rem; margin-top: 1rem; }

/* ---------- Locked nav / cards ---------- */
.lock { font-size: 0.7em; opacity: 0.7; }
.site-nav a.locked { color: rgba(143, 138, 126, 0.6); }
.site-nav a.locked:hover { color: var(--muted); }
.dept-locked { opacity: 0.55; }
.dept-locked:hover { border-color: var(--gold); opacity: 0.8; }

/* ---------- Directory group view ---------- */
.room-stat { text-align: center; margin: 4rem 0 2rem; }
.room-count {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 5rem;
  line-height: 1;
}
.room-label { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 0.75rem; }
.profession-grid { max-width: 30rem; margin: 0 auto; }
.profession-row {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.profession-count {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 1.1rem;
}

/* ---------- Profile settings accordion ---------- */
.settings-acc { margin-top: 2.5rem; }
.settings-acc summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  list-style: none;
}
.settings-acc summary::-webkit-details-marker { display: none; }
.settings-acc summary:hover { color: var(--gold); border-color: var(--gold); }
.settings-acc[open] summary { color: var(--gold); border-color: var(--gold); }

/* ---------- Studio walkthrough ---------- */
.walkthrough {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 2.5rem 0 1rem;
}
.walk-step { background: var(--black); padding: 2rem 1.5rem; text-align: center; }
.walk-num {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 1.8rem;
  display: block;
}
.walk-step h3 { font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0.75rem 0; }
.walk-step p { color: var(--muted); font-size: 0.85rem; }

/* ---------- Socials on profiles ---------- */
.socials { margin-top: 0.75rem; }
.socials span {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.2rem 1.25rem 0.2rem 0;
}

/* ---------- Host blocks (education) ---------- */
.host-block { margin-top: 4rem; }
.host-name {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

/* ---------- Lessons ---------- */
.lesson { border-top: 1px solid var(--line); padding: 3rem 0; }
.lesson h2 { font-size: 1.3rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem; }
.video-frame { position: relative; padding-top: 56.25%; margin: 1.5rem 0; }
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 1px solid var(--line);
}
.lesson-body { max-width: 40rem; margin: 1rem auto 0; }

/* ---------- Studio ---------- */
.course-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
}
.course-box > h2 {
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
}

.form-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ---------- Class bar ---------- */
.class-bar {
  display: block;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gold);
  color: var(--black);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}
.class-bar span { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.class-bar:hover { filter: brightness(1.07); }

/* ---------- Countdown ---------- */
.countdown-band {
  text-align: center;
  border: 1px solid var(--gold);
  max-width: 40rem;
  margin: 4rem auto 0;
  padding: 3rem 2rem;
}
.countdown-band .over {
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.75rem 0;
}
.count-unit .num {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-unit .lbl {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.seats-line {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.15rem;
}
.seats-line strong { font-style: normal; }
.seats-sub { color: var(--muted); font-size: 0.8rem; margin-top: 0.5rem; }

.hero-count {
  background: rgba(10, 10, 10, 0.82);
  margin-top: 3rem;
  position: relative;
}
.hero-count .btn { margin-top: 1.5rem; }
.seat-row { margin: 1.1rem 0 0.25rem; }
.seat-dot {
  display: inline-block;
  width: 11px; height: 11px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin: 0 4px;
  vertical-align: middle;
}
.seat-dot.filled { background: var(--gold); }
.urgent-line { font-size: 1.35rem; }
@keyframes count-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.count-unit .num.pulse { animation: count-pulse 1s ease-in-out infinite; }

@media (max-width: 700px) {
  .countdown { gap: 1.1rem; }
  .count-unit .num { font-size: 2rem; }
  .countdown-band { padding: 2rem 1.25rem; margin-top: 2.5rem; }
}

/* ---------- Concierge ---------- */
#concierge { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90; }
#concierge-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--black);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
#concierge-toggle .c-mark {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 1.6rem;
}
#concierge-toggle:hover { background: rgba(212, 175, 55, 0.1); }
#concierge-panel {
  position: absolute;
  right: 0; bottom: 72px;
  width: min(340px, calc(100vw - 2rem));
  background: var(--black);
  border: 1px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
#concierge-panel[hidden] { display: none; }
.c-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.c-title {
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.c-sub { color: var(--muted); font-size: 0.72rem; margin-top: 0.15rem; }
.c-messages {
  height: 300px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.c-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.87rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.c-them { background: rgba(212, 175, 55, 0.08); border: 1px solid var(--line); align-self: flex-start; }
.c-me { background: var(--gold); color: var(--black); align-self: flex-end; }
.c-input { display: flex; border-top: 1px solid var(--line); }
.c-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.87rem;
  padding: 0.85rem 1rem;
}
.c-input input:focus { outline: none; }
.c-input button {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.1rem;
  padding: 0 1.1rem;
  cursor: pointer;
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .site-header { flex-direction: column; gap: 1rem; padding: 1.25rem 1rem; }
  .brand { font-size: 1rem; letter-spacing: 0.25em; }
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.1rem;
  }
  .site-nav a { margin: 0; font-size: 0.68rem; letter-spacing: 0.2em; }

  .page { padding: 0 1.25rem; }
  .members-main { padding: 2.25rem 1.25rem; }
  .members-main h1 { font-size: 1.5rem; letter-spacing: 0.1em; }
  .section { padding: 3rem 0; }
  .section h2 { font-size: 1.25rem; }
  .page-title { padding-top: 3.5rem; }
  .statement { font-size: 1.35rem; margin: 3.5rem auto; }
  .hero { padding: 6rem 1.25rem; }

  .page-guide { margin: 1.25rem auto 2rem; }
  .guide-line { font-size: 1.1rem; }

  .dept-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pillars, .tier-cards, .walkthrough { grid-template-columns: 1fr; }

  .profile-grid, .form-duo { grid-template-columns: 1fr; gap: 0; }
  .profile-card { padding: 1.75rem 1.25rem; }
  .profile-hero .avatar { width: 68px; height: 68px; font-size: 1.5rem; }
  .profile-hero h1 { font-size: 1.5rem; }

  .auth-wrap { padding: 1.25rem; }
  .auth-card { padding: 2.25rem 1.5rem; }

  .gate .wordmark { letter-spacing: 0.3em; font-size: 1.3rem; }
  .gate .motto { letter-spacing: 0.25em; font-size: 0.7rem; }
  .btn { padding: 1rem 2.25rem; letter-spacing: 0.25em; }

  .post { border-radius: 6px; margin-bottom: 1.1rem; }
  .post-head { padding: 0.85rem 1rem; gap: 0.75rem; }
  .post-avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 0.9rem; }
  .post-body { padding: 0 1rem 0.85rem; font-size: 0.92rem; }
  .post footer { padding: 0.5rem 1rem 0.75rem; }
  .post-media img { max-height: 380px; }

  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 0.6rem 0.4rem; }

  .course-box { padding: 1.75rem 1.25rem; }
  .study-tally { padding: 1rem; }
  .room-count { font-size: 3.5rem; }
  .lesson { padding: 2.25rem 0; }

  .site-footer { padding: 2.5rem 1.25rem; }
  .site-footer .links a { display: inline-block; margin: 0.25rem 0.75rem; }
}
