/* SOA Ottawa — demonstration site
   Navy / cream / gold. Institutional, not flashy. */

:root {
  --navy: #0c2340;
  --navy-mid: #16325c;
  --navy-soft: #1e406e;
  --cream: #f3eee4;
  --cream-deep: #e8e0d0;
  --paper: #fbf8f1;
  --gold: #b8954a;
  --gold-bright: #d4b56a;
  --gold-dim: #8f7338;
  --ink: #1b1814;
  --muted: #5c574e;
  --line: #d6cdbb;
  --line-soft: #e6dece;
  --error: #8c2f3e;
  --error-bg: #f7ecee;
  --success: #2a5c44;
  --success-bg: #e8f1ec;
  --info-bg: #eef2f7;
  --warn: #8a5a12;
  --warn-bg: #f6eedc;
  --shadow: 0 18px 40px rgba(12, 35, 64, 0.08);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", Calibri, system-ui, sans-serif;
  --header-h: 96px;
  --radius: 4px;
  --wrap-pad: 24px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

body {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-dim);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

/* ---------- Header (public) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: rgba(6, 12, 22, 0.96);
  border: none;
  box-shadow: inset 0 1px 0 rgba(212, 181, 106, 0.55), 0 1px 0 rgba(212, 181, 106, 0.22);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 18%, #f0dd9a 50%, var(--gold-bright) 82%, transparent);
  pointer-events: none;
}

.site-header-inner,
.portal-header-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand .crest {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  background: transparent;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
}

.crest {
  display: block;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
}

.portal-header .brand .crest {
  width: 44px;
  height: 44px;
  filter: none;
}

.brand:hover {
  color: inherit;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1;
}

.site-header .brand-name {
  font-size: 1.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.68);
  margin-top: 4px;
  white-space: nowrap;
}

.site-header .brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(212, 181, 106, 0.85);
  margin-top: 7px;
}

.header-spacer {
  flex: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  text-decoration: none;
  color: rgba(243, 238, 228, 0.82);
  padding: 10px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--gold-bright);
}

.nav a[aria-current="page"] {
  color: var(--gold-bright);
  box-shadow: inset 0 -1px 0 var(--gold-bright);
}

.nav a.btn {
  margin-left: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(212, 181, 106, 0.7);
  color: var(--gold-bright);
  box-shadow: none;
}

.nav a.btn-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.nav-panel-foot {
  display: none;
}

body.home .site-header,
body.has-photo-header .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(4, 8, 16, 0.78) 0%, rgba(4, 8, 16, 0.28) 62%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(212, 181, 106, 0.45);
}

body.home .site-header.is-scrolled,
body.has-photo-header .site-header.is-scrolled {
  position: fixed;
  top: 0;
  background: rgba(6, 12, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(212, 181, 106, 0.5), 0 18px 40px rgba(0, 0, 0, 0.35);
}

body.home .site-header.open,
body.has-photo-header .site-header.open {
  background: #080e18;
  box-shadow: inset 0 1px 0 rgba(212, 181, 106, 0.45);
}

body.login-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(4, 8, 16, 0.82) 0%, rgba(4, 8, 16, 0.35) 70%, transparent 100%);
  box-shadow: none;
}

body.login-page .site-header::before {
  content: none;
}

body.login-page .site-header.open {
  background: #080e18;
  box-shadow: none;
}

body.login-page #main {
  padding: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: none;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-bright);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.open .nav-toggle,
.portal-chrome.nav-open .nav-toggle {
  background: none;
  border: 0;
}

.site-header.open .nav-toggle-bars span:nth-child(1),
.portal-chrome.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.open .nav-toggle-bars span:nth-child(2),
.portal-chrome.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.site-header.open .nav-toggle-bars span:nth-child(3),
.portal-chrome.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Header (portal) ---------- */

.portal-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
}

.portal-header {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  height: 72px;
  box-shadow: inset 0 1px 0 rgba(212, 181, 106, 0.5);
}

.portal-header::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 18%, #f0dd9a 50%, var(--gold-bright) 82%, transparent);
  pointer-events: none;
}

.portal-header-inner {
  padding: 0 24px;
  min-height: 72px;
  height: 100%;
}

.portal-header .brand-name,
.portal-header .brand-sub {
  color: var(--cream);
}

.portal-header .brand-sub {
  opacity: 0.75;
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.portal-user-trigger {
  border-radius: 8px;
  line-height: 1.25;
  padding: 4px 6px 4px 4px;
  width: auto;
}

.portal-user-trigger:hover,
.portal-user.open .portal-user-trigger {
  background: rgba(255, 255, 255, 0.06);
}

.portal-user .account-dropdown {
  right: 0;
}

.member-avatar {
  border-radius: 50%;
  border: none;
  object-fit: cover;
  flex-shrink: 0;
}

.member-avatar-empty {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
}

.member-avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 0.82rem;
}

.member-avatar-nav {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.member-avatar-lg {
  width: 84px;
  height: 84px;
  font-size: 1.7rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-menu {
  position: relative;
  flex-shrink: 0;
}

.header-account {
  margin-left: 6px;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 50%;
  line-height: 0;
}

.header-account .account-trigger:hover {
  opacity: 0.88;
}

.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 5;
}

.account-menu.open .account-dropdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-who {
  margin: 0 8px 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 181, 106, 0.9);
}

.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(243, 238, 228, 0.9);
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
}

.account-dropdown form {
  margin: 0;
}

.nav-account {
  display: none;
}

.portal-user .who {
  text-align: right;
  line-height: 1.25;
}

.portal-user .who strong {
  display: block;
  font-weight: 600;
}

.portal-user .who span {
  color: var(--gold-bright);
  font-size: 0.78rem;
}

.portal-subnav {
  background: #0a1628;
  border-top: 1px solid rgba(184, 149, 74, 0.4);
  border-bottom: 1px solid rgba(8, 18, 32, 0.45);
}

.portal-subnav-inner {
  list-style: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.portal-subnav-inner > li {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.nav-item-admin {
  margin-left: auto;
}

.portal-subnav-inner > li.nav-item-signout,
.portal-subnav-inner > li.nav-item-account {
  display: none;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(243, 238, 228, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 15px 16px 17px;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: inset 0 -2px 0 transparent;
  appearance: none;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.subnav-link:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: -2px;
  color: #fff;
}

.subnav-link:hover {
  color: #fff;
}

.subnav-link[aria-current="page"],
.subnav-link.is-current,
.subnav-link[aria-current="true"] {
  color: #fff;
  box-shadow:
    inset 0 -2px 0 var(--gold-bright),
    0 10px 28px rgba(212, 181, 106, 0.12);
}

.subnav-more[aria-expanded="true"] {
  color: #fff;
}

.nav-chevron {
  display: block;
  flex-shrink: 0;
  opacity: 0.8;
  transition: transform 0.15s ease;
}

.nav-item-group.open .nav-chevron,
.subnav-more[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.subnav-admin {
  margin: 8px 0;
  padding: 6px 12px;
  border: 1px solid rgba(243, 238, 228, 0.28);
  color: rgba(243, 238, 228, 0.92);
  box-shadow: none;
}

.subnav-admin:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(243, 238, 228, 0.5);
}

.nav-item-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  box-shadow: 0 16px 32px rgba(12, 35, 64, 0.16);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-item-group.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .nav-item-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--cream);
  color: var(--navy);
}

.nav-dropdown a[aria-current="page"] {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  line-height: 1.2;
}

.btn:hover {
  background: var(--navy-soft);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--cream-deep);
  color: var(--navy);
}

.btn-light {
  background: transparent;
  border-color: rgba(243, 238, 228, 0.4);
  color: var(--cream);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-danger {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:hover {
  background: var(--error-bg);
  color: var(--error);
}

.btn-small {
  padding: 7px 12px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.page {
  min-height: calc(100vh - var(--header-h) - 180px);
}

.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #0e1c33 0%, #0a1628 100%);
  color: var(--cream);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 72%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
  z-index: 0;
}

.photo-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: photo-kenburns 32s ease-out forwards;
}

.photo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 12, 22, 0.82) 0%, rgba(6, 12, 22, 0.52) 48%, rgba(6, 12, 22, 0.28) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.32) 0%, transparent 36%, rgba(6, 12, 22, 0.45) 100%);
}

.photo-media-about img {
  object-position: 0% 28%;
  transform-origin: 8% 34%;
  transform: scale(2.05) translateX(30%);
  animation: photo-kenburns-about 36s ease-out forwards;
}

.photo-media-about::after {
  background:
    linear-gradient(90deg, rgba(6, 12, 22, 0.9) 0%, rgba(6, 12, 22, 0.78) 26%, rgba(6, 12, 22, 0.32) 52%, rgba(6, 12, 22, 0.14) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.28) 0%, transparent 42%, rgba(6, 12, 22, 0.42) 100%);
}

.photo-media-contact img {
  object-position: 78% 12%;
  transform: scale(1.18) translateY(14%);
  animation: none;
}

.photo-media-contact::after {
  background:
    linear-gradient(100deg, rgba(6, 12, 22, 0.88) 0%, rgba(6, 12, 22, 0.58) 44%, rgba(6, 12, 22, 0.32) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.3) 0%, transparent 42%, rgba(6, 12, 22, 0.48) 100%);
}

.photo-media-login img {
  object-position: 48% 28%;
}

.photo-media-login::after {
  background:
    linear-gradient(90deg, rgba(6, 12, 22, 0.78) 0%, rgba(6, 12, 22, 0.62) 42%, rgba(6, 12, 22, 0.5) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.35) 0%, rgba(6, 12, 22, 0.28) 100%);
}

.photo-media-portal img {
  object-position: 50% 78%;
}

.photo-media-portal::after {
  background:
    linear-gradient(100deg, rgba(6, 12, 22, 0.72) 0%, rgba(6, 12, 22, 0.46) 52%, rgba(6, 12, 22, 0.26) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.2) 0%, transparent 48%, rgba(6, 12, 22, 0.3) 100%);
}

.photo-media-portal-home img {
  object-position: 36% 38%;
}

.photo-media-portal-home::after {
  background:
    linear-gradient(105deg, rgba(6, 12, 22, 0.88) 0%, rgba(6, 12, 22, 0.58) 48%, rgba(6, 12, 22, 0.32) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.3) 0%, transparent 40%, rgba(6, 12, 22, 0.46) 100%);
}

@keyframes photo-kenburns {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

@keyframes photo-kenburns-about {
  from {
    transform: scale(2.12) translateX(30%);
  }

  to {
    transform: scale(2.05) translateX(30%);
  }
}

.hero-stage .wrap {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 128px 0 96px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.15em;
  color: #f6f1e6;
}

.hero .of-the {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.hero .service {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--cream);
  margin-bottom: 18px;
}

.hero-stage .tagline {
  font-size: 1.15rem;
  color: var(--gold-bright);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-stage .lede {
  color: rgba(243, 238, 228, 0.78);
  max-width: 38em;
  font-size: 1.05rem;
}

.tagline {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 16px;
}

.lede {
  color: var(--muted);
  max-width: 38em;
  font-size: 1.05rem;
}

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

.hero-stage .btn-ghost {
  border-color: rgba(212, 181, 106, 0.55);
  color: var(--cream);
}

.hero-stage .btn-ghost:hover {
  background: rgba(212, 181, 106, 0.14);
  color: #fff;
}

.hero-copy {
  min-width: 0;
}

.hero-aside {
  display: flex;
  justify-content: center;
}

.seal-card {
  background: transparent;
  color: var(--navy);
  padding: 0;
  text-align: center;
  box-shadow: none;
  border: none;
  min-width: 0;
}

.seal-card .crest {
  width: min(300px, 72vw);
  height: min(300px, 72vw);
  margin: 0 auto;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.seal-card p {
  margin-top: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.life-band {
  position: relative;
  overflow: hidden;
  background: #060c16;
}

.life-stage {
  position: relative;
  height: 420px;
}

.life-frames {
  position: absolute;
  inset: 0;
}

.life-band figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #060c16;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.1s ease,
    visibility 1.1s ease;
  z-index: 1;
}

.life-band figure.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.life-band figure.is-leaving {
  opacity: 0;
  visibility: visible;
  z-index: 3;
}

.life-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
  will-change: transform;
}

.life-band figure.is-active img {
  transform: scale(1);
}

.life-community img {
  object-position: 48% 10%;
}

.life-ceremony img {
  object-position: 40% 20%;
}

.life-command img {
  object-position: 50% 5%;
}

.life-podium img {
  object-position: 64% 14%;
}

.life-medals img {
  object-position: 36% 20%;
}

.life-speaker img {
  object-position: 72% 12%;
}

.life-band-hq img {
  object-position: 78% 42%;
}

.life-band figcaption {
  position: absolute;
  left: 28px;
  right: auto;
  bottom: 28px;
  margin: 0;
  padding: 0;
  background: none;
  text-shadow: 0 1px 14px rgba(6, 12, 22, 0.95);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}

.life-band figure.is-active figcaption {
  opacity: 1;
  transform: translateY(0);
}

.life-progress {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.life-progress span {
  flex: 1;
  height: 2px;
  background: rgba(243, 238, 228, 0.22);
  overflow: hidden;
}

.life-progress span i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-bright);
}

.life-progress span.is-done i {
  width: 100%;
}

.life-progress span.is-live i {
  width: 100%;
  animation: life-progress-fill 5.5s linear forwards;
}

@keyframes life-progress-fill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.split-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 380px;
  background: #0a1628;
}

.split-photo img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: 62% 18%;
}

.split-photo figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 16px 18px;
  background: rgba(6, 12, 22, 0.82);
  border-top: 2px solid var(--gold);
  color: var(--cream);
}

.split-photo strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-bright);
}

.split-photo span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(243, 238, 228, 0.82);
}

.pillars {
  background: var(--navy);
  color: var(--cream);
  padding: 48px 0;
}

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

.pillar h3 {
  color: var(--gold-bright);
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.pillar p {
  color: rgba(243, 238, 228, 0.82);
  font-size: 0.98rem;
}

.section {
  padding: 56px 0;
}

.section-cream {
  background: var(--paper);
}

.calendar-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(620px, 78vh, 860px);
  display: flex;
  align-items: center;
  padding: 88px 0;
  margin: 0;
  background: linear-gradient(180deg, #0e1c33 0%, var(--navy) 42%, #081526 100%);
  scroll-margin-top: 88px;
}

.calendar-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(30, 64, 110, 0.35) 0%, transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 28%, transparent 70%, rgba(0, 0, 0, 0.35) 100%);
  box-shadow:
    inset 0 90px 100px rgba(0, 0, 0, 0.35),
    inset 0 -110px 120px rgba(0, 0, 0, 0.45);
}

.calendar-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 58% at 28% 48%, rgba(212, 181, 106, 0.12) 0%, transparent 68%),
    linear-gradient(115deg, transparent 18%, rgba(212, 181, 106, 0.06) 32%, transparent 48%);
}

.calendar-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0, 0, 0, 0.04) 3px, rgba(0, 0, 0, 0.04) 4px);
}

.calendar-layout {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.calendar-panel {
  position: relative;
  width: min(460px, 100%);
  margin: 0;
  margin-right: auto;
  padding: 42px 40px 34px;
  background:
    linear-gradient(165deg, rgba(255, 253, 248, 0.98) 0%, rgba(251, 248, 241, 0.96) 50%, rgba(236, 227, 208, 0.97) 100%);
  border: 1px solid rgba(212, 181, 106, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 36px 80px rgba(0, 0, 0, 0.55),
    0 0 0 12px rgba(6, 12, 22, 0.22),
    0 0 120px rgba(212, 181, 106, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: calendar-panel-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.calendar-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(184, 149, 74, 0.32);
  pointer-events: none;
}

.calendar-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 1;
}

.calendar-corner::before,
.calendar-corner::after {
  content: "";
  position: absolute;
  background: var(--gold-bright);
}

.calendar-corner-tl { top: 3px; left: 3px; }
.calendar-corner-tr { top: 3px; right: 3px; }
.calendar-corner-bl { bottom: 3px; left: 3px; }
.calendar-corner-br { bottom: 3px; right: 3px; }

.calendar-corner-tl::before,
.calendar-corner-tr::before,
.calendar-corner-bl::before,
.calendar-corner-br::before {
  width: 18px;
  height: 2px;
  top: 0;
  left: 0;
}

.calendar-corner-tl::after,
.calendar-corner-tr::after,
.calendar-corner-bl::after,
.calendar-corner-br::after {
  width: 2px;
  height: 18px;
  top: 0;
  left: 0;
}

.calendar-corner-tr::before { left: auto; right: 0; }
.calendar-corner-tr::after { left: auto; right: 0; }
.calendar-corner-bl::before { top: auto; bottom: 0; }
.calendar-corner-bl::after { top: auto; bottom: 0; }
.calendar-corner-br::before { top: auto; bottom: 0; left: auto; right: 0; }
.calendar-corner-br::after { top: auto; bottom: 0; left: auto; right: 0; }

.calendar-section .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6e5829;
  margin-bottom: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.calendar-section .kicker::before,
.calendar-section .kicker::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 149, 74, 0.85), transparent);
}

.calendar-section .kicker::before {
  width: 22px;
  flex: 0 0 22px;
}

.calendar-section .kicker::after {
  flex: 1 1 auto;
}

.calendar-section h2 {
  color: var(--navy);
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.calendar-place {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  color: #7a6540;
  letter-spacing: 0.04em;
}

.calendar-agenda {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(184, 149, 74, 0.28);
}

.calendar-agenda li {
  position: relative;
  margin: 0;
  padding: 20px 6px 20px 38px;
  animation: calendar-item-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.2s + (var(--i, 0) * 0.12s));
}

.calendar-agenda li + li {
  border-top: 1px solid rgba(12, 35, 64, 0.1);
}

.calendar-agenda li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 55%, #8a6b2e);
  box-shadow:
    0 0 0 3px rgba(184, 149, 74, 0.2),
    0 0 12px rgba(212, 181, 106, 0.45);
}

.calendar-agenda li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 42px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(184, 149, 74, 0.75), rgba(184, 149, 74, 0.15));
  border-radius: 1px;
}

.calendar-item .when {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  font-style: italic;
  color: #5c4922;
  line-height: 1.3;
}

.calendar-item h3 {
  margin: 0;
  font-size: 1.38rem;
  color: var(--navy);
  line-height: 1.22;
  transition: color 0.2s ease;
}

.calendar-agenda li:hover h3 {
  color: #16325c;
}

@keyframes calendar-panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes calendar-item-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section h2 {
  font-size: 2rem;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 700;
  margin-bottom: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat {
  border-top: 2px solid var(--gold);
  padding-top: 12px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}

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

.news-teaser {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 24px 28px;
}

.news-teaser .date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(243, 238, 228, 0.75);
  padding: 36px 0 28px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.site-footer strong {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--gold-bright);
}

.privacy-line {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 149, 74, 0.25);
  font-size: 0.8rem;
  color: rgba(243, 238, 228, 0.55);
}

/* ---------- Auth ---------- */

.auth-page {
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid;
  place-items: start center;
  padding: 48px 24px 64px;
}

/* Login */

.login-stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 32px) 0 56px;
  background: linear-gradient(180deg, #0e1c33 0%, #0a1628 100%);
  color: var(--cream);
}

.login-stage-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 78%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
  z-index: 1;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.login-welcome {
  padding-right: clamp(0px, 3vw, 24px);
  animation: login-rise 1s ease both;
}

.login-crest {
  margin-bottom: 28px;
}

.login-crest .crest {
  width: min(148px, 34vw);
  height: min(148px, 34vw);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.login-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(212, 181, 106, 0.9);
  font-weight: 600;
}

.login-association {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.08;
  color: #f6f1e6;
}

.login-motto {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--gold-bright);
}

.login-poem {
  margin: 22px 0 0;
  max-width: 26em;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(243, 238, 228, 0.76);
}

.login-panel {
  animation: login-rise 1s ease 0.12s both;
}

.login-panel-inner {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  padding: 36px 34px 32px;
}

.login-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 181, 106, 0.92);
  font-weight: 700;
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  color: #f6f1e6;
}

.login-sub {
  margin: 0 0 24px;
  color: rgba(243, 238, 228, 0.72);
  font-size: 0.96rem;
  line-height: 1.5;
}

.login-form .field label {
  color: rgba(243, 238, 228, 0.9);
}

.login-form .field input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f6f1e6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form .password-field input {
  padding-right: 72px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--gold-dim);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px 8px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--navy);
  outline: none;
}

.login-form .password-toggle {
  color: rgba(212, 181, 106, 0.92);
}

.login-form .password-toggle:hover,
.login-form .password-toggle:focus-visible {
  color: #fff;
}

.login-form .field input::placeholder {
  color: rgba(243, 238, 228, 0.38);
}

.login-form .field input:focus {
  outline: none;
  border-color: rgba(212, 181, 106, 0.65);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(184, 149, 74, 0.18);
}

.login-form .field input:-webkit-autofill,
.login-form .field input:-webkit-autofill:hover,
.login-form .field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(15, 31, 56, 0.85) inset;
  -webkit-text-fill-color: #f6f1e6;
  caret-color: #f6f1e6;
  transition: background-color 9999s ease-out 0s;
}

.login-form .field-row {
  color: rgba(243, 238, 228, 0.82);
}

.login-form .check {
  color: rgba(243, 238, 228, 0.82);
}

.login-forgot {
  color: var(--gold-bright);
  font-weight: 600;
  text-decoration: none;
}

.login-forgot:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-submit {
  padding: 13px 20px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: 10px;
  border: 1px solid rgba(212, 181, 106, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.login-panel .form-error,
.login-panel .form-info,
.login-panel .form-success {
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-return {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.login-return a {
  color: rgba(243, 238, 228, 0.58);
  text-decoration: none;
}

.login-return a:hover {
  color: var(--gold-bright);
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .login-stage {
    padding-top: calc(var(--header-h) + 20px);
    align-items: start;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-welcome {
    text-align: center;
    padding-right: 0;
  }

  .login-crest {
    display: flex;
    justify-content: center;
  }

  .login-poem {
    margin-left: auto;
    margin-right: auto;
  }

  .login-panel-inner {
    padding: 28px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-welcome,
  .login-panel {
    animation: none;
  }
}

.auth-card {
  width: min(440px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card-wide {
  width: min(520px, 100%);
}

.auth-head {
  background: var(--navy);
  color: var(--cream);
  padding: 22px 28px 18px;
  border-bottom: 2px solid var(--gold);
}

.auth-head h1 {
  color: var(--cream);
  font-size: 1.8rem;
  margin: 0;
}

.auth-head p {
  margin: 6px 0 0;
  color: rgba(243, 238, 228, 0.75);
  font-size: 0.92rem;
}

.auth-body {
  padding: 24px 28px 28px;
}

.invite-note {
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  margin-bottom: 20px;
}

.demo-accounts {
  background: var(--info-bg);
  border: 1px solid #d3dce8;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.demo-accounts h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin: 0 0 8px;
}

.demo-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #d3dce8;
  cursor: pointer;
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  text-align: left;
  color: inherit;
}

.demo-row:hover {
  color: var(--navy);
}

.demo-row span:first-child {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-row code {
  font-size: 0.8rem;
  background: transparent;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy-mid);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
}

/* ---------- Forms ---------- */

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold-dim);
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
  font-size: 0.9rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #e2c4ca;
  padding: 10px 12px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.form-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #b7d2c4;
  padding: 10px 12px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.form-info {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #e4d3a8;
  padding: 10px 12px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.inbox-panel {
  text-align: center;
  padding: 8px 0 4px;
}

.inbox-panel h2 {
  font-size: 1.6rem;
}

.reset-link {
  display: inline-block;
  margin-top: 8px;
}

/* ---------- Portal ---------- */

.portal-page {
  background: #050b14;
  min-height: calc(100vh - 120px);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.portal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 52px 0 92px;
  background: linear-gradient(180deg, #0e1c33 0%, #0a1628 100%);
  color: var(--cream);
}

.portal-hero-home {
  padding: 64px 0 108px;
}

.portal-hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 78%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
  z-index: 1;
}

.portal-hero-mark {
  position: absolute;
  right: 6%;
  top: 18px;
  transform: none;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
  filter: none;
}

.portal-hero-mark .crest {
  width: min(168px, 18vw);
  height: min(168px, 18vw);
}

.portal-hero-inner {
  position: relative;
  z-index: 1;
  animation: login-rise 0.9s ease both;
  padding-right: min(200px, 22vw);
}

.portal-hero-kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(212, 181, 106, 0.92);
  font-weight: 600;
}

.portal-hero-greet {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--gold-bright);
}

.portal-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.12;
  color: #f6f1e6;
  max-width: 20ch;
}

.portal-hero-lede {
  margin: 16px 0 0;
  max-width: 38em;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(243, 238, 228, 0.74);
  overflow-wrap: break-word;
}

.portal-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: -28px;
  background: var(--cream);
  border-top: 1px solid rgba(184, 149, 74, 0.3);
  padding: 48px 0 80px;
  min-height: 48vh;
  box-shadow: 0 -32px 64px rgba(0, 0, 0, 0.22);
}

.welcome-banner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.welcome-banner h1 {
  font-size: 1.85rem;
  margin-bottom: 4px;
}

.welcome-banner p {
  color: var(--muted);
  font-size: 0.95rem;
}

.private-note {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream-deep);
  padding: 3px 8px;
  margin-bottom: 8px;
}

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

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 24px 22px;
  min-height: 164px;
  box-shadow: 0 18px 40px rgba(12, 35, 64, 0.07);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.tile:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  color: inherit;
  box-shadow: 0 26px 50px rgba(12, 35, 64, 0.14);
}

.tile.featured {
  grid-column: 1 / -1;
  min-height: 196px;
  padding: 36px 36px 32px;
  background:
    radial-gradient(ellipse 70% 90% at 92% 12%, rgba(212, 181, 106, 0.2) 0%, transparent 52%),
    linear-gradient(145deg, #16325c 0%, #0c2340 58%, #081422 100%);
  color: var(--cream);
  border-color: rgba(212, 181, 106, 0.28);
}

.tile.featured:hover {
  color: var(--cream);
  border-color: var(--gold-bright);
}

.tile.featured h2,
.tile h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.tile.featured h2 {
  color: var(--cream);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.tile p {
  color: var(--muted);
  font-size: 0.95rem;
}

.tile.featured p {
  color: rgba(243, 238, 228, 0.78);
  max-width: 36em;
}

.tile .tile-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dim);
  margin-bottom: 8px;
}

.tile.featured .tile-kicker {
  color: var(--gold-bright);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.page-head > * {
  min-width: 0;
  flex: 1 1 16rem;
}

.page-head h1 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  margin: 0;
}

.page-head p {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 42em;
  overflow-wrap: break-word;
}

.demo-data-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* Profile */

.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(220px, 240px) 1fr;
  box-shadow: 0 24px 48px rgba(12, 35, 64, 0.1);
  overflow: hidden;
}

.profile-side {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 181, 106, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #16325c 0%, #0c2340 100%);
  color: var(--cream);
  padding: 36px 22px 32px;
  text-align: center;
}

.profile-side .member-avatar-lg {
  margin: 0 auto 10px;
}

.photo-upload {
  margin-bottom: 14px;
}

.photo-upload-btn {
  cursor: pointer;
  width: 100%;
  border-color: rgba(212, 181, 106, 0.55);
  color: var(--gold-bright);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 12px;
}

.photo-upload-btn:hover {
  background: rgba(212, 181, 106, 0.14);
  border-color: var(--gold-bright);
  color: #fff;
}

.profile-side h2 {
  color: var(--cream);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.profile-side .rank {
  color: var(--gold-bright);
  font-size: 0.92rem;
}

.status-pill {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}

.status-pill.inactive {
  border-color: #c4b8a4;
  color: #c4b8a4;
}

.status-pill.pending {
  border-color: var(--gold-bright);
  color: var(--cream);
  background: rgba(184, 149, 74, 0.2);
}

.profile-main {
  padding: 24px 28px;
}

.dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.dl dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.dl dd {
  margin: 0;
}

.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* Documents */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.doc-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 20px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(12, 35, 64, 0.07);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(12, 35, 64, 0.12);
}

.pdf-mark {
  width: 52px;
  height: 64px;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pdf-mark span {
  color: var(--gold-bright);
  font-size: 0.72rem;
}

.doc-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.doc-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

.doc-viewer {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 32px 32px;
}

.doc-viewer header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.doc-body {
  font-family: var(--serif);
  font-size: 1.08rem;
  max-width: 42em;
}

.doc-body h3 {
  font-size: 1.2rem;
  margin: 1.2em 0 0.4em;
}

/* Content cards */

.content-stack {
  display: grid;
  gap: 16px;
}

.article,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 30px;
  box-shadow: 0 18px 40px rgba(12, 35, 64, 0.07);
}

.article h2,
.panel h2 {
  font-size: 1.45rem;
}

.meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Board: one row on desktop, swipe rail on smaller screens */
.board-rail {
  position: relative;
  margin: 0.5rem 0 1.75rem;
}

.board-rail-hint {
  display: none;
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.people-grid.board-section {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
}

.about-lead {
  margin-bottom: 0;
}

.about-lead h1 {
  margin-bottom: 0.35rem;
}

/* legacy about-lead — kept for compatibility */

.people-grid.board-section .person {
  padding: 22px 10px 18px;
  min-width: 0;
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .people-grid.board-section .person:hover {
    border-color: rgba(184, 149, 74, 0.65);
    box-shadow: 0 14px 28px rgba(12, 35, 64, 0.1);
    transform: translateY(-2px);
  }
}

.people-grid.board-section .person-photo {
  width: 110px;
  height: 110px;
  margin-bottom: 14px;
  border-width: 3px;
  box-shadow: 0 12px 28px rgba(12, 35, 64, 0.2);
}

.people-grid.board-section .person-photo-empty {
  font-size: 1.65rem;
}

.people-grid.board-section .person h3 {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.2;
}

.people-grid.board-section .person .role {
  font-size: clamp(0.68rem, 0.85vw, 0.76rem);
  line-height: 1.35;
}

.people-grid.board-section .person-email {
  font-size: clamp(0.62rem, 0.75vw, 0.68rem);
  line-height: 1.4;
  padding-top: 10px;
  margin-top: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.people-grid.board-section .person-email a {
  display: inline-block;
  max-width: 100%;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 20px 22px;
}

.person-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #060c16;
  border: 2px solid rgba(184, 149, 74, 0.45);
  box-shadow: 0 8px 20px rgba(12, 35, 64, 0.12);
  margin-bottom: 14px;
}

.person-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060c16;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.person-body {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.person h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.person .role {
  color: var(--gold-dim);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 0;
  max-width: 16em;
}

.person-email {
  width: 100%;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.person-email a {
  text-decoration: none;
  color: var(--navy-mid);
}

.person-email a:hover {
  color: var(--gold-dim);
  text-decoration: underline;
}

.person-email-muted {
  color: var(--muted);
  font-style: italic;
}

.link-list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}

.link-list a span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Admin */

.admin-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.directory {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(12, 35, 64, 0.07);
  min-width: 0;
  overflow: hidden;
}

.directory-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search {
  width: min(280px, 100%);
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--cream);
}

tr.inactive td {
  color: var(--muted);
}

tr.selected {
  background: #f4efe2;
}

.row-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy-mid);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.row-btn:hover {
  color: var(--gold-dim);
}

.empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}

.side-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(12, 35, 64, 0.07);
}

.side-panel h2 {
  font-size: 1.4rem;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.invite-all {
  margin-top: 12px;
}

.admin-split {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0 18px;
}

.content-admin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.admin-file-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.admin-file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.admin-file-list strong {
  display: block;
}

.admin-file-list span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.mail-status {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--warn-bg);
  border: 1px solid #e4d4ae;
  color: var(--warn);
  font-size: 0.95rem;
}

.mail-status.is-ready {
  background: var(--success-bg);
  border-color: #c5d9cc;
  color: var(--success);
}

.email-admin {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.email-kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.email-kind-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.email-kind-tabs a:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.email-kind-tabs a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.email-preview-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dim);
}

.email-preview-frame {
  display: block;
  width: 100%;
  min-height: 880px;
  border: 1px solid var(--line);
  background: #0a1628;
}

@media (max-width: 900px) {
  .email-admin {
    grid-template-columns: 1fr;
  }

  .email-preview-frame {
    min-height: 720px;
  }
}

.admin-inline-add {
  margin-top: 18px;
}

.member-view-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 12px 24px;
  background: #0a1628;
  color: var(--cream);
  border-bottom: 1px solid rgba(184, 149, 74, 0.45);
}

.member-view-bar p {
  margin: 0;
  font-size: 0.95rem;
}

.member-view-bar form {
  margin: 0;
}

.roll-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Contact success */

.success-state {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px;
  text-align: center;
  max-width: 560px;
}

.success-state h1 {
  font-size: 2rem;
}

/* About */

.about-page {
  padding-bottom: 56px;
}

.about-hero {
  background: linear-gradient(180deg, #0e1c33 0%, #0a1628 100%);
  color: var(--cream);
  padding: 56px 0 88px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(212, 181, 106, 0.35);
}

.about-hero-inner {
  position: relative;
  z-index: 1;
}

.about-hero .eyebrow {
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.about-hero h1 {
  color: #f6f1e6;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.35em;
  max-width: 14ch;
}

.about-lede {
  max-width: 40em;
  color: rgba(243, 238, 228, 0.82);
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.55;
}

.about-board {
  margin-top: -44px;
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
}

.about-board-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px 28px;
  box-shadow: 0 24px 48px rgba(6, 12, 22, 0.1);
}

.about-board-panel h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.about-board .board-rail {
  margin: 0;
}

.about-pillars {
  background: var(--navy);
  color: var(--cream);
  padding: 56px 0;
  margin-top: 8px;
}

.about-pillars h2 {
  color: #f6f1e6;
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin-bottom: 28px;
}

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

.about-pillar {
  padding: 28px 24px 26px;
  border: 1px solid rgba(212, 181, 106, 0.22);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
}

.about-pillar-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(212, 181, 106, 0.75);
  font-weight: 700;
  margin-bottom: 10px;
}

.about-pillar h3 {
  color: var(--gold-bright);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.about-pillar p {
  color: rgba(243, 238, 228, 0.82);
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.55;
}

.about-life {
  padding: 64px 0 56px;
  background: transparent;
}

.about-life-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.about-life-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.about-life-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 4%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 4%, #000 94%, transparent 100%);
  mask-composite: intersect;
}

.about-life-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 82%, var(--cream) 100%),
    linear-gradient(180deg, var(--cream) 0%, transparent 6%, transparent 90%, var(--cream) 100%);
}

.about-life-photo figcaption {
  display: none;
}

.about-life-copy {
  max-width: 18rem;
}

.about-life-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin-bottom: 0.65em;
}

.about-life-copy p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: none;
}

.about-life-copy p + p {
  margin-top: 0.85em;
}

.about-lower {
  position: relative;
  overflow: hidden;
}

.about-patch {
  position: absolute;
  right: -6%;
  top: 8%;
  width: min(58vw, 780px);
  height: 84%;
  margin: 0;
  z-index: 0;
  pointer-events: none;
}

.about-patch img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 48% 42%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

.about-life,
.about-membership {
  position: relative;
  z-index: 1;
}

.about-membership {
  padding-top: 64px;
  padding-bottom: 64px;
}

.about-membership-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.about-membership-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin-bottom: 0.65em;
}

.about-membership-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 38em;
}

.about-membership-copy p + p {
  margin-top: 1em;
}

.about-membership-copy a:not(.btn) {
  color: var(--navy-soft);
  font-weight: 600;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-fact {
  background: linear-gradient(165deg, rgba(15, 31, 56, 0.72) 0%, rgba(6, 12, 22, 0.68) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  padding: 22px 24px;
  border: 1px solid rgba(212, 181, 106, 0.3);
  box-shadow: 0 16px 32px rgba(6, 12, 22, 0.14);
}

.about-fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  color: var(--gold-bright);
  line-height: 1.15;
  margin-bottom: 4px;
}

.about-fact span {
  color: rgba(243, 238, 228, 0.78);
  font-size: 0.92rem;
  line-height: 1.4;
}

.prose {
  max-width: 42em;
}

.prose h2 {
  margin-top: 1.4em;
  font-size: 1.6rem;
}

/* ---------- Contact (cinematic) ---------- */

.contact-page {
  padding-bottom: 0;
  background: #04080f;
}

.contact-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  padding: 108px 0 72px;
  color: var(--cream);
}

.contact-stage-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.contact-stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 28%;
  transform: scale(1.12);
  filter: saturate(0.78) contrast(1.08) brightness(0.72);
  animation: contact-cinema-drift 36s ease-out forwards;
}

.contact-stage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 8, 15, 0.72) 0%, rgba(4, 8, 15, 0.28) 28%, rgba(4, 8, 15, 0.55) 62%, rgba(4, 8, 15, 0.92) 100%),
    linear-gradient(105deg, rgba(4, 8, 15, 0.88) 0%, rgba(4, 8, 15, 0.42) 42%, rgba(4, 8, 15, 0.55) 100%),
    radial-gradient(ellipse 90% 70% at 70% 40%, transparent 0%, rgba(4, 8, 15, 0.55) 100%);
  box-shadow:
    inset 0 80px 90px rgba(0, 0, 0, 0.45),
    inset 0 -100px 110px rgba(0, 0, 0, 0.55);
}

.contact-stage-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0, 0, 0, 0.04) 3px, rgba(0, 0, 0, 0.04) 4px);
}

.contact-stage-inner {
  position: relative;
  z-index: 3;
}

.contact-stage-copy {
  max-width: 34rem;
  margin-bottom: 40px;
}

.contact-stage-copy .eyebrow {
  color: var(--gold-bright);
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.contact-stage-copy h1 {
  color: #f6f1e6;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 0.35em;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.contact-lede {
  max-width: 28em;
  color: rgba(243, 238, 228, 0.82);
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: stretch;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.address-card {
  background:
    linear-gradient(155deg, rgba(18, 32, 54, 0.78) 0%, rgba(6, 12, 22, 0.88) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--cream);
  padding: 34px 30px;
  border: 1px solid rgba(212, 181, 106, 0.32);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.address-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 181, 106, 0.9);
  font-weight: 600;
}

.address-card h2 {
  color: var(--gold-bright);
  font-size: 1.95rem;
  margin-bottom: 0.65em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.address-lines {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1.25em;
}

.address-lines span {
  color: rgba(243, 238, 228, 0.88);
  line-height: 1.45;
}

.address-email {
  margin: 0 0 1.1em;
  padding-top: 1.1em;
  border-top: 1px solid rgba(212, 181, 106, 0.25);
}

.address-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 181, 106, 0.8);
  font-weight: 600;
  margin-bottom: 6px;
}

.address-email a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}

.address-email a:hover {
  color: #f0dd9a;
  text-decoration: underline;
}

.address-note {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(243, 238, 228, 0.62);
  margin: 0;
}

.contact-aside-meta {
  background: rgba(251, 248, 241, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(246, 241, 230, 0.35);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--muted);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.contact-aside-meta strong {
  color: var(--navy);
}

.contact-panel {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.96) 0%, rgba(243, 238, 228, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(246, 241, 230, 0.42);
  padding: 38px 38px 32px;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.42),
    0 2px 0 rgba(212, 181, 106, 0.35) inset;
  height: 100%;
  color: var(--ink);
}

.contact-form-title {
  font-size: clamp(1.65rem, 3vw, 2rem);
  margin: 0 0 0.4em;
  color: var(--navy);
}

.contact-form-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.55em;
  padding-bottom: 1.25em;
  border-bottom: 1px solid rgba(214, 205, 187, 0.85);
}

.contact-form-intro a {
  color: var(--navy-soft);
  font-weight: 600;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 22px;
}

.contact-fields .field {
  margin-bottom: 0;
}

.contact-fields .field-full {
  grid-column: 1 / -1;
}

.contact-form .field label {
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.contact-form .field input,
.contact-form .field textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(214, 205, 187, 0.95);
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form .field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form .field input:focus,
.contact-form .field textarea:focus {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 74, 0.18);
  outline: none;
}

.contact-form .btn-block {
  margin-top: 0;
  width: 100%;
  padding-top: 14px;
  padding-bottom: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(12, 35, 64, 0.18);
}

.contact-page .success-state {
  text-align: left;
  max-width: none;
}

.contact-page .success-state h2 {
  font-size: 1.85rem;
  margin-bottom: 0.4em;
}

@keyframes contact-cinema-drift {
  from {
    transform: scale(1.12) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.2) translate3d(-1.5%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-stage-media img {
    animation: none;
  }
}

/* About */

@media (max-width: 1024px) {
  .site-header::before,
  .portal-header::before {
    content: none;
  }

  .site-header,
  .portal-header {
    box-shadow: none;
  }

  body.home .site-header,
  body.has-photo-header .site-header {
    box-shadow: none;
  }

  body.home .site-header.open,
  body.has-photo-header .site-header.open {
    box-shadow: none;
  }

  body.home .site-header.is-scrolled,
  body.has-photo-header .site-header.is-scrolled {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .board-rail {
    margin-left: calc(-1 * var(--wrap-pad));
    margin-right: calc(-1 * var(--wrap-pad));
    padding-left: var(--wrap-pad);
    padding-right: var(--wrap-pad);
  }

  .board-rail::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(to left, var(--paper), transparent);
    pointer-events: none;
  }

  .board-rail-hint {
    display: block;
  }

  .people-grid.board-section {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--wrap-pad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .people-grid.board-section::-webkit-scrollbar {
    display: none;
  }

  .people-grid.board-section .person {
    flex: 0 0 clamp(188px, 46vw, 248px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .people-grid.board-section .person-photo {
    width: 104px;
    height: 104px;
  }

  .about-board {
    margin-top: 0;
  }

  .about-hero {
    padding-bottom: 48px;
  }

  .contact-stage {
    padding: 96px 0 56px;
  }
}

@media (max-width: 900px) {
  .contact-stage {
    padding: 0 0 40px;
    min-height: 0;
    overflow: visible;
  }

  .contact-stage-media {
    position: relative;
    inset: auto;
    height: min(46vh, 360px);
    min-height: 260px;
  }

  .contact-stage-media img {
    object-position: 20% 28%;
    transform: none;
    filter: saturate(1) contrast(1.02) brightness(1.02);
    animation: none;
  }

  .contact-stage-veil {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(46vh, 360px);
    min-height: 260px;
    bottom: auto;
    background:
      linear-gradient(180deg, rgba(4, 8, 15, 0.45) 0%, rgba(4, 8, 15, 0.18) 42%, rgba(4, 8, 15, 0.55) 100%);
    box-shadow: inset 0 -40px 50px rgba(0, 0, 0, 0.28);
  }

  .contact-stage-grain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(46vh, 360px);
    min-height: 260px;
    bottom: auto;
    opacity: 0.06;
  }

  .contact-stage-inner {
    margin-top: -7.5rem;
    padding-bottom: 8px;
  }

  .address-card {
    background:
      linear-gradient(155deg, rgba(18, 32, 54, 0.88) 0%, rgba(6, 12, 22, 0.92) 100%);
  }

  .contact-stage-copy {
    margin-bottom: 22px;
  }

  .contact-stage-copy h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-panel {
    padding: 28px 22px 24px;
    height: auto;
  }

  .hero,
  .split,
  .pillars-grid,
  .about-pillars-grid,
  .about-life-grid,
  .stat-row,
  .about-membership-grid,
  .tiles,
  .doc-grid,
  .admin-layout,
  .content-admin,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .about-lower {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .about-life {
    order: 1;
  }

  .about-patch {
    position: relative;
    right: auto;
    top: auto;
    order: 2;
    width: 100%;
    height: 220px;
    margin: 4px 0 20px;
    z-index: 0;
  }

  .about-patch img {
    object-fit: cover;
    object-position: 50% 42%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .about-membership {
    order: 3;
  }

  .about-life-copy {
    max-width: none;
  }

  .life-band {
    overflow: hidden;
  }

  .photo-media-about img {
    object-position: 8% 40%;
    transform-origin: 72% 42%;
    transform: scale(1.85);
    animation: none;
  }

  .photo-media-contact img {
    object-position: 78% 10%;
    transform: scale(1.15) translateY(10%);
    animation: none;
  }

  .photo-media-login img {
    object-position: 50% 22%;
  }

  .life-stage {
    height: 260px;
  }

  .life-band figcaption {
    left: 16px;
    bottom: 22px;
    font-size: 0.68rem;
  }

  .life-progress {
    left: 16px;
    right: 16px;
    bottom: 10px;
  }

  .split-photo,
  .split-photo img {
    min-height: 280px;
  }

  .directory-head {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .directory .table-wrap {
    overflow: visible;
  }

  .directory table,
  .directory thead,
  .directory tbody,
  .directory tr,
  .directory th,
  .directory td {
    display: block;
    width: 100%;
  }

  .directory thead {
    display: none;
  }

  .directory tr {
    padding: 14px 16px 16px;
    border-bottom: 1px solid var(--line);
  }

  .directory td {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .directory td::before {
    content: attr(data-label);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    padding-top: 3px;
  }

  .hero {
    justify-items: center;
    text-align: center;
    gap: 28px;
    padding: 116px 0 68px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
    max-width: 36em;
  }

  .hero-aside {
    order: 1;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 6vw, 2.8rem);
    line-height: 1.12;
    max-width: 12em;
  }

  .hero .of-the {
    font-size: 1.2rem;
  }

  .hero .service {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  .hero-stage .tagline {
    font-size: 1.05rem;
    max-width: 24em;
    line-height: 1.45;
  }

  .hero-stage .lede {
    font-size: 1rem;
    max-width: 34em;
  }

  .hero .cta-row {
    justify-content: center;
    margin-top: 24px;
  }

  .hero .cta-row .btn {
    width: auto;
    min-width: 210px;
    justify-content: center;
  }

  .seal-card .crest {
    width: min(176px, 38vw);
    height: min(176px, 38vw);
  }

  .people-grid:not(.board-section) {
    grid-template-columns: 1fr;
  }

  .tile.featured {
    grid-column: auto;
    padding: 28px 22px;
  }

  .portal-hero {
    padding: 36px 0 56px;
  }

  .portal-hero-home {
    padding: 44px 0 64px;
  }

  .portal-hero-mark,
  .portal-hero-inner {
    padding-right: 0;
  }

  .portal-hero-mark {
    display: none;
  }

  .portal-hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .portal-stage {
    margin-top: -20px;
    padding: 36px 0 56px;
  }

  .calendar-section {
    min-height: 0;
    padding: 56px 0 48px;
    scroll-margin-top: 72px;
  }

  .calendar-layout {
    justify-content: flex-start;
    align-items: center;
  }

  .calendar-panel {
    width: 100%;
    padding: 30px 24px 24px;
  }

  .calendar-section h2 {
    font-size: 1.85rem;
  }

  .calendar-item h3 {
    font-size: 1.25rem;
  }

  .calendar-agenda li {
    padding: 16px 4px 16px 34px;
  }

  .calendar-agenda li::before {
    left: 4px;
  }

  .calendar-agenda li:not(:last-child)::after {
    left: 7px;
  }

  .dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .dl dt {
    margin-top: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 10px;
  }

  .header-account {
    display: none;
  }

  .site-header.open {
    background: rgba(8, 14, 24, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.home .site-header.open,
  body.has-photo-header .site-header.open,
  body.login-page .site-header.open {
    background: rgba(8, 14, 24, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(4, 8, 16, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: -1;
  }

  .site-header.open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: var(--wrap-pad);
    right: var(--wrap-pad);
    max-width: calc(1180px - var(--wrap-pad) * 2);
    margin: 0 auto;
    background: rgba(8, 14, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 4px;
    z-index: 2;
    animation: nav-drop 0.28s ease both;
  }

  @keyframes nav-drop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-bright);
  }

  .nav a[aria-current="page"] {
    background: rgba(212, 181, 106, 0.14);
    color: var(--gold-bright);
    box-shadow: inset 3px 0 0 var(--gold-bright);
  }

  .nav a.nav-login,
  .nav a.btn {
    margin: 6px 4px 2px;
    padding: 14px 18px;
    justify-content: center;
    border-radius: 10px;
    background: rgba(184, 149, 74, 0.22);
    border: 1px solid rgba(212, 181, 106, 0.5);
    color: var(--gold-bright);
    letter-spacing: 0.18em;
  }

  .nav a.nav-login:hover,
  .nav a.btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
  }

  .nav-panel-foot {
    display: block;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-account {
    display: block;
  }

  .nav-account .account-trigger {
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.2;
  }

  .nav-account .account-trigger:hover,
  .nav-account.open .account-trigger {
    background: rgba(255, 255, 255, 0.08);
  }

  .account-trigger-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .account-trigger-copy strong {
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 600;
  }

  .account-trigger-copy span {
    color: rgba(212, 181, 106, 0.85);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-account .account-dropdown {
    position: static;
    min-width: 0;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
  }

  .site-header.open .nav,
  .portal-header.open .public-nav {
    display: flex;
  }

  .portal-header .nav-toggle {
    display: inline-flex;
  }

  .portal-user {
    display: none;
  }

  .portal-chrome::after {
    content: "";
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(4, 8, 16, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: -1;
  }

  .portal-chrome.nav-open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .portal-subnav {
    display: none;
    position: absolute;
    top: calc(72px + 10px);
    left: var(--wrap-pad);
    right: var(--wrap-pad);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(8, 14, 24, 0.92);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    animation: nav-drop 0.28s ease both;
    max-height: calc(100vh - 96px);
    overflow: auto;
    z-index: 2;
  }

  .portal-chrome.nav-open .portal-subnav {
    display: block;
  }

  .portal-subnav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
  }

  .portal-subnav-inner > li {
    display: block;
  }

  .nav-item-admin {
    margin-left: 0;
    margin-top: 4px;
  }

  .portal-subnav-inner > li.nav-item-account {
    display: block;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .subnav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: none;
    letter-spacing: 0.08em;
  }

  .subnav-link[aria-current="page"],
  .subnav-link.is-current,
  .subnav-link[aria-current="true"] {
    box-shadow: inset 3px 0 0 var(--gold-bright);
    background: rgba(212, 181, 106, 0.14);
    color: var(--gold-bright);
  }

  .subnav-admin {
    margin: 0;
    width: auto;
    display: inline-flex;
    justify-content: center;
    border-radius: 10px;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    margin: 0 0 6px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 2px solid rgba(184, 149, 74, 0.45);
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .nav-item-group:hover .nav-dropdown {
    display: none;
  }

  .nav-item-group.open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    color: rgba(243, 238, 228, 0.88);
    padding: 9px 10px;
  }

  .nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .nav-dropdown a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
    font-weight: 600;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap-pad: 18px;
    --header-h: 80px;
  }

  .portal-hero-mark {
    display: none;
  }

  .wrap {
    padding-left: var(--wrap-pad);
    padding-right: var(--wrap-pad);
  }

  .site-header-inner {
    padding-left: var(--wrap-pad);
    padding-right: var(--wrap-pad);
  }

  .brand .crest {
    width: 48px;
    height: 48px;
  }

  .site-header .brand-name {
    font-size: 1.25rem;
    letter-spacing: 0.16em;
  }

  .section {
    padding: 36px 0;
  }

  .about-hero {
    padding: 36px 0 48px;
  }

  .contact-stage {
    padding: 0 0 32px;
  }

  .contact-stage-media,
  .contact-stage-veil,
  .contact-stage-grain {
    height: min(42vh, 320px);
    min-height: 240px;
  }

  .contact-stage-inner {
    margin-top: -6.5rem;
  }

  .contact-stage-copy {
    min-height: 0;
  }

  .about-hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.15;
  }

  .about-lede {
    font-size: 1rem;
  }

  .about-board {
    margin-top: 0;
    padding: 0 0 8px;
  }

  .about-board-panel {
    padding: 28px 20px 22px;
    border-radius: 4px 4px 0 0;
  }

  .about-pillars {
    margin-top: 28px;
    padding: 44px 0;
  }

  .about-membership {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .about-lead h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    line-height: 1.12;
  }

  .prose h2 {
    font-size: 1.35rem;
  }

  .people-grid.board-section .person {
    flex-basis: clamp(168px, 78vw, 248px);
    padding: 18px 12px 16px;
  }

  .people-grid.board-section .person-photo {
    width: 96px;
    height: 96px;
  }

  .hero {
    padding: 100px 0 52px;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }

  .hero .cta-row {
    flex-direction: column;
    width: min(260px, 100%);
  }

  .hero .cta-row .btn {
    width: 100%;
    min-width: 0;
  }

  .seal-card .crest {
    width: min(140px, 38vw);
    height: min(140px, 38vw);
  }

  .brand-sub {
    display: none;
  }

  .portal-user .who {
    display: none;
  }

  .portal-header-inner {
    padding-left: var(--wrap-pad);
    padding-right: var(--wrap-pad);
  }

  .auth-body,
  .auth-head {
    padding-left: 18px;
    padding-right: 18px;
  }

  .demo-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.event-list {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 8px 28px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  min-width: 0;
  box-shadow: 0 18px 40px rgba(12, 35, 64, 0.07);
}

.event-card h2 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  margin-bottom: 8px;
}

.event-card p {
  overflow-wrap: break-word;
  word-break: normal;
}

.event-card .when {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--gold-dim);
  line-height: 1.25;
  padding-right: 20px;
  border-right: 1px solid var(--line-soft);
}

@media (max-width: 900px) {
  .event-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px 20px;
  }

  .event-card .when {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.05rem;
  }

  .event-card h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }
}

.board-office {
  margin: 22px 0 0;
  color: var(--muted);
}

.muted-link {
  color: var(--navy-mid);
}

.flash-wrap {
  margin-bottom: 16px;
}

.flash-wrap .form-success {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash-wrap .form-success.flash-out {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tile,
  .nav-dropdown,
  .nav-chevron,
  .doc-card,
  .nav-toggle-bars span,
  .life-band img,
  .life-band figure,
  .life-band figcaption,
  .calendar-panel,
  .calendar-agenda li {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .life-progress span.is-live i {
    animation: none;
    width: 100%;
  }

  .nav {
    animation: none;
  }

  .portal-hero-inner {
    animation: none;
  }

  .photo-media img {
    animation: none;
    transform: none;
  }

  .photo-media-about img {
    transform: scale(2.05) translateX(30%);
  }

  .photo-media-contact img {
    transform: scale(1.18) translateY(14%);
  }
}
