:root {
  --ink: #071821;
  --ink-soft: #102631;
  --paper: #f7f2e8;
  --paper-deep: #eee7d9;
  --white: #ffffff;
  --blue: #0b55ff;
  --green: #7bc64d;
  --coral: #f05f49;
  --line: rgba(7, 24, 33, 0.16);
  --muted: #536066;
  --shadow: 0 28px 70px rgba(7, 24, 33, 0.18);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.45;
}

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

img {
  display: block;
  max-width: 100%;
}

.photo-slot {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end start;
  min-height: 320px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(7, 24, 33, 0.22), rgba(7, 24, 33, 0.8)),
    var(--slot-image),
    linear-gradient(145deg, #2f3d40, #77817b);
  background-position: center;
  background-size: cover;
}

.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mix-blend-mode: overlay;
  opacity: 0.44;
}

.photo-slot::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.photo-slot span {
  max-width: 320px;
  margin: 22px;
  padding-top: 16px;
  border-top: 4px solid var(--green);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.photo-slot-hero {
  --slot-image: url("/assets/img/uploads/hero-meeting.png");
}

.photo-slot-learning {
  --slot-image: url("/assets/img/uploads/meeting-learning.png");
}

.photo-slot-member {
  --slot-image: url("/assets/img/uploads/member-profile.png");
}

.photo-slot-leadership {
  --slot-image: url("/assets/img/uploads/leadership-team.png");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 18px clamp(22px, 5vw, 64px);
  color: var(--white);
  background: rgba(7, 24, 33, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-bng {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-copy strong {
  max-width: 120px;
  color: var(--green);
  font-size: 1rem;
  line-height: 1.02;
}

.brand-copy small {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--green);
}

.nav-action {
  color: var(--green) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 94px);
  padding: clamp(58px, 8vw, 104px) clamp(22px, 5vw, 64px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 25%, rgba(11, 85, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #051017 0%, #071821 52%, #082536 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  position: absolute;
  top: 150px;
  left: clamp(22px, 5vw, 64px);
  width: 8px;
  height: 230px;
  background: repeating-linear-gradient(to bottom, var(--blue) 0 8px, transparent 8px 26px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-left: clamp(28px, 5vw, 68px);
  align-self: center;
}

.hero h1 {
  margin: 0;
  max-width: 800px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 span:nth-child(2) {
  color: var(--green);
}

.hero h1 span:nth-child(3) {
  color: var(--blue);
}

.hero-copy p {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 60px;
  padding: 16px 28px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-outline {
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 560px;
}

.meeting-orbit {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  min-height: 500px;
  margin: 0;
  overflow: hidden;
  border-radius: 260px 260px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.meeting-orbit img {
  width: 100%;
}

.network-lines {
  position: absolute;
  inset: 0;
}

.network-lines::before,
.network-lines::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.42);
  transform-origin: left;
}

.network-lines::before {
  top: 126px;
  right: 120px;
  width: 300px;
  height: 2px;
  transform: rotate(16deg);
}

.network-lines::after {
  top: 250px;
  right: 70px;
  width: 340px;
  height: 2px;
  transform: rotate(-28deg);
}

.network-lines span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
}

.network-lines span:nth-child(1) { top: 94px; right: 320px; background: var(--green); }
.network-lines span:nth-child(2) { top: 140px; right: 70px; background: var(--blue); width: 44px; height: 44px; }
.network-lines span:nth-child(3) { top: 260px; right: 26px; background: var(--coral); width: 42px; height: 42px; }
.network-lines span:nth-child(4) { top: 285px; right: 330px; width: 14px; height: 14px; }
.network-lines span:nth-child(5) { top: 72px; right: 460px; width: 14px; height: 14px; }

.philosophy,
.rhythm,
.member-preview,
.referral-flow,
.leadership-section,
.visit-section {
  padding: clamp(64px, 8vw, 110px) clamp(22px, 5vw, 64px);
}

.philosophy {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.9fr) minmax(340px, 0.82fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--paper);
}

.side-label,
.section-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: center;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.philosophy h2 {
  max-width: 760px;
}

.philosophy h2::after,
.member-copy h2::after,
.visit-copy h2::after {
  content: "";
  display: block;
  width: 270px;
  height: 9px;
  margin-top: 10px;
  background: var(--green);
  transform: skewX(-16deg);
}

.philosophy p,
.member-copy p,
.leadership-copy p,
.visit-copy p {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.06rem;
}

.philosophy strong {
  display: block;
  margin-top: 24px;
}

.philosophy-art {
  position: relative;
  min-height: 370px;
}

.philosophy-art img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 440px);
}

.shape {
  position: absolute;
  border-radius: 50%;
}

.shape.half {
  top: 10px;
  left: 16px;
  width: 170px;
  height: 260px;
  background: var(--green);
  border-radius: 170px 0 0 170px;
}

.shape.dot {
  top: 150px;
  left: 0;
  width: 98px;
  height: 98px;
  background: var(--coral);
}

.rhythm {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 0.8fr) minmax(260px, 0.72fr);
  padding-top: 0;
  padding-bottom: 0;
  background: var(--paper-deep);
}

.rhythm-panel,
.hand-note {
  min-height: 520px;
}

.rhythm-photo {
  align-self: stretch;
  margin-left: calc(clamp(22px, 5vw, 64px) * -1);
}

.rhythm-panel {
  padding: clamp(34px, 5vw, 58px);
  color: var(--white);
  background: var(--ink);
}

.rhythm-panel h2 {
  max-width: 440px;
  margin-top: 12px;
}

.rhythm-panel ul {
  display: grid;
  gap: 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.rhythm-panel li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.rhythm-panel li::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 40%, rgba(123, 198, 77, 0.25));
}

.rhythm-panel strong,
.rhythm-panel span {
  display: block;
}

.rhythm-panel strong {
  color: var(--green);
}

.rhythm-panel span {
  max-width: 310px;
  color: rgba(255, 255, 255, 0.76);
}

.hand-note {
  position: relative;
  padding: clamp(36px, 5vw, 64px);
  background: var(--paper);
  overflow: hidden;
}

.hand-note span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  font-style: italic;
  line-height: 0.98;
}

.hand-note span:last-of-type::after {
  content: "";
  display: block;
  width: 220px;
  height: 8px;
  margin-top: 8px;
  background: var(--blue);
  transform: rotate(-3deg);
}

.hand-note img {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 84%;
  opacity: 0.8;
}

.member-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(280px, 0.62fr) minmax(360px, 0.92fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background: var(--paper);
}

.directory-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  padding: clamp(64px, 8vw, 110px) clamp(22px, 5vw, 64px);
  background: #ebe5d8;
}

.directory-section p {
  color: var(--muted);
}

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

.directory-grid article {
  min-height: 220px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.directory-grid strong,
.directory-grid span,
.directory-grid small {
  display: block;
}

.directory-grid strong {
  font-size: 1.12rem;
}

.directory-grid span {
  margin-top: 5px;
  color: var(--blue);
  font-weight: 900;
}

.directory-grid small {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
}

.member-image,
.leadership-image {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 22px 62px rgba(7, 24, 33, 0.13);
}

.member-image {
  transform: rotate(-1.25deg);
  aspect-ratio: 4 / 3;
}

.portal-mockup {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(7, 24, 33, 0.16);
}

.portal-mockup aside {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 18px;
  background: #f3f4f7;
  border-right: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 800;
}

.portal-mockup aside strong {
  color: var(--ink);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.portal-mockup aside span {
  color: var(--muted);
}

.portal-mockup aside .active {
  color: var(--blue);
}

.mock-content {
  padding: clamp(26px, 4vw, 44px);
}

.mock-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar,
.portrait {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.mock-profile strong,
.mock-profile span {
  display: block;
}

.mock-profile span {
  color: var(--muted);
}

.mock-content p {
  max-width: 330px;
  color: var(--muted);
}

.mock-content button {
  padding: 12px 16px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  font-weight: 900;
}

.activity {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.activity span {
  color: var(--muted);
}

.referral-flow {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 85, 255, 0.24) 1px, transparent 1px),
    linear-gradient(var(--ink), var(--ink-soft));
  background-size: 64px 64px, auto;
}

.referral-flow h2 {
  max-width: 650px;
  margin-top: 10px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(36px, 6vw, 72px);
}

.flow-steps article {
  position: relative;
  min-height: 230px;
}

.flow-steps article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 52px;
  right: -24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 2.6rem;
}

.flow-steps span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.6rem;
}

.flow-steps strong {
  display: block;
  margin-top: 22px;
  color: var(--green);
  font-size: 1.15rem;
}

.flow-steps p {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.76);
}

.referral-flow em {
  display: block;
  margin-top: 22px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.leadership-section {
  display: grid;
  grid-template-columns: 58px minmax(260px, 0.54fr) minmax(360px, 0.88fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  background: var(--paper);
}

.leadership-image {
  grid-column: 2 / -1;
  aspect-ratio: 16 / 7;
}

.role-line {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.role-line article {
  min-width: 0;
}

.portrait {
  width: 132px;
  height: 132px;
  margin-bottom: 18px;
  font-size: 3rem;
  border-radius: 50%;
}

.role-line article:nth-child(2) .portrait {
  background: var(--green);
}

.role-line article:nth-child(3) .portrait {
  background: var(--blue);
}

.role-line article:nth-child(4) .portrait {
  background: var(--coral);
}

.role-line strong,
.role-line span {
  display: block;
}

.role-line strong {
  color: var(--blue);
}

.role-line span {
  color: var(--muted);
  font-size: 0.9rem;
}

.role-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.visit-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(400px, 1fr) minmax(220px, 0.45fr);
  gap: clamp(28px, 5vw, 56px);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.visit-copy {
  position: relative;
  z-index: 1;
}

.visit-copy p {
  color: rgba(255, 255, 255, 0.8);
}

.application-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: start;
  padding: 4px;
  background: var(--paper);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(7, 24, 33, 0.16);
  border-radius: 0;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.full,
.application-form button {
  grid-column: 1 / -1;
}

.consent {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 6px 4px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.notice.success {
  border-left: 8px solid var(--green);
}

.notice.error {
  border-left: 8px solid var(--coral);
}

.closing-note {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-height: 420px;
  padding: 32px;
  color: var(--ink);
  background: var(--green);
}

.closing-note span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  font-style: italic;
  line-height: 0.96;
}

.closing-note span:last-child::after {
  content: "";
  display: block;
  width: 210px;
  height: 7px;
  margin-top: 10px;
  background: var(--ink);
  transform: rotate(-3deg);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #02090d;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: var(--green);
  font-weight: 900;
}

.portal-body {
  min-height: 100vh;
  color: var(--white);
  background: var(--ink);
}

.portal-app {
  min-height: 100vh;
  color: var(--ink);
  background: #ebe5d8;
}

.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 26px;
  color: var(--white);
  background: var(--ink);
}

.portal-brand {
  display: grid;
  gap: 4px;
}

.portal-brand strong,
.portal-login-brand strong {
  font-size: 3rem;
  line-height: 0.85;
}

.portal-brand span,
.portal-login-brand span {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-sidebar nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.portal-sidebar nav a,
.portal-logout {
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.portal-sidebar nav a.active,
.portal-sidebar nav a:hover,
.portal-logout:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.portal-main {
  min-height: 100vh;
  margin-left: 270px;
  padding: clamp(22px, 4vw, 50px);
}

.portal-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.portal-topbar p {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.92;
}

.portal-topbar > span {
  font-weight: 900;
}

.portal-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.stats-grid article,
.portal-panel {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(7, 24, 33, 0.08);
}

.stats-grid span,
.portal-list span {
  display: block;
  color: var(--muted);
}

.stats-grid strong {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}

.portal-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.portal-panel h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.portal-list {
  display: grid;
  gap: 12px;
}

.portal-list a,
.portal-list > div,
.meeting-list article {
  display: block;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.portal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.portal-form .full {
  grid-column: 1 / -1;
}

.portal-form select,
.portal-form input,
.portal-form textarea,
.rsvp-form select,
.rsvp-form input,
.admin-table select,
.admin-table input {
  min-height: 44px;
  padding: 11px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  font: inherit;
}

.portal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.portal-check input {
  width: auto;
  min-height: 0;
}

.rsvp-form,
.admin-table form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-table form {
  grid-template-columns: minmax(220px, 1fr) 150px 150px 160px auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.admin-table strong span {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-list div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.comment-list span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 8px solid var(--blue);
  font-weight: 900;
}

.portal-flash.success {
  border-color: var(--green);
}

.portal-flash.error {
  border-color: var(--coral);
}

.portal-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.portal-login .brand {
  position: fixed;
  top: 28px;
  left: 28px;
}

.login-card {
  width: min(100%, 560px);
  padding: clamp(30px, 5vw, 52px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.login-card p {
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-card button:disabled,
.login-card input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .hero,
  .philosophy,
  .rhythm,
  .member-preview,
  .directory-section,
  .leadership-section,
  .visit-section {
    grid-template-columns: 1fr;
  }

  .side-label {
    writing-mode: horizontal-tb;
    transform: none;
    justify-self: start;
  }

  .rhythm-photo {
    margin-left: 0;
  }

  .rhythm-photo,
  .rhythm-panel,
  .hand-note {
    min-height: 420px;
  }

  .role-line,
  .directory-grid,
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-image,
  .role-line {
    grid-column: auto;
  }

  .flow-steps article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 82px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-action {
    color: var(--blue) !important;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy {
    padding-left: 28px;
  }

  .hero-dots {
    top: 128px;
    height: 180px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .meeting-orbit {
    border-radius: 180px 180px 0 0;
  }

  .portal-mockup,
  .application-form,
  .role-line,
  .directory-grid,
  .flow-steps,
  .portal-two,
  .stats-grid,
  .portal-form,
  .rsvp-form,
  .admin-table form {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    width: auto;
  }

  .portal-main {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .brand-bng {
    font-size: 2rem;
  }

  .brand-copy strong {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 17vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h2 {
    font-size: clamp(2.45rem, 14vw, 3.8rem);
  }

  .philosophy h2::after,
  .member-copy h2::after,
  .visit-copy h2::after {
    width: 190px;
  }

  .philosophy-art {
    min-height: 300px;
  }

  .portal-login .brand {
    position: static;
    margin-bottom: 26px;
  }
}
