:root {
  --white: #fff;
  --veil: rgba(0, 0, 0, 0.28);
  --veil-deep: rgba(0, 0, 0, 0.48);
  --menu-bg: rgba(4, 16, 22, 0.93);
  --line: rgba(255, 255, 255, 0.26);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: #071016;
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  animation: page-fade-in 520ms var(--ease) both;
  transition: opacity 520ms var(--ease);
}

body.is-leaving {
  opacity: 0;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

a {
  color: inherit;
}

.video-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #071016;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 3800ms var(--ease);
}

.background-video.is-active {
  opacity: 1;
}

.video-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.1), var(--veil-deep) 76%),
    linear-gradient(180deg, var(--veil), rgba(0, 0, 0, 0.36));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(1rem, 2.2vw, 1.75rem) clamp(1rem, 4vw, 3.5rem);
}

.header-mark {
  display: inline-flex;
  width: clamp(42px, 5vw, 64px);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  opacity: 0.96;
}

.header-mark img,
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 4rem);
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.52);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 1px;
  background: var(--white);
  transition:
    transform 180ms var(--ease),
    opacity 180ms var(--ease);
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.landing {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100svh;
  padding: 18svh 1.25rem 3rem;
}

.landing.portal-landing {
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 1.8vw, 1.25rem);
  width: min(94vw, 980px);
  text-align: center;
}

.brand-lockup-logo {
  display: block;
  width: clamp(34px, 4vw, 58px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.36));
}

h1 {
  margin: 0;
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.35rem, 2.65vw, 2.7rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.58);
}

.page-shell {
  min-height: 100svh;
  padding: 9rem clamp(1.25rem, 5vw, 5rem) 4rem;
  background: #f5f2ec;
  color: #101820;
}

.subpage-body .site-header {
  background: rgba(245, 242, 236, 0.86);
  color: #0c1720;
  backdrop-filter: blur(18px);
}

.subpage-body .primary-nav {
  color: #0c1720;
}

.subpage-body .primary-nav a {
  text-shadow: none;
}

.subpage-body .menu-toggle {
  border-color: rgba(16, 24, 32, 0.28);
  background: rgba(255, 255, 255, 0.42);
}

.subpage-body .menu-toggle span {
  background: #0c1720;
}

.page-content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.page-kicker,
.fund-label {
  margin: 0 0 0.85rem;
  color: #5a6a70;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: #0c1720;
  font-size: clamp(2.2rem, 7vw, 5.8rem);
  font-weight: 600;
  line-height: 0.98;
  white-space: normal;
  text-shadow: none;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 7vw, 5rem);
}

.page-copy {
  display: grid;
  gap: 1.15rem;
  color: #1f313a;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.page-copy p {
  margin: 0;
}

.content-image,
.fund-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: #d8e0df;
}

.content-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.funds-intro {
  max-width: 760px;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  color: #1f313a;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.funds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 9vw, 7rem);
  background: rgba(16, 24, 32, 0.18);
}

.fund-card {
  display: block;
  min-height: 360px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: #fffdf8;
  text-decoration: none;
  transition:
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.fund-card:hover,
.fund-card:focus-visible {
  background: #f8f2e7;
  transform: translateY(-3px);
}

.fund-card img {
  aspect-ratio: 16 / 11;
  height: clamp(220px, 18vw, 270px);
  padding: clamp(1rem, 2vw, 1.6rem);
  background: #fffdf8;
  object-fit: contain;
  object-position: center;
}

.fund-card h2 {
  margin: 1.4rem 0 0.75rem;
  color: #0c1720;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.fund-card p {
  margin: 0;
  color: #2f424b;
  line-height: 1.6;
}

.funds-note {
  max-width: 880px;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(16, 24, 32, 0.16);
}

.funds-note p {
  margin: 0;
  color: #0c1720;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  line-height: 1.14;
}

.funds-page {
  min-height: 100svh;
  background: #f5f2ec;
  color: #101820;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.funds-overview {
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 5vw, 5rem) 0;
}

.funds-overview .funds-grid {
  margin-top: 0;
}

.login-panel {
  display: grid;
  gap: 1rem;
  width: min(92vw, 380px);
  padding: 0;
  border: 0;
  background: transparent;
}

.login-panel h1 {
  white-space: normal;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-align: center;
}

.login-field {
  display: block;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.login-field input {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #101820;
  font: inherit;
  letter-spacing: 0;
  padding: 0 0.85rem;
}

.login-field input::placeholder {
  color: #9aa1a5;
  opacity: 1;
}

.login-panel button {
  min-height: 46px;
  border: 0;
  background: var(--white);
  color: #101820;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-error {
  min-height: 1.2rem;
  margin: -0.2rem 0 0;
  color: #fffdf8;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.portal-dashboard {
  min-height: 100svh;
  padding: clamp(9rem, 14vw, 13rem) clamp(1.25rem, 5vw, 5rem) 5rem;
}

.dashboard-panel {
  display: grid;
  gap: 1rem;
  width: min(920px, 100%);
  margin: 0 auto;
  padding-top: clamp(2rem, 6vw, 5rem);
}

.dashboard-panel p:not(.page-kicker) {
  max-width: 720px;
  margin: 0;
  color: #22343d;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.about-body {
  background: #f5f2ec;
  color: #101820;
}

.about-body main {
  background:
    linear-gradient(180deg, rgba(245, 242, 236, 0.92), #f5f2ec 34rem),
    #f5f2ec;
}

.about-section-anchor {
  scroll-margin-top: clamp(7.5rem, 12vw, 9rem);
}

.about-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: clamp(8rem, 13vw, 12rem) clamp(1.25rem, 5vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  background: #09161d;
  color: #fffdf8;
}

.about-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 14, 19, 0.88), rgba(5, 14, 19, 0.58) 46%, rgba(5, 14, 19, 0.1)),
    linear-gradient(180deg, rgba(5, 14, 19, 0.1), rgba(5, 14, 19, 0.78));
  pointer-events: none;
}

.about-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.95);
  opacity: 0.72;
  transform: scale(1.04);
}

.about-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  width: min(920px, 100%);
}

.about-hero-title {
  color: #fffdf8;
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  font-weight: 400;
  line-height: 0.95;
  white-space: normal;
}

.about-hero-statement {
  max-width: 690px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 2.15rem);
  line-height: 1.35;
}

.about-hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.about-hero-copy .page-kicker {
  color: rgba(255, 253, 248, 0.74);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 0.5rem;
}

.text-button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms var(--ease),
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
}

.text-button:hover,
.text-button:focus-visible {
  transform: translateY(-2px);
}

.text-button.muted {
  opacity: 0.72;
}

.editorial-section,
.split-band,
.values-section,
.pathways-section,
.closing-band,
.subpage-hero,
.diagram-feature,
.ai-system,
.process-sections,
.narrative-sections,
.philosophy-stack {
  width: min(1220px, calc(100% - clamp(2.5rem, 8vw, 9rem)));
  margin: 0 auto;
}

.editorial-section {
  display: grid;
  grid-template-columns: 5rem minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-number {
  color: #8a9895;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1;
}

.editorial-copy,
.section-heading,
.diagram-copy {
  display: grid;
  gap: 1rem;
}

.editorial-copy h2,
.split-band h2,
.section-heading h2,
.diagram-copy h2,
.process-sections h2,
.philosophy-stack h2 {
  margin: 0;
  color: #0c1720;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4.3vw, 4.6rem);
  font-weight: 400;
  line-height: 1.03;
}

.editorial-copy p,
.section-heading p,
.diagram-copy p,
.split-band p,
.process-sections p,
.philosophy-stack p,
.closing-band p,
.subpage-hero p {
  margin: 0;
  color: #22343d;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.editorial-figure {
  margin: 0;
}

.editorial-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(16, 24, 32, 0.14);
  filter: saturate(0.82);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid rgba(16, 24, 32, 0.16);
  border-bottom: 1px solid rgba(16, 24, 32, 0.16);
}

.values-section,
.pathways-section {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-heading {
  max-width: 780px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(16, 24, 32, 0.18);
}

.values-grid article,
.pathway-card,
.process-sections article,
.philosophy-stack article {
  background: #fffdf8;
}

.values-grid article {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 230px;
  padding: clamp(1.2rem, 2vw, 1.7rem);
  transition:
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.values-grid article:hover,
.values-grid article:focus-within,
.pathway-card:hover,
.pathway-card:focus-visible {
  background: #f7efe2;
  transform: translateY(-3px);
}

.values-grid h3,
.pathway-card h3 {
  margin: 0;
  color: #0c1720;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.1;
}

.values-grid p,
.pathway-card p {
  margin: 0;
  color: #31464f;
  line-height: 1.6;
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(16, 24, 32, 0.18);
}

.pathway-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 320px;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  text-decoration: none;
  transition:
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.pathway-card span,
.process-sections span {
  color: #7f918f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.closing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
  border-top: 1px solid rgba(16, 24, 32, 0.16);
}

.closing-band p {
  max-width: 760px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.6rem, 3.6vw, 3.7rem);
  line-height: 1.1;
}

.mission-band {
  align-items: end;
}

.mission-band div {
  display: grid;
  gap: 1rem;
  max-width: 780px;
}

.mission-band h2 {
  margin: 0;
  color: #0c1720;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4.3vw, 4.6rem);
  font-weight: 400;
  line-height: 1.03;
}

.mission-band p {
  max-width: 720px;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.about-subpage {
  padding: clamp(8rem, 13vw, 12rem) 0 0;
}

.about-page {
  padding-top: 0;
}

.subpage-hero {
  display: grid;
  gap: 1.15rem;
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

.subpage-hero.image-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: clamp(520px, 74svh, 760px);
  align-content: end;
  padding: clamp(10rem, 15vw, 14rem) clamp(1.25rem, 5vw, 5.5rem) clamp(4rem, 8vw, 7rem);
  background: #0c1720;
}

.subpage-hero.image-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: url("/site/resources-incoming/images/pexels-pok-rie-33563-12762344.jpg") center / cover;
  filter: grayscale(0.22) saturate(0.72) contrast(1.08);
  transform: scale(1.04);
}

.subpage-hero.image-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 14, 19, 0.9), rgba(5, 14, 19, 0.64) 48%, rgba(5, 14, 19, 0.18)),
    linear-gradient(180deg, rgba(5, 14, 19, 0.14), rgba(5, 14, 19, 0.78));
}

.subpage-hero.image-hero .page-title,
.subpage-hero.image-hero p {
  width: min(980px, 100%);
  margin-right: auto;
  margin-left: auto;
  color: #fffdf8;
}

.subpage-hero.image-hero .page-title {
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
}

.subpage-hero.image-hero p:not(.page-kicker) {
  color: rgba(255, 253, 248, 0.88);
}

.subpage-hero .page-title {
  max-width: 980px;
}

.subpage-hero p:not(.page-kicker) {
  max-width: 780px;
}

.diagram-feature,
.ai-system {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid rgba(16, 24, 32, 0.16);
}

.full-bleed-diagram {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: clamp(2rem, 4vw, 3rem);
}

.full-bleed-diagram .diagram-copy {
  position: static;
  width: min(920px, calc(100% - clamp(2.5rem, 8vw, 9rem)));
  margin: 0 auto;
  text-align: center;
}

.full-bleed-diagram .diagram-frame {
  width: 100%;
  border-right: 0;
  border-left: 0;
}

.full-bleed-diagram .diagram-frame img {
  width: min(1600px, 100%);
  margin: 0 auto;
}

.diagram-copy {
  position: sticky;
  top: 7rem;
}

.diagram-frame {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgba(16, 24, 32, 0.14);
  background: #fffdf8;
}

.diagram-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-frame.wide {
  padding: clamp(0.8rem, 1.6vw, 1.2rem);
}

.process-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: rgba(16, 24, 32, 0.18);
}

.process-sections article {
  display: grid;
  gap: 0.85rem;
  min-height: 280px;
  padding: clamp(1.4rem, 2.4vw, 2rem);
}

.story-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 980px;
  background: transparent;
}

.story-sections article {
  position: relative;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  min-height: 0;
  padding: clamp(2.2rem, 5vw, 4.5rem) 0 clamp(2.2rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(16, 24, 32, 0.16);
  background: transparent;
}

.story-sections article::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.25rem;
  width: 1px;
  content: "";
  background: rgba(16, 24, 32, 0.14);
}

.story-sections span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: 1px solid rgba(16, 24, 32, 0.18);
  background: #f5f2ec;
  color: #21495c;
}

.story-sections h2,
.story-sections p {
  grid-column: 2;
}

.process-sections h2 {
  font-size: clamp(1.35rem, 2.1vw, 2.2rem);
}

.narrative-sections {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.narrative-item {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 0.38fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.4rem) 0;
  border-top: 1px solid rgba(16, 24, 32, 0.16);
}

.narrative-item:nth-child(even) {
  grid-template-columns: minmax(0, 0.38fr) minmax(280px, 0.62fr);
}

.narrative-item:nth-child(even) figure {
  grid-column: 2;
}

.narrative-item:nth-child(even) div {
  grid-column: 1;
  grid-row: 1;
}

.narrative-item figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.14);
  background: #fffdf8;
}

.narrative-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 520ms var(--ease);
}

.narrative-item:hover img {
  transform: scale(1.025);
}

.narrative-item div {
  display: grid;
  gap: 0.9rem;
}

.narrative-item span {
  color: #7f918f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.narrative-item h2 {
  margin: 0;
  color: #0c1720;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 3.7rem);
  font-weight: 400;
  line-height: 1.05;
}

.narrative-item p {
  margin: 0;
  color: #22343d;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.7;
}

.ai-diagram {
  display: grid;
  gap: 1px;
  background: rgba(16, 24, 32, 0.18);
}

.ai-node,
.ai-rail {
  padding: clamp(1.1rem, 2.2vw, 1.8rem);
  background: #fffdf8;
  color: #20343d;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.5;
}

.ai-node {
  border-left: 4px solid #21495c;
  font-family: "Libre Baskerville", Georgia, serif;
}

.ai-node.strong {
  background: #0c1720;
  color: #fffdf8;
}

.ai-rail {
  color: #5c6c71;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.philosophy-stack {
  display: grid;
  gap: 1px;
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: rgba(16, 24, 32, 0.18);
}

.philosophy-stack article {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.philosophy-stack article h2,
.philosophy-stack article p:not(.page-kicker) {
  grid-column: 2;
}

.philosophy-stack article .page-kicker {
  grid-row: 1 / span 2;
}

.reveal-section {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-body {
  background: #eee9df;
  color: #101820;
}

.dashboard-body main {
  background:
    linear-gradient(180deg, rgba(245, 242, 236, 0.9), rgba(238, 233, 223, 0.98) 18rem),
    #eee9df;
}

.dashboard-header {
  background: rgba(245, 242, 236, 0.9);
}

.az-dashboard {
  display: grid;
  gap: 1rem;
  min-height: 100svh;
  padding: clamp(7.5rem, 10vw, 9rem) clamp(1rem, 2.8vw, 2.4rem) 2rem;
}

.az-topbar {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(420px, 1fr);
  gap: 1rem;
  align-items: end;
}

.az-identity {
  display: grid;
  gap: 0.4rem;
}

.az-identity h1 {
  color: #0c1720;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.98;
  white-space: normal;
  text-shadow: none;
}

.az-identity h1 span {
  display: inline-block;
}

[data-tone="positive"] {
  color: #2f7d55;
}

[data-tone="negative"] {
  color: #b85f23;
}

[data-tone="neutral"] {
  color: #43535a;
}

.az-status-strip,
.az-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.13);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.14);
}

.az-status-pill,
.az-metrics article {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 253, 248, 0.9);
}

.az-status-pill {
  border-top: 3px solid #89969a;
}

.az-status-pill[data-state="positive"] {
  border-color: #2f7d55;
}

.az-status-pill[data-state="warning"] {
  border-color: #bf6b2a;
}

.az-status-pill[data-state="danger"] {
  border-color: #b43b2f;
}

.az-status-pill span,
.az-metrics span,
.az-chart-heading span {
  color: #68777d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.az-status-pill strong,
.az-metrics strong,
.az-chart-heading strong {
  overflow: hidden;
  color: #101820;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.az-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.az-metrics article {
  min-height: 74px;
  align-content: center;
}

.az-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.28fr);
  gap: 1rem;
  align-items: start;
}

.az-chart-card,
.az-panel {
  border: 1px solid rgba(16, 24, 32, 0.13);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.08);
}

.az-chart-card {
  overflow: hidden;
}

.az-chart-heading {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
  background: rgba(16, 24, 32, 0.12);
}

.az-chart-heading div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: #fffdf8;
}

.az-chart-wrap {
  position: relative;
  min-height: clamp(460px, 58vw, 720px);
  background: #fffdf8;
}

.az-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.az-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.78);
  color: #5f6d72;
  font-size: 0.86rem;
  font-weight: 700;
}

.az-chart-empty[hidden] {
  display: none;
}

.az-side-panels,
.az-lower-grid {
  display: grid;
  gap: 1rem;
}

.az-lower-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.32fr);
  align-items: start;
}

.az-panel {
  min-width: 0;
  overflow: hidden;
}

.az-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
}

.az-panel-title h2 {
  margin: 0;
  color: #0c1720;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.az-run-list {
  display: grid;
  margin: 0;
}

.az-run-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(16, 24, 32, 0.09);
}

.az-run-list div:last-child {
  border-bottom: 0;
}

.az-run-list dt {
  color: #69777d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.az-run-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #17252d;
  font-size: 0.9rem;
  line-height: 1.35;
}

.az-list,
.az-event-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.az-list li,
.az-event-list li {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid rgba(16, 24, 32, 0.09);
  color: #273940;
  font-size: 0.9rem;
  line-height: 1.45;
}

.az-list li:last-child,
.az-event-list li:last-child {
  border-bottom: 0;
}

.az-warning-panel .az-list li {
  border-left: 4px solid #bf6b2a;
}

.az-event-list li {
  display: grid;
  gap: 0.28rem;
}

.az-event-list span {
  color: #6d7b80;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.az-event-list strong {
  color: #17252d;
  font-size: 0.9rem;
  font-weight: 600;
}

.az-event-list li[data-level="warning"] {
  border-left: 4px solid #bf6b2a;
}

.az-event-list li[data-level="error"] {
  border-left: 4px solid #b43b2f;
}

.az-table-panel {
  align-self: stretch;
}

.az-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.az-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.az-table th,
.az-table td {
  padding: 0.76rem 0.82rem;
  border-bottom: 1px solid rgba(16, 24, 32, 0.09);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.az-table th {
  color: #69777d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.az-table td {
  color: #17252d;
}

.az-table tr:last-child td {
  border-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-section {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 720ms var(--ease),
      transform 720ms var(--ease);
  }

  .reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .about-hero-media img {
    transition: transform 1200ms var(--ease);
  }

  .about-hero.is-visible .about-hero-media img {
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .menu-toggle {
    position: relative;
    z-index: 4;
    display: inline-flex;
    order: -1;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: min(82vw, 340px);
    min-height: 100svh;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 6rem 1.25rem 2rem;
    border-right: 1px solid var(--line);
    background: var(--menu-bg);
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition:
      opacity 220ms var(--ease),
      transform 220ms var(--ease);
    backdrop-filter: blur(22px);
  }

  .subpage-body .primary-nav {
    color: var(--white);
  }

  .subpage-body .primary-nav a {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.52);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .primary-nav > a {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .landing {
    padding-top: 18svh;
  }

  .landing.portal-landing {
    padding-top: 0;
  }

  .brand-center {
    gap: 0.55rem;
  }

  .brand-lockup-logo {
    width: 34px;
  }

  h1 {
    font-size: clamp(1rem, 5.7vw, 1.45rem);
  }

  .page-shell {
    padding: 7rem 1.1rem 3rem;
  }

  .page-grid,
  .funds-grid {
    grid-template-columns: 1fr;
  }

  .content-image {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 1080px) {
  .values-grid,
  .pathways-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-section,
  .diagram-feature,
  .ai-system {
    grid-template-columns: 1fr;
  }

  .narrative-item,
  .narrative-item:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .narrative-item:nth-child(even) figure,
  .narrative-item:nth-child(even) div {
    grid-column: auto;
    grid-row: auto;
  }

  .section-number,
  .diagram-copy {
    position: static;
  }

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

@media (max-width: 760px) {
  .about-hero {
    min-height: 92svh;
    padding: 7.5rem 1.1rem 3rem;
  }

  .about-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 14, 19, 0.34), rgba(5, 14, 19, 0.86)),
      linear-gradient(90deg, rgba(5, 14, 19, 0.58), rgba(5, 14, 19, 0.28));
  }

  .about-hero-title {
    font-size: clamp(2.8rem, 14vw, 4.7rem);
  }

  .editorial-section,
  .split-band,
  .values-section,
  .pathways-section,
  .closing-band,
  .subpage-hero,
  .diagram-feature,
  .ai-system,
  .process-sections,
  .narrative-sections,
  .philosophy-stack {
    width: calc(100% - 2.2rem);
  }

  .full-bleed-diagram {
    width: 100%;
  }

  .full-bleed-diagram .diagram-copy {
    width: calc(100% - 2.2rem);
  }

  .editorial-section,
  .split-band,
  .closing-band,
  .philosophy-stack article {
    grid-template-columns: 1fr;
  }

  .subpage-hero.image-hero {
    min-height: 82svh;
    padding: 8rem 1.1rem 3.5rem;
  }

  .subpage-hero.image-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 14, 19, 0.28), rgba(5, 14, 19, 0.88)),
      linear-gradient(90deg, rgba(5, 14, 19, 0.62), rgba(5, 14, 19, 0.22));
  }

  .editorial-section {
    padding: 4rem 0;
  }

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

  .split-band,
  .closing-band {
    display: grid;
  }

  .values-grid,
  .pathways-grid,
  .process-sections {
    grid-template-columns: 1fr;
  }

  .pathway-card,
  .values-grid article,
  .process-sections article {
    min-height: 0;
  }

  .story-sections article {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    padding-left: 0;
  }

  .story-sections article::before {
    left: 1.55rem;
  }

  .story-sections span {
    width: 2.8rem;
    height: 2.8rem;
  }

  .about-subpage {
    padding-top: 7rem;
  }

  .diagram-frame {
    overflow-x: auto;
  }

  .diagram-frame img {
    min-width: 620px;
  }

  .diagram-frame:not(.wide) img {
    min-width: 520px;
  }

  .narrative-item {
    gap: 1.2rem;
  }

  .philosophy-stack article h2,
  .philosophy-stack article p:not(.page-kicker) {
    grid-column: auto;
  }

  .philosophy-stack article .page-kicker {
    grid-row: auto;
  }
}

@media (max-width: 1180px) {
  .az-topbar,
  .az-main-grid,
  .az-lower-grid {
    grid-template-columns: 1fr;
  }

  .az-status-strip,
  .az-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .az-side-panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .az-dashboard {
    padding: 7.25rem 0.8rem 1.4rem;
  }

  .az-identity h1 {
    font-size: clamp(1.8rem, 11vw, 3.4rem);
  }

  .az-status-strip,
  .az-metrics,
  .az-chart-heading,
  .az-side-panels {
    grid-template-columns: 1fr;
  }

  .az-chart-wrap {
    min-height: 420px;
  }

  .az-run-list div {
    grid-template-columns: 1fr;
    gap: 0.22rem;
  }

  .az-table {
    min-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
