/* NBEC website — base styles layered on top of Tailwind (Play CDN).
   Institutional navy + gold theme, Roboto Serif / Lato type. */

:root {
  --color-navy-950: #080F1E;
  --color-navy-900: #0F1C33;
  --color-navy-800: #162A4A;
  --color-navy-700: #1E3A66;
  --color-navy-600: #264A80;
  --color-gold-500: #C5961A;
  --color-gold-400: #D4A82E;
  --color-institutional-text: #1A1A2E;
}

html {
  scroll-behavior: smooth;
  font-size: 17.5px;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--color-institutional-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Serif', Georgia, serif;
}

/* Visually hidden until focused, so keyboard users can jump past the
   repeated header/nav straight to each page's content. */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: #fff;
  color: var(--color-institutional-text);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-gold-500);
  outline-offset: 2px;
}

::selection {
  background: var(--color-gold-500);
  color: #fff;
}

/* Hide scrollbars where needed */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Subtle dark texture for the hero / footer */
.bg-grid-gold {
  background-image:
    linear-gradient(rgba(212, 168, 46, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 46, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Gold accent rule under section headings */
.rule-gold::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, var(--color-gold-500), var(--color-gold-400));
  border-radius: 2px;
}
.rule-gold.rule-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Rotating words — the phrases stack on top of each other inside a one-line
   mask, so only the current one shows. Each swap rolls the outgoing phrase up
   and out while the incoming one rises into its place. */
.word-rotator__viewport {
  display: block;
  position: relative;
  overflow: hidden;
  /* Extra room below the mask so descenders (g, p, y) are not sliced off, then
     pulled back out of the layout so the heading's line spacing is unchanged. */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.word-rotator__item {
  position: absolute;
  top: 0;
  left: 0;
  /* Parked below the mask until its turn; the current phrase overrides this.
     white-space is inherited, so each phrase wraps the way the heading does. */
  opacity: 0;
  transform: translateY(100%);
}
.word-rotator__item.is-current,
.word-rotator__item.is-leaving {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.word-rotator__item.is-current {
  /* The showing phrase is the only one left in flow, so the mask is always
     exactly as tall as the line it holds — whatever the heading's leading is. */
  position: relative;
  opacity: 1;
  transform: none;
}
.word-rotator__item.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

/* No rotation for reduced-motion users: the first phrase simply sits there. */
@media (prefers-reduced-motion: reduce) {
  .word-rotator__item.is-current {
    transition: none;
  }
}

/* Active nav link */
.nav-link.active {
  color: var(--color-gold-400);
}
.nav-link.active::after {
  width: 100%;
}
.nav-link::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-gold-400);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ===== Board members slideshow ===== */
.board-carousel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.board-viewport {
  flex: 1 1 auto;
  overflow: hidden;
}
.board-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.board-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding: 0.25rem;
}
.board-card {
  width: 100%;
  max-width: 340px;
}
.board-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--color-navy-700);
  background: linear-gradient(160deg, var(--color-navy-800), var(--color-navy-950));
}
.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.board-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212, 168, 46, 0.35);
}
.board-placeholder svg {
  width: 45%;
  height: 45%;
}
.board-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy-950);
  background: linear-gradient(90deg, var(--color-gold-500), var(--color-gold-400));
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}
.board-cap {
  margin-top: 1rem;
  text-align: center;
}
.board-role {
  font-weight: 700;
  color: var(--color-navy-900);
}
.board-name {
  margin-top: 0.15rem;
  color: var(--color-gold-600, #8B6914);
  font-style: italic;
}
.board-note {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: #5b6472;
}
.board-nav {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--color-institutional-border, #E5E7EB);
  background: #fff;
  color: var(--color-navy-900);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.board-nav svg {
  width: 1.35rem;
  height: 1.35rem;
}
.board-nav:hover {
  background: var(--color-navy-900);
  color: var(--color-gold-400);
  border-color: var(--color-navy-900);
}
.board-nav:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 2px;
}
.board-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.board-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: #CBD2DC;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.board-dot:hover {
  background: var(--color-gold-400);
}
.board-dot.is-active {
  background: var(--color-gold-500);
  transform: scale(1.25);
}
@media (prefers-reduced-motion: reduce) {
  .board-track {
    transition: none;
  }
}

/* ===== Pathway step connectors (arrows) ===== */
.pathway-flow > li {
  position: relative;
}
/* Default (stacked, single column): downward arrow into the gap below */
.pathway-flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.85rem;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--color-gold-500);
}
/* Two-column wrap (sm–md): hide to avoid mismatched directions */
@media (min-width: 640px) and (max-width: 1023px) {
  .pathway-flow > li::after {
    content: none;
  }
}
/* Single horizontal row (lg+): right-pointing arrow into the gap to the right */
@media (min-width: 1024px) {
  .pathway-flow > li:not(:last-child)::after {
    left: auto;
    bottom: auto;
    top: 50%;
    right: -0.85rem;
    transform: translateY(-50%);
    border-left: 9px solid var(--color-gold-500);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 0;
  }
}

/* ===== Reference-style restyle overrides ===== */
.nbec-page {
  background: #f7f5f0;
  color: #1f2937;
}

.nbec-page html,
.nbec-page body {
  font-size: 16px;
}

.nbec-page body,
.nbec-page {
  font-family: "Lato", system-ui, sans-serif;
}

.nbec-page h1,
.nbec-page h2,
.nbec-page h3,
.nbec-page h4,
.nbec-page h5,
.nbec-page h6 {
  font-family: "Roboto Serif", Georgia, serif;
  letter-spacing: -0.01em;
}

.nbec-page #site-header.site-header-shell {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(14px);
}

.nbec-page #site-header.site-header-shell.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
}

.nbec-page .site-nav-shell {
  padding-top: 0;
  padding-bottom: 0;
}

.nbec-page .site-brand img {
  height: 3.8rem;
}

.nbec-page .site-brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
}

.nbec-page .site-brand-kicker {
  /* #a8853d measured ~3.3:1 on the header's near-white background, short of
     WCAG AA's 4.5:1 for normal text; this value measures ~5.1:1. */
  color: #8B6914 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.22em !important;
  line-height: 1.1;
}

.nbec-page .site-brand-title {
  color: #0f1e3a !important;
  font-size: 0.95rem !important;
  line-height: 1.25;
  letter-spacing: -0.01em !important;
}

.nbec-page .site-primary-links .nav-link {
  color: #5b6472;
  font-size: 1rem;
  font-weight: 500;
}

.nbec-page .site-primary-links .nav-link:hover,
.nbec-page .site-primary-links .nav-link.active {
  color: #0f1e3a;
}

.nbec-page .site-primary-links .nav-link::after {
  background: #c9a44c;
  height: 2px;
}

.nbec-page .site-header-cta {
  border-radius: 0 !important;
  background: #c9a44c !important;
  border: 1px solid #c9a44c !important;
  color: #0f1e3a !important;
  box-shadow: none !important;
}

.nbec-page .site-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f1e3a !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0 !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nbec-page .site-menu-toggle svg {
  display: block;
}

.nbec-page .site-menu-toggle:hover,
.nbec-page .site-menu-toggle.is-open {
  background: #0f1e3a !important;
  color: #ffffff !important;
  border-color: #0f1e3a !important;
}

.nbec-page .site-menu-toggle:focus-visible {
  outline: 2px solid #c9a44c;
  outline-offset: 2px;
}

.nbec-page .site-mobile-menu {
  background: #0f1e3a !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 36px rgba(15, 30, 58, 0.28);
}

.nbec-page .site-mobile-menu > div {
  color: rgba(255, 255, 255, 0.92) !important;
}

.nbec-page .site-mobile-menu a {
  color: rgba(255, 255, 255, 0.92) !important;
}

.nbec-page .site-mobile-menu .menu-link {
  display: block;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12) !important;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: rgba(201, 164, 76, 0.18);
}

.nbec-page .site-mobile-menu .menu-link:link,
.nbec-page .site-mobile-menu .menu-link:visited {
  color: rgba(255, 255, 255, 0.92) !important;
}

.nbec-page .site-mobile-menu .menu-link:hover,
.nbec-page .site-mobile-menu .menu-link:focus-visible,
.nbec-page .site-mobile-menu .menu-link:active,
.nbec-page .site-mobile-menu .menu-link.active {
  color: #ffffff !important;
  background: rgba(201, 164, 76, 0.18);
  border-color: rgba(201, 164, 76, 0.45) !important;
}

.nbec-page .site-mobile-menu .menu-link:focus-visible {
  outline: 2px solid #c9a44c;
  outline-offset: 2px;
}

@media (max-width: 1279px) {
  .nbec-page .site-menu-toggle {
    display: inline-flex !important;
  }
}

@media (min-width: 1280px) {
  .nbec-page .site-menu-toggle,
  .nbec-page .site-mobile-menu {
    display: none !important;
  }
}

.nbec-page.home-page .home-hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 11rem !important;
  padding-bottom: 7rem !important;
  background: #0f1e3a !important;
}

.nbec-page.home-page .home-hero-section::before,
.nbec-page.home-page .home-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
}

.nbec-page.home-page .home-hero-section::before {
  background: url("reference-hero-gsl.jpeg") center center / cover no-repeat;
  opacity: 0.34;
  transform: scale(1.03);
}

.nbec-page.home-page .home-hero-section::after {
  background:
    radial-gradient(circle at 14% 28%, rgba(201, 164, 76, 0.12), transparent 18rem),
    radial-gradient(circle at 90% 72%, rgba(35, 65, 117, 0.3), transparent 24rem),
    radial-gradient(circle at 50% 50%, rgba(201, 164, 76, 0.05), transparent 30rem),
    linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(15, 30, 58, 0.82) 50%, rgba(10, 22, 40, 0.95) 100%);
}

.nbec-page.home-page .home-hero-section > div {
  position: relative;
  z-index: 1;
}

.nbec-page.home-page .hero-copy-block {
  max-width: 56rem !important;
}

.nbec-page.home-page .hero-lockup {
  margin-bottom: 2rem;
}

.nbec-page.home-page .hero-lockup-text {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e7c97a !important;
}

.nbec-page.home-page .hero-lockup-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 2rem;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.28);
}

/* One fluid scale from 320px phones through large desktops — no step changes. */
.nbec-page.home-page .hero-home-title {
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.5rem, 4.4vw, 40px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Below desktop the phrases wrap naturally so they never overflow the viewport. */
.nbec-page.home-page .hero-home-title > span {
  white-space: normal;
}

/* From 1024px up there is room to hold each phrase on its own line. */
@media (min-width: 1024px) {
  .nbec-page.home-page .hero-home-title {
    width: fit-content;
    line-height: 1.06 !important;
    letter-spacing: -0.02em;
  }

  .nbec-page.home-page .hero-home-title > span {
    white-space: nowrap;
  }
}

.nbec-page.home-page .hero-copy-block > p:first-of-type {
  max-width: 42rem;
  margin-top: 1.5rem !important;
  font-size: 1.25rem !important;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78) !important;
}

.nbec-page.home-page .hero-copy-block .hero-button {
  border-radius: 0 !important;
  min-height: 52px;
  padding: 0.9rem 1.6rem !important;
  box-shadow: none !important;
}

.nbec-page.home-page .hero-button-primary {
  background: #c9a44c !important;
  border: 1px solid #c9a44c !important;
  color: #0f1e3a !important;
}

.nbec-page.home-page .hero-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: transparent !important;
  color: #ffffff !important;
}

.nbec-page.home-page .stats {
  background: #fff;
  border-bottom: 1px solid var(--color-institutional-border, #e5e7eb);
}

.nbec-page.home-page .stats__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .nbec-page.home-page .stats__grid {
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    grid-template-columns: none;
  }
}

.nbec-page.home-page .stat {
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--color-institutional-border, #e5e7eb);
}

.nbec-page.home-page .stat:last-child {
  border-right: 0;
}

@media (max-width: 639px) {
  .nbec-page.home-page .stat {
    border-right: 0;
    border-bottom: 1px solid var(--color-institutional-border, #e5e7eb);
  }

  .nbec-page.home-page .stat:last-child {
    border-bottom: 0;
  }
}

.nbec-page.home-page .stat__num {
  margin: 0;
  font-family: 'Roboto Serif', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #0f1e3a;
}

.nbec-page.home-page .stat__label {
  margin: 0.5rem 0 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5b6472;
}

.nbec-page .page-hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10.25rem !important;
  padding-bottom: 5rem !important;
  background: #0f1e3a !important;
}

.nbec-page .page-hero-section::before,
.nbec-page .page-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
}

.nbec-page .page-hero-section::before {
  background: url("reference-hero-gsl.jpeg") center center / cover no-repeat;
  opacity: 0.18;
}

.nbec-page .page-hero-section::after {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92), rgba(15, 30, 58, 0.82));
}

.nbec-page .page-hero-copy {
  position: relative;
  z-index: 1;
}

.nbec-page .page-hero-section h1 {
  font-size: clamp(2.7rem, 5vw, 54px) !important;
  line-height: 1.05 !important;
}

.nbec-page .page-hero-section p {
  color: rgba(255, 255, 255, 0.76) !important;
}

.nbec-page .page-hero-section nav {
  color: rgba(255, 255, 255, 0.62) !important;
}

.nbec-page .rule-gold::after {
  display: none !important;
}

.nbec-page main > section:not(.home-hero-section):not(.page-hero-section) {
  position: relative;
}

.nbec-page .rounded-xl,
.nbec-page .rounded-2xl,
.nbec-page .rounded-lg,
.nbec-page .rounded-md {
  border-radius: 0.9rem !important;
}

.nbec-page .bg-white {
  background-color: #ffffff !important;
}

.nbec-page .text-institutional-muted,
.nbec-page p.text-sm,
.nbec-page p {
  color: #5b6472;
}

.nbec-page .border,
.nbec-page .border-y,
.nbec-page .border-t,
.nbec-page .border-b,
.nbec-page .border-institutional-border,
.nbec-page .border-navy-700,
.nbec-page .border-navy-800 {
  border-color: #e5e7eb !important;
}

.nbec-page article,
.nbec-page .reveal.rounded-xl,
.nbec-page .reveal.rounded-2xl,
.nbec-page .reveal.flex.gap-4.rounded-lg,
.nbec-page .reveal.rounded-xl.border,
.nbec-page .reveal.rounded-2xl.border {
  box-shadow: none !important;
}

.nbec-page .bg-gold-500\/10,
.nbec-page .bg-gold-500\/15,
.nbec-page .bg-gold-500\/5,
.nbec-page .bg-gold-50\/40 {
  background-color: rgba(201, 164, 76, 0.08) !important;
}

.nbec-page .inline-flex.items-center.rounded-md,
.nbec-page .mt-7.inline-flex.items-center.gap-2.rounded-md,
.nbec-page .mt-3.text-center.rounded-md {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.nbec-page .pathway-flow > li,
.nbec-page .board-card,
.nbec-page .board-nav,
.nbec-page .board-photo,
.nbec-page .board-slide figure,
.nbec-page .board-slide .board-photo,
.nbec-page .board-slide .board-cap,
.nbec-page ol > li.reveal,
.nbec-page .grid > div > div.reveal,
.nbec-page .grid > div.reveal,
.nbec-page .grid article.reveal {
  box-shadow: none !important;
}

.nbec-page .bg-navy-900,
.nbec-page .bg-navy-900\/60,
.nbec-page .bg-navy-950 {
  background-color: #0f1e3a !important;
}

.nbec-page .bg-navy-950.bg-grid-gold,
.nbec-page .bg-navy-900.bg-grid-gold {
  background-image:
    linear-gradient(rgba(212, 168, 46, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 46, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.nbec-page .board-nav {
  border: 1.5px solid #e5e7eb !important;
}

.nbec-page .site-footer-shell {
  background: #0a1628 !important;
}

.nbec-page .site-footer-shell .border-t,
.nbec-page .site-footer-shell .border-navy-800 {
  border-color: rgba(255, 255, 255, 0.09) !important;
}

@media (max-width: 1279px) {
  .nbec-page .site-nav-shell {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .nbec-page.home-page .home-hero-section {
    padding-top: 9rem !important;
    padding-bottom: 5rem !important;
  }
}

@media (max-width: 640px) {
  .nbec-page .site-brand img {
    height: 3.25rem;
  }

  .nbec-page .site-brand-title {
    font-size: 0.88rem !important;
  }

  .nbec-page.home-page .hero-lockup {
    gap: 0.9rem;
  }

  .nbec-page.home-page .hero-lockup-text {
    font-size: 0.72rem !important;
  }
}
