:root {
  --ivory: #f7f3ea;
  --paper: #fffaf0;
  --linen: #ece2d0;
  --ink: #141923;
  --muted: #5d6471;
  --navy: #06144a;
  --navy-2: #02082a;
  --red: #c51f2f;
  --gold: #d7b14a;
  --gold-deep: #9b7624;
  --green: #566b43;
  --line: rgba(20, 25, 35, 0.14);
  --line-dark: rgba(247, 243, 234, 0.18);
  --shadow: 0 24px 60px rgba(6, 20, 74, 0.14);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--ivory);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  background:
    linear-gradient(90deg, rgba(6, 20, 74, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--ivory), #fbf8f1 38%, var(--ivory));
  background-size: 84px 84px, auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }
main { overflow: hidden; }
::selection { background: var(--gold); color: var(--navy-2); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.eyebrow {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.centered { text-align: center; }
.spaced { margin-top: 0.9rem; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.8rem);
  color: var(--paper);
  background: rgba(2, 8, 42, 0.94);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 12px 28px rgba(2, 8, 42, 0.2);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  letter-spacing: 0.02em;
}

.bb-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(215, 177, 74, 0.55);
}

.nav-brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-suffix {
  color: var(--gold);
  font-style: normal;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-color: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  padding: clamp(3.8rem, 9vw, 6.5rem) clamp(1rem, 5vw, 3rem);
  color: var(--paper);
  text-align: center;
  background:
    linear-gradient(rgba(2, 8, 42, 0.74), rgba(2, 8, 42, 0.9)),
    radial-gradient(circle at 50% 28%, rgba(215, 177, 74, 0.22), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: clamp(0.9rem, 2vw, 1.5rem);
  pointer-events: none;
  border: 1px solid rgba(215, 177, 74, 0.38);
}

.hero::after {
  inset: clamp(1.35rem, 3vw, 2.2rem);
  border-color: rgba(255, 250, 240, 0.16);
}

.hero-frame {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-crest {
  display: block;
  width: clamp(112px, 16vw, 168px);
  height: auto;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 5px rgba(215, 177, 74, 0.36),
    0 22px 54px rgba(0, 0, 0, 0.36);
}

.hero .eyebrow { color: var(--gold); }

.hero h1 {
  margin-top: 0.55rem;
  color: #fffdf8;
  font-size: clamp(3.1rem, 10vw, 7.2rem);
  letter-spacing: 0;
}

.hero-sub {
  margin-top: 0.6rem;
  color: rgba(255, 250, 240, 0.82);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-style: italic;
}

.motto-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  max-width: 100%;
  margin-top: 2.2rem;
  padding: 0.78rem clamp(1rem, 4vw, 1.8rem);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.motto-ribbon span:not(.diamond) {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diamond {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.2rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: var(--navy-2); border: 1px solid var(--gold); }
.button.secondary { color: var(--paper); border: 1px solid rgba(255, 250, 240, 0.34); }
.button.secondary:hover { border-color: var(--gold); }

/* Sections */
section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 3rem);
}

.section-inner {
  width: min(100%, 800px);
  margin: 0 auto;
}

.section-inner.wide { width: min(100%, 1080px); }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 5vw, 3.4rem);
  text-align: center;
}

.section-head h2 {
  margin-top: 0.55rem;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.rule {
  width: 74px;
  height: 2px;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.lede {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.62rem);
  line-height: 1.58;
}

.prose-body {
  max-width: 67ch;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.prose-body p + p { margin-top: 1.1rem; }

.history,
.staff,
.mission-objectives,
.contact {
  background: linear-gradient(180deg, var(--linen), #f2eadb);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Growth cards */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.domain-card {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid rgba(155, 118, 36, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.domain-card .mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.9rem;
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  border: 1px solid rgba(155, 118, 36, 0.35);
  border-radius: 50%;
  background: #fffdf8;
}

.domain-card h3 {
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Values */
.pillar-roll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.pillar-roll li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.62rem 1.1rem;
  list-style: none;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(6, 20, 74, 0.06);
  font-family: var(--font-display);
  font-size: 1.06rem;
}

.pillar-roll li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}

.pillars-lede,
.contact-lede {
  max-width: 62ch;
  margin: 1.2rem auto 0;
  color: var(--muted);
  text-align: center;
}

/* Lists */
.numbered-list {
  max-width: 740px;
  margin: 1.7rem auto 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
}

.numbered-list li {
  position: relative;
  counter-increment: n;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.numbered-list li:last-child { border-bottom: 0; }

.numbered-list li::before {
  content: counter(n, decimal-leading-zero);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}

.numbered-list li span {
  color: var(--muted);
  font-size: 1.01rem;
}

.numbered-list strong { color: var(--navy); }

.subhead {
  margin-top: clamp(2.5rem, 5vw, 3.6rem);
  text-align: center;
}

/* Staff */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
}

.staff-card {
  padding: clamp(1.6rem, 4vw, 2.25rem);
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(155, 118, 36, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.staff-photo {
  display: block;
  width: min(100%, 240px);
  aspect-ratio: 4 / 5;
  height: auto;
  margin: 0 auto 1.15rem;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 20, 74, 0.16);
}

.staff-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  color: var(--paper);
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.staff-card h3 {
  color: var(--navy);
  font-size: 1.28rem;
}

.staff-role {
  display: block;
  margin-top: 0.4rem;
}

.staff-department {
  max-width: 28ch;
  margin: 0.55rem auto 0;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

.staff-bio {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Activities */
.activity-list {
  max-width: 660px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.activity-list li:last-child { border-bottom: 0; }
.activity-list .diamond { background: var(--red); }

/* Vision and mission */
.vm {
  color: var(--paper);
  background:
    linear-gradient(rgba(2, 8, 42, 0.9), rgba(2, 8, 42, 0.94)),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  width: min(100%, 1040px);
  margin: 0 auto;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.vm-divider { background: var(--line-dark); }

.vm-col {
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}

.vm-col .eyebrow { color: var(--gold); }

.statement {
  margin-top: 1rem;
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.62rem);
  font-style: italic;
  line-height: 1.5;
}

/* Join */
.join { text-align: center; }
.inline-link { color: var(--gold-deep); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.join-card {
  position: relative;
  max-width: 680px;
  margin: 2.2rem auto 0;
  padding: clamp(1.6rem, 4vw, 2.45rem);
  color: var(--muted);
  text-align: left;
  background: var(--paper);
  border: 1px solid rgba(155, 118, 36, 0.36);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.join-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(155, 118, 36, 0.18);
  border-radius: 5px;
}

.join-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 1.25rem;
  padding: 0.5rem 0.95rem;
  color: var(--navy);
  background: rgba(215, 177, 74, 0.18);
  border: 1px solid rgba(155, 118, 36, 0.32);
  border-radius: 6px;
  font-family: var(--font-display);
  font-style: italic;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1rem 0.25rem;
  cursor: pointer;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.12rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-size: 1.45rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  max-width: 64ch;
  padding: 0 0.25rem 1.25rem;
  color: var(--muted);
}

/* Contact */
.contact-card {
  max-width: 660px;
  margin: 2rem auto 0;
  padding: clamp(1.6rem, 4vw, 2.35rem);
  background: var(--paper);
  border: 1px solid rgba(155, 118, 36, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-org {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.28rem;
  text-align: center;
}

.contact-address {
  margin-top: 0.35rem;
  color: var(--muted);
  text-align: center;
}

.contact-divider {
  height: 1px;
  margin: 1.35rem 0;
  background: var(--line);
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.contact-row .label {
  flex: 0 0 auto;
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-row a,
.contact-row .value {
  color: var(--navy);
  text-align: right;
  text-decoration: none;
}

.contact-row a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
footer {
  position: relative;
  padding: clamp(2.6rem, 6vw, 3.8rem) 1rem;
  color: rgba(255, 250, 240, 0.74);
  text-align: center;
  background: var(--navy-2);
}

.footer-logo {
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

footer .org-line {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

footer .fine {
  max-width: 52ch;
  margin: 0.55rem auto 0;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 760px;
  margin: 1.35rem auto 0;
}

.footer-socials a,
.footer-socials span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.48rem 0.8rem;
  color: rgba(255, 250, 240, 0.82);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-socials svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-socials a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.to-top {
  margin-top: 1.5rem;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.to-top:hover {
  color: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--navy-2);
    border-bottom: 1px solid var(--line-dark);
    transition: max-height 0.25s ease;
  }

  .nav-links.open { max-height: 560px; }

  .nav-links a {
    display: flex;
    min-height: 48px;
    padding: 0 1.2rem;
    border-bottom: 1px solid var(--line-dark);
  }

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

@media (max-width: 640px) {
  .hero {
    min-height: calc(100svh - 58px);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero::before { inset: 0.75rem; }
  .hero::after { display: none; }

  .hero-actions { display: grid; }
  .button { width: 100%; }

  .domain-grid,
  .staff-grid,
  .vm-grid {
    grid-template-columns: 1fr;
  }

  .vm-divider { height: 1px; }

  .numbered-list li {
    grid-template-columns: 42px 1fr;
    gap: 0.8rem;
  }

  .contact-row {
    display: grid;
    gap: 0.25rem;
  }

  .contact-row a,
  .contact-row .value {
    text-align: left;
    overflow-wrap: anywhere;
  }
}
